07-16-2003 10:24 PM - edited 03-13-2019 12:46 AM
Hi, does anybody know how to get the IP of the Phone in ASP from which i am working and how to get the IP of any other Phone, possibly identified by the user, logged in on that phone?
Thank you very much and best regards,
Thomas
07-17-2003 06:20 AM
Check out the DeviceListX functionality, available in CallManager 3.2(2b) and 3.3+. It allows you to get a list of devices (name, ip, description, calling search space, device pool, status) registered with CallManager.
Note that you can only call this at 60 second intervals (preferably longer), so you may need to cache the data returned by this for use by your applications.
Information on this function is available in the latest IPPS SDK.
07-23-2003 06:48 AM
I can't tell you how to get the user information from the phone without the DeviceListX function, but I do know how to get the IP address. Just use the PhoneIP = Request.ServerVariables("REMOTE_HOST") in your ASP page to get the address.
What you do with it from there is up to you.
10-02-2003 01:13 AM
hi carlson!
could you explain this method to get the ip-address of a phone in more detail? you said "PhoneIP = Request.ServerVariables("REMOTE_HOST")", but which "remote_host"? for example, i have the mac-address and the dn of the phone and want to get the ip? how could i accomplish that with your way?
thx jochen
10-02-2003 06:07 AM
Hi Jochen,
If you just want the IP Address of the phone calling your service, here is the source for a sample service that illustrates this:
<%@ Language=JavaScript %>
<%
Response.ContentType = "text/xml";
sIPAddr = Request.ServerVariables("REMOTE_HOST").Item;
%>
10-13-2003 04:19 AM
hi,
thanks for the source, it works fine but isn't what i'm looking for at all!
i'm developing a ani-service and must have the ip of the called phone! it seems that i have to use the devicelistx-function! but my problem is, that i connect to the devicelistx.asp through a java-urlconnection and don't know how to get the info's back in java?
another idea is, that i synchronize the ccm-sql-db with a second db-system and than make a db-query with java odbc! sure, it's not the best way, but i'll try it!
jochen
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