10-02-2007 11:53 AM - edited 03-13-2019 04:29 PM
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!
10-03-2007 02:51 PM
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) ...
10-05-2007 11:36 PM
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
11-12-2007 09:38 PM
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.
11-12-2007 11:27 PM
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.
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: