« Back to IP Phone Services Questions

How to pass a service parameter to web server.

Combination View Flat View Tree View
Threads [ Previous | Next ]
On CCM7 we have a phone service that points to a IPPhoneInput xml doc.  The user is able to input data and submit to the URL in that file just fine.  I am trying to create a parameter in CCM7 for this service that I append to the URL in the IPPhone URL that is sent.  So when I subscribe to the service on the phone configuration I will enter the data for this parameter.  When the user submits the input that they entered I want the parameter to be sent with it. 
 
Phone Service URL: http://Webserver1/CiscoIPPHoneService/IPPhoneInput.xml
Service Parameter:  siteID=ABCD
 
IPPhoneInput.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CiscoIPPhoneInput>
<Title>Test</Title>
<Prompt>Test</Prompt>
<URL>http://Server:8080/customQts?</URL>
<InputItem>
<DisplayName>User Input</DisplayName>
<QueryStringParam>userInput</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>T</InputFlags>
</InputItem>
</CiscoIPPhoneInput>
 
 
I would like to see something like this sent to the application server http://Server:8080/customQts?userInput=1234&siteID=ABCD

Any assistance would be appreciated.  Thank you.

You may be able to stuff the extra param in to the QueryStringParam, like this:
 
<QueryStringParam>siteID=A&amp;userInput</QueryStringParam>
 
You could also modify the URL itself, like:
 
<URL>http://Server:8080/customQts/A</URL>

Thanks for the input but the request still doesn't look correct.
 
/customQts?&siteID%3DA%26userInput=99999

Looks like the following format works:
 
<CiscoIPPhoneInput>
<Title>Test</Title>
<Prompt>Test</Prompt>
<URL>http://10.88.131.137/customQts?siteName=A</URL>
<InputItem>
<DisplayName>User Input</DisplayName>
<QueryStringParam>userInput</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>T</InputFlags>
</InputItem>
</CiscoIPPhoneInput>

 
With result like:


GET /customQts?siteName=A&userInput=ds HTTP/1.1

Dear david,
                  I want to pass phone ip or name as service parameter to webserver having the xml service but before doing that how to get the current phone information which is requesting the service. let me know with an example code 

1. If you want pass a phonename as parameter to a web service you can include anywhere in url the '#DEVICENAME#' string and phone will replace it with his name.
2. All information about phone capabilities you can receive from request params as described in IPPS development notes 'http://developer.cisco.com/web/ipps/docs'.