02-01-2008 01:01 PM - edited 03-13-2019 04:56 PM
I'm asking this question on behalf of my developer.
Using the current JTAPI calls/classes how do you get the ip address of an ip phone?
thanks,
paul.
02-04-2008 06:00 AM
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.
05-20-2008 02:49 AM
And what is the name of the table for AXL?
02-04-2008 08:45 PM
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.
C
05-21-2008 01:27 AM
@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..
05-27-2008 12:43 AM
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.
I post http://login:pw@ip/CCMAdmin/reports/devicelistx.asp
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
05-27-2008 05:36 AM
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?
05-27-2008 06:25 AM
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
05-27-2008 11:51 PM
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)?
05-28-2008 01:17 AM
Bookmark this site: http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_programming_reference_guides_list.html
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.
http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/devguide/5_0_4/ccmdev.html
05-30-2008 05:18 AM
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 :
06-03-2008 11:01 PM
Somebody can help me, it is the last point of my project.
Thank you
06-04-2008 11:19 PM
I have find the solution, if someone have questions...
06-06-2008 05:57 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide