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. And see here for current known issues.

New Member

#DEVICENAME# param.

I kown the #DEVICENAME# param can be defined to be send when one publish the service in the callManager.

But, what if I need the phone to make a request to de application url directy? how can I define this #DEVICENAME# param to be send by the phone.

example, if I made a CiscoIPPhoneMenu and one menu item send you to another URL, how can I do????

I?m trying only by setting the url http://xxxxx.jsp?device=#DEVICENAME# in the CiscoIPPhoneMenu but it doesnt work... :(

Thanks a lote!

4 REPLIES
New Member

Re: #DEVICENAME# param.

just leave the parameter off. If you configure a URL as the phone's services URL, when the phone makes a request to the URL it will add the parameter 'name' to the request with the devicename.

disclaimer: haven't done this for a while. it used to work this way, but knowing cisco's commitment to backward compatibility (or lack thereof) ...

Re: #DEVICENAME# param.

the 1st url (the one in the ipphone service o.e.) should have the device=#DEVICENAME# in the request, in that page you just need to "extract" that parameter and pass it onto the next url, i.e.

String theDevice = request.getParameter("device");

and then you can use that to populate your URL's like this;

String theUrl = "http://xxxx.jsp?device="+theDevice;

hth

Sascha

New Member

Re: #DEVICENAME# param.

Does the IP Phone also send it's model name when requesting the service?

I have some problem when displaying contents on 7911 screen while 7940 can display correctly. So I would like to write a script to check the model name before showing the contents. Please help.

Thank you in advance.

New Member

Re: #DEVICENAME# param.

yes it does, from memory. but its a header field, not an http parameter. do a trace of a request and you should see it.

160
Views
0
Helpful
4
Replies
CreatePlease login to create content