Network Deployment (Distributed operating systems), v8.0 > End-to-end paths > Communications enabled applications


 Accessing telephony services with REST APIs

We can integrate web telephony into new and existing applications using a Representational State Transfer (REST) API. Telephony features include making phone calls, receiving phone calls, and receiving call notifications within the web application.

The communications enabled applications (CEA) capability requires an IP private branch exchange (PBX) as part of your infrastructure. An IP PBX is a business telephone system designed to deliver voice over a data network and interoperate with the Public Switched Telephone Network (PSTN). A sample IP PBX application is included in the Samples section of the information center. The sample IP PBX is in the form of an application EAR file and is for test purposes only. It can be used to test out the REST interface in the absence of an actual IP PBX that would be used in production. Installation of the sample IP PBX application only requires installing the sample EAR on a dedicated application server. The details of installing and configuring the vendor-specific IP PBX are not provided. Along with the sample IP PBX, two soft phones are needed to test the application.

An understanding of the REST interface requests and responses is needed to perform this task. See the information on REST APIs in CEA for a complete reference to the REST API. JAX-WS

This task uses JavaScript within an application, which calls the REST interface to manage phone calls over an IP network. Formerly, this capability required building SIP servlets and a detailed understanding of the SIP specification.

For another way to accomplish this task using time-saving widgets, see the information center topics on making phone calls and call notifications in web applications.

This task lists the steps needed to develop and deploy an application that can manage phone calls, including how to configure the application server.


Procedure

  1. Enable the system application.

  2. Install and configure the IP PBX.

  3. Configure the IP PBX location.

  4. Restart the application server.

  5. Develop a new application that calls the REST interface.

  6. Install and start the new application.

  7. Test the new application.


Results

An application has been developed and deployed leveraging the REST interface to make and receive phone calls and call notifications.

Avoid trouble: If problems are encountered, use the following check list for troubleshooting the problem:





Related tasks

Samples documentation
Use HPEL to troubleshoot applications

Related reference

REST APIs in CEA
CEA call flow
Make phone calls in web applications
Receive call notifications in web applications

Related information

Representational State Transfer









+

Search Tips   |   Advanced Search