« Back to Cisco JTAPI Questions

incoming call, change displayed number

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hello everybody,
I'm new to Jtapi so I'm asking for some help with a little application I'm writing.
This is the scenario:
A server (I'm writing it in Java of course) costantly observes all the ip phones registered with the CUCM (I've created a single user that controls all the devices).
When a device receives a call (is ringing) the server retrieves the calling number and sends on the display of the device some information associated to it (retrieved from a database, but that's non important).
Which is the best way to implement a service like that?
Somehow I've managed to retrieve the calling number, but I'd like to know what is the best/simplest way to do it. What I've not been able to do is sending something to the device. I tried to send an <IpPhoneExecute> statement via the CiscoTerminal.sendData() method but without success (I'm not receiving any error, simply nothing happens). Also, the sendData method is deprecated, so which method should I use?
(yes, I have already checked the CallerInfoServer example: it does something similar to what I'm doing, so I'm trying to modify it to work without the JSP service modifying the CallerInfoServer.java file, but I think there's a better way to do it)
Thank you very much
Denis

The method SendData is deprecated only in its version
java.lang.String sendData(java.lang.String terminalData)
You have to use the following overloaded version that is not deprecated:
byte[] sendData(byte[] terminalData).
What is the content of the iscoIPPhoneExecute object ?
With SendData method you can Push for examples a CiscoIPPhoneStatusFile object 
to show something on the device or Push directly a CiscoIPPhoneText page.