Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

Overview

The TForge OmniSense Webphone is a web-based SIP phone designed for seamless integration into CRMs and other systems by developers.

Installation

The Webphone uses sip.js 0.15.11 version. Newer versions of sip.js are not supported as yet.

  1. Download the <PLACE HOLDER FOR FILE ATTACHMENT> file.

  2. Unzip the file in the respective folder.

URL Parameters

The following parameters will be provided by the Service Delivery Department.

  1. auth_key

  2. server

  3. turn_port

  4. customer_id

  5. password

URL Parameters can be passed in any order.

The following URL parameters must be included with TForge-OmniSense-Webphone.html

Parameter

Datatype

Description

auth_key

String

Required parameter. Specify the authorization key.

server

String

Required parameter. Specify the server address.

turn_port

Integer

Required parameter. Specify the TURN port address for connecting the user to the webRTC server.

customer_id

Integer

Required parameter. Specify the customer ID.

user_id

Integer

Required parameter. Specify the agent profile ID.

username

String

Required parameter. Specify the agent profile username.

password

String

Required parameter. Specify the password for connecting the user to the webRTC server.

expire_date

DateTime

Required parameter. Specify the expiry date for how long the agent webRTC session should last.

debug_console

true | false

Optional parameter. This parameter will enable debug information to be displayed on the console logs.

debug_html

true | false

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.

If the browser page is refreshed after establishing a session, the Webphone will disconnect. You will need to log the user out and repeat the steps below.

Register Webphone

  1. Open the browser window with the TForge-OmniSense-Webphone.html file and the necessary URL parameters. If successful, the following information will be displayed in the browser window. If the phone is not registered, no information will be shown. Check the console log to troubleshoot any issues.

image-20240527-141942.png
  1. Retrieve the value of the WebRTC Phone Extension from the browser page or console log and temporarily store it for the corresponding agent profile.

image-20240527-143148.pngimage-20240527-143450.png

User Login

  1. When using the User Login API, log in the respective user with the previously stored phone extension.

image-20240527-144152.png
  1. If the User 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.

image-20240527-144748.pngimage-20240527-150018.png
  1. At this point, you will now be able to use the Voice APIs to conduct voice operations.

User Logout

  1. Use the User Logout API to log out the agent and end the Webphone session.

image-20240527-150310.png

  • No labels