cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
361
Views
0
Helpful
5
Replies

Does #DEVICENAME# work?

david.dixon
Level 1
Level 1

An earlier thread mentioned that using a URL with the parameter #DEVICENAME# would make the IP Phone ( a Cisco 7975 in this case ) update the #DEVICENAME# with the phone's phoneName when an menu item is clicked.

If so this would save me hours of development as I would not have to use AXL to find out the phoneName/MAC Address.

Example:

<Url>http://192.0.0.1/CiscoIPServices/display.asp?name=#DEVICENAME#</Url>

Can someone confirm this for me please?

David

5 Replies 5

Sascha Monteiro
Level 6
Level 6

no, only if it's the service url where you subscribe to....and only if your services are being serviced from the callmanager...

it's not the phone that put's the phoneName in, but it's the services script on the callmanager that replaces it..

it's not documented well, so one must be careful if they i.e. replace the services url, to have them provisioned by another webserver..

so when you need to use the phoneName further down your script, you will need to use the #DEVICENAME# in the service subscription and keep passing it on as a parameter to the following url's

hth

So if I create a Service url for the phone which has a parameter http://xxx/Service.asp?name=#DEVICENAME# and this is hosted on the Call Manager service, which I think it is.

On the Service page, the script could update all the links to have the filled in #DEVICENAME# parameter passed over to the other pages.

Example:

Service.asp?name=#DEVICENAME#

In the Service page:

name = Request.QueryString("name")

http://xxx/IP/displayName.asp?name=" + name + "

Or

http://xxx/IP/displayName.asp?name=#DEVICENAME#

the Service itself doesn't need to be hosted on the CCM, as long as the Service URL comes from CCM it's ok.

It doesn't update any other links, only your subscribed ipphone service, so you need to do your 1st option,

name = Request.QueryString("name")

http://xxx/IP/displayName.asp?name=" + name + "

I've seen a similar example of this being used in the book "Developing Cisco IP Phone Services: A Cisco AVVID Solution", but as this is only a preview on Google it misses the most important page.

Do I need to add this using the CallManager Service URL Parameter or is it enough to add to the Service URL in full?

David

just in full in the Service URL,

only use parameters if users need unique settings when they subscribe

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: