Polycom SIP 3.1 manual Set apps.push.password to

Models: SIP 3.1

1 71
Download 71 pages 23.55 Kb
Page 57
Image 57

Application Development

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

2 - 45

Page 57
Image 57
Polycom SIP 3.1 manual Set apps.push.password to