You can't.. you need to do an AXL Serviceability (CCM 5 and higher) or http get request to the DeviceListX report on CCM 4.3 and lower to go from the device name to the IP address.
However, why do you need the IP address from within JTAPI? If you want to push something to a phone, you can do that via tapi thus bypassing the push authentication.
When the phone you are controlling becomes involved in a call, your application will receive a CiscoRTPInputStarted event. From memory, you can extract the RTPInputProperties, which include the phone's IP address.
Actually, It may be CiscoRTPOutputStarted/RTPOutputProperties - can't remember exactly.
@Flexcomm99: IP Adresses are not stored in any database table.. so I think what you were trying to do (do an AXL request to extract the IP address) won't work. As I said, you need AXL serviceability. The IP Address is stored in an in memory database which can only be accessed via DeviceListX (CCM up to 4.3.x) or AXL Serviceability webservice (CCM 5 and up - the service you want to query is called RisPort).. and while AXL Serviceability also allows to make SQL queries, those queries are sent to the "physical" database so you cannot query the in memory database either..
It is to send a message by exemple, and there are not event to extract the IP.
In the asp push2phone in the IPCiscoService, we need the IP to send a message. The IP was known in a callmanager 4.x and not in a callmanager 5.x
I try to use devicelistX, but i don't unterstand how to use it.
in a browser and i have the error 404. Is it ok?
Do I use the same method that I use with axl?
thank for your answer
I try to use risport but i have a problem with the Soap Message.
Does it exist a toolkit or an exemple to do the class to send a request as AXLsqlToolKit?
In CCM5 and above, there's no DeviceListX report anymore (I already mentioned that). A working example of a RisPort query can be found here: http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Unified%20Communications%20and%20Video&topic=IP%20Phone%20Services%20for%20Developers&topicID=.ee94c94&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cbff352
I'm sorry, I couldn't edit my first message to correct it.
Thanks for you help, I have a last question, how do you send the request to the server(Callmanager)?
It contains links to all programming guides for callmanager, amongst others the callmanager developer guide for ccm 5 which explains how to use the various xml apis the callmanager offers.
In the documentation, there is no exemple in Java.
If someone can post an exemple in Java to send a soad or tell me what is the problem in my code (cf attachement).
the String sAXLRequest is exactly the file what is joined here :