cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
417
Views
0
Helpful
4
Replies

#DEVICENAME# param.

raymondcidad
Level 1
Level 1

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 4

ckatene
Level 3
Level 3

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) ...

Sascha Monteiro
Level 6
Level 6

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

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.

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.