OmniSense Webphone Example
Overview
The OmniSense Webphone is an example implementation of a web-based SIP phone for integration into CRMs and other systems by developers.
DO NOT DEPLOY THE EXAMPLE INTO PRODUCTION
This is an example. Maintenance and actual implementation is up to the Integrator
Installation
The Webphone uses sip.js 0.15.11 version. Newer versions of sip.js are up to the integrator.
Download the file.
Unzip the file in the respective folder.
URL Parameters
The following URL parameters must be included with OmniSense-Webphone.html
Parameter | Datatype | Description |
---|---|---|
|
| Required parameter. Specify the authorization key. |
|
| Required parameter. Specify the server address. |
|
| Required parameter. Specify the TURN port address. |
|
| Required parameter. Specify the customer ID. |
|
| Required parameter. Specify the agent profile ID. |
|
| Required parameter. Specify the agent profile username. |
|
| Required parameter. Specify the password. |
|
| Required parameter. Specify the expiration date for how long the agent webphone session should last. |
|
| Optional parameter. This parameter will enable debug information to be displayed on the console logs. |
|
| Optional parameter. This parameter will enable debug information to be displayed on the HTML page. |
Usage
The below instructions simulate launching the Webphone in a browser window.
Register Webphone
Open the browser window with the OmniSense-Webphone.html file and the necessary URL parameters. If successful, the following information will be displayed in the browser window. If the Webphone is not registered, no information will be shown. Check the console log to troubleshoot any issues.
Retrieve the value of the WebRTC Phone Extension from the browser page or console log and temporarily store it for the corresponding agent profile.
User Login
When using the Login API, log in the respective user with the previously stored phone extension.
If the Login API request is successful, the browser page will prompt for microphone access. Grant the access, and the Webphone will establish a connection to the agent profile.
At this point, you will now be able to use the Telephony APIs to conduct voice operations.
User Logout
Use the Logout API to log out the agent and end the Webphone session.
Â