Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

How to determine device ip or phone number

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

4 REPLIES
Blue

Re: How to determine device ip or phone number

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.

New Member

Re: How to determine device ip or phone number

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.

New Member

Re: How to determine device ip or phone number

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?

New Member

Re: How to determine device ip or phone number

In VBScript:

Set thisIP = Request.ServerVariables("REMOTE_HOST")

In JavaScript:

var thisIP = Request.ServerVariables("REMOTE_HOST");

164
Views
3
Helpful
4
Replies
CreatePlease login to create content