Does #DEVICENAME# work?

Unanswered Question

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Sascha Monteiro Fri, 06/06/2008 - 13:15
User Badges:
  • Silver, 250 points or more

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

Sascha Monteiro Wed, 06/18/2008 - 12:38
User Badges:
  • Silver, 250 points or more

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

Sascha Monteiro Thu, 06/19/2008 - 11:07
User Badges:
  • Silver, 250 points or more

just in full in the Service URL,

only use parameters if users need unique settings when they subscribe

Actions

This Discussion