Created by: Sanoop Damodaran on 10-11-2009 03:12:33 PM I'm trying to send text message to 6921 using the senddata function in JTAPI.But its not working. The same application is running on 79xx phones and IP communicator with out any problem. CM is 7.1.2 Please ref: public void terminalChangedEvent(TermEv[] events) { for ( int i=0; i<events.length; i++ ) { Terminal terminal = events.getTerminal (); switch ( events.getID () ) { case CiscoTermInServiceEv.ID: System.out.println ( "Received " + events + "for " + terminal.getName ());
//Added code to show how senddata works try { String str= param.getMessage(); String Res2 = observedTerminal.sendData(str); System.out.println ( "Received " + Res2 + "for Pushing Data " ); observedTerminal.removeObserver(this);
Subject: RE: Pushing message to 6921 using JTAPI CiscoTerminal SendData funtion Replied by: David Staudt on 10-11-2009 06:09:45 PM Not aware of any known issues, but this is a new device. Can you attach the JTAPI logs for this scenario? Please configure detailed level, all types. We may also eventually need CTIManager and CallManager logs (configure detailed level via Serviceability admin pages, collect via RTMT.)
Subject: RE: Pushing message to 6921 using JTAPI CiscoTerminal SendData funtion Replied by: Joe Moskie on 10-11-2009 06:59:22 PM
We may also eventually need CTIManager and CallManager logs (configure detailed level via Serviceability admin pages, collect via RTMT.)
The debugging output for sendData() isn't very descriptive, because it's largely a "send, get an acknowledgement from CTI, and hope it gets to the actual phone" scenario. Unless we recieve an outright failure from CTI I don't think anything useful will be found in the JTAPI logs. If the request gets to CTI and dies there quietly, we won't have much information about it. We defintiely need the CTI logs to look into this further. I can also snoop around and see if we have a 6921 I could borrow for a senbdData() test.
Subject: RE: Pushing message to 6921 using JTAPI CiscoTerminal SendData funtion Replied by: Joe Moskie on 10-11-2009 09:00:31 PM Sanoop, Is your application recieving any exceptions or errors when you make this request to the 6921, or is the request successful and the sound just never plays? I'm seeing an exception being thrown when I try to send your XML on a similiar model (6961). 382: Nov 10 12:57:57.286 PST %JTAPI-JTAPI-7-UNK:[SEP001121FF8B96]PlatformExceptionImpl caught: CCNException not handled:com.cisco.cti.client.CCNException: deviceDataPassThrough request failed When I tried it on a 7960, it worked fine. I'd like to make sure this is the same issue you're seeing before proceeding. If it is, I'd have to pass this along to the CTI team and other teams that are below the JTAPI layer.
Subject: RE: Pushing message to 6921 using JTAPI CiscoTerminal SendData funtion Replied by: Sanoop Damodaran on 11-11-2009 01:59:30 PM i'm not getting any error while sending the XML. if we print the response of the CiscoTerminal.sendData(xmlstring) is giving text "url not found" along with the xml message even though the url is correct. But i'm able to play the sound.Only the url is not executing.
Subject: RE: Pushing message to 6921 using JTAPI CiscoTerminal SendData funtion Replied by: David Staudt on 11-11-2009 04:22:54 PM Sometimes phones have difficulties with URLs using hostnames instead of IP addresses, if DNS is not configured properly for the phone. If the URL contains a hostname, you might try switching to an IP address and see if it starts working. Another suggestion would be to look at a network packet capture, taken from the phone's extra PC switch port (you can use Wireshark for this.) You should be able to see the exact TCP/HTTP sequence the phone is going through when it requests the URL and hopefully spot any problems. Attach the pcap file here if you can't spot anything.
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: