09-06-2006 08:23 AM - edited 03-13-2019 02:52 PM
Hi, I'm new to XML services, got a question please, consider the case that I need displaying the phone number on the phone screen, how to determine the ip of the phone or its number from within an xml service?
would appreciate help, thank you
09-06-2006 08:45 AM
you could probably write an XML that digs into the CCM SQL database to get the Phone DN and IP associated to it.
there was a post about some SQL tables that hold this info. i do forget the tables off the top of my head but will research and post if i find them.
also, search this forum for SQL tables posts. there have been a few.
09-07-2006 12:09 AM
Thank you for reply,
I think that what you are describing is how to get the phone number given the ip or vice versa.
My problem is, any telephone should have its own ip, how can I get it?
In other words, I need to display a content dependent on the phone itself (for example either its ip or number), so, how from a service can I determine the ip of the phone being serviced?
Thank you very much, would appreciate any solutions.
09-07-2006 10:45 AM
There are two ways you can get the IP address:
1. Get the IP from the request object. In Java do the following:
req.getRemoteAddr();
2. Get the Device List from the call manager, parse it, and cross reference with DEVICE NAME. See Cisco IP Phone Services Application
Development Notes - Release 4.1(3) - Chapter 8 - DeviceListX Report)
Is this what you are looking for?
09-07-2006 09:58 PM
In VBScript:
Set thisIP = Request.ServerVariables("REMOTE_HOST")
In JavaScript:
var thisIP = Request.ServerVariables("REMOTE_HOST");
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