07-20-2005 10:42 AM - edited 03-13-2019 09:53 AM
Hi,
Is there any way to find out which phone requested the service from the service itself(written in asp)? Anything will do - phone name, IP or DN.
Thank you.
Cheers,
Victor
Solved! Go to Solution.
07-20-2005 11:35 AM
If you append ?name=#DEVICENAME# to the service URL, the devicename of the phone will be appended as a parameter when you call the service.
e.g.:
Service URL:
http://mywebserver/myservice/service1.asp?name=#DEVICENAME#
Phone with device name SEP00304DE304D9 calls service:
http://mywebserver/myservice/service1.asp?name=SEP00304DE304D9
You can still use other parameters as part of the service configuration.
You can then get the device name parameter using something like this:
var deviceName = String(Request.QueryString("name")) ;
You can also get the IP address of the phone calling the service from the REMOTE_ADDR server variable:
sIPAddr = Request.ServerVariables("REMOTE_ADDR").Item;
07-20-2005 11:35 AM
If you append ?name=#DEVICENAME# to the service URL, the devicename of the phone will be appended as a parameter when you call the service.
e.g.:
Service URL:
http://mywebserver/myservice/service1.asp?name=#DEVICENAME#
Phone with device name SEP00304DE304D9 calls service:
http://mywebserver/myservice/service1.asp?name=SEP00304DE304D9
You can still use other parameters as part of the service configuration.
You can then get the device name parameter using something like this:
var deviceName = String(Request.QueryString("name")) ;
You can also get the IP address of the phone calling the service from the REMOTE_ADDR server variable:
sIPAddr = Request.ServerVariables("REMOTE_ADDR").Item;
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