Polycom SIP 3.1 Telephone User Manual


 
Application Development
2 - 45
// Write the data to the stream.
streamResponse.Write(byteArray, 0, byteArray.Length);
streamResponse.Close();
allDone.Set();
}
}
public class WebRequestState
{
public String postData = null;
public WebRequest request;
public WebRequestState()
{
request = null;
}
public String getPostData()
{
return postData;
}
public void createPostData(String phoneNum, String name)
{
postData =
"<PolycomIPPhone><Data Priority=\"critical\">" +
"<title>Customer Web Call Back Request</title>" +
" <h1>Customer Name : " + name + " </h1> <br></br>" +
"<a href=\"tel://" + phoneNum + ";Line1\">Callback to
Customer</a>" +
"</Data></PolycomIPPhone>";
}
}
3. Configure the IIS Web server to deploy the above files.
4. Change the sip.cfg configuration file as follows:
a Set
apps.push.username
to Polycom.
b Set
apps.push.password
to 456.
The phone’s IP address is hardcoded in
webcallback.aspx.cs
to
172.18.103.32 for this example. You must change this to another value.
5. Reboot the phone.
After a customer enters their name and phone number on the web page,
the Customer Web Call Back Request page appears on the phone with IP
address 172.18.103.32 .