cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
277
Views
5
Helpful
1
Replies

which phone requested the service

webmailmaster
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

aaronw.ca
Level 5
Level 5

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;

View solution in original post

1 Reply 1

aaronw.ca
Level 5
Level 5

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;