Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi
 
Can someone please let me know if the following implementation of generateDtmf is correct? I tested it but #,* are not working with jtapi 6.0.

Terminal foundTerminal = ciscoUser.getTerminal();
                TerminalConnection[] terminalConnections = foundTerminal
                        .getTerminalConnections();
                if (terminalConnections != null) {
                    for (int j = 0; j < terminalConnections.length; j++) {
                        CallControlTerminalConnection callCtlTermConn = (CallControlTerminalConnection) terminalConnections;
                        // TerminalConnection tc =
                        // (TermConnEv)ev.getTerminalConnection();

                        MediaTerminalConnection mtc = (MediaTerminalConnection) callCtlTermConn;
                        call = (com.cisco.jtapi.extensions.CiscoCall) callCtlTermConn
                                .getConnection().getCall();
                        if (callCtlTermConn.getState() == callCtlTermConn.ACTIVE) {
                            if (callCtlTermConn.getCallControlState() == CallControlTerminalConnection.TALKING) {
                                mtc.generateDtmf(value1);
                                Log
                                        .debug("CiscoJTAPIService: handleSendDigit(): send digit"
                                                + value1
                                                + " to a existing call");
                            }
                        }
                    }
                }
 
Thanks

The code looks good. Is it working for other digits?  Are you seeing any exceptions for '#' and '*'?

The code looks good. Is it working for other digits?  Are you seeing any exceptions for '#' and '*'?

Hi Mohan
 
Thanks for the reply.
Yes, it does work with other digits except # and *. And when I send * or #, I can't see any exception in the logs?
Is it a known issue or there might be some problem with my code?
 
Thanks
Priyanka