Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Does #DEVICENAME# work?

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

  • Other Collaboration Voice and Video Subjects
5 REPLIES

Re: Does #DEVICENAME# work?

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

New Member

Re: Does #DEVICENAME# work?

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#

Re: Does #DEVICENAME# work?

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 + "

New Member

Re: Does #DEVICENAME# work?

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

Re: Does #DEVICENAME# work?

just in full in the Service URL,

only use parameters if users need unique settings when they subscribe

204
Views
0
Helpful
5
Replies
This widget could not be displayed.