cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
292
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Priyanka Saini on 31-03-2012 05:21:33 PM
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

Subject: RE: generateDTMF API
Replied by: Mohan Potluri on 02-04-2012 01:52:06 AM
The code looks good. Is it working for other digits?  Are you seeing any exceptions for '#' and '*'?

Subject: RE: generateDTMF API
Replied by: Priyanka Saini on 02-04-2012 08:05:45 AM
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
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links