WebCall Widget: In-Page VoIP Calls

Check out what a WebCall Widget is and how it works to place in-page VoIP Calls directly from your website.

The CommPeak WebCall Widget adds a Click-to-Call button to your website. Using standard WebRTC protocols, it turns your visitor's browser into a phone and routes the call to a SIP destination on your PBX or VoIP infrastructure. Visitors can talk to your sales or support team, or ask for a callback, without leaving your page.

Before you begin

  • Calls through the widget are charged per minute and billed in 1-second increments. You can see the current rate at the top of the WebCall Widgets page.
  • You need a SIP destination that can receive the calls, such as an extension on your Cloud PBX.
  • You need access to your website's backend to add the JWT endpoint that authorizes the widget. For the developer steps, see Integrating the WebCall Widget into Your Website.
  • Your website must use HTTPS, because calls need access to the visitor's microphone.

Creating your WebCall widget

To create a widget:

Open WebCall Widgets

In the CommPeak Portal, go to VoIP Services > WebCall Widgets.

Start a new widget

Click Create WebCall Widget.

WebCall Widgets page with the Create WebCall Widget button and the per-minute call rate

WebCall Widgets page

Fill in the widget details

Fill in the following fields:

  • Widget Name: A name that helps you recognize the widget, for example, Sales Department.
  • Destination (SIP URI): The SIP address that receives the calls, in the format <extension>@<server>:<port>, for example, [email protected]:5060.
  • JWT Secret: The key your backend uses to sign the token that authorizes the widget. The portal generates one for you. Click the refresh icon to generate a new secret, or the copy icon to copy it.
Widget Name, Destination (SIP URI), and JWT Secret fields of a new WebCall Widget

Widget details

Set up the widget

In the WebCall Widget Generator, set up the widget on the General, Style, and Text tabs. For details, see Customizing Your WebCall Widget.

Create the widget

Click Create.

Managing your widgets

The WebCall Widgets table lists your widgets with their Name, UUID, Destination, and JWT Secret. The JWT secret is hidden by default; click the eye icon to show it.

  • To change a widget, click the pencil icon, make your changes, and click Update.
  • To remove a widget, click the trash icon and confirm.
WebCall Widgets table with the eye, edit, and delete icons

Your WebCall Widgets

Below the table, the Integration Guide sums up the integration steps and code samples. For the full guide, see Integrating the WebCall Widget into Your Website.

What your visitors see

When a visitor clicks the launcher, the widget opens with your title and message, the agent details you set, and the following options:

  • Call us now: The browser asks for microphone access, and the widget shows Connecting... with a Cancel button. When the call connects, the visitor sees the call timer, Mute, Keypad, and End call.
  • Request a callback: Opens the callback form with the fields you selected, plus a date and time. After the visitor submits the form, the widget confirms the request and offers to add it to their calendar. This option appears only when Request a Callback is on. To set it up, see Receiving callback requests.

If the visitor blocks the microphone or has none, the widget explains the problem and offers a Try again button.

Calling

Opened widget with the Call us now option

Opened widget

Widget during a call with the timer, Mute, Keypad, and End call buttons

Call in progress

Requesting a callback

Callback request form with the visitor details, date, and time

Callback request form

Callback request confirmation with the Close and Add to my calendar buttons

Callback request submitted

Viewing WebCall widget CDRs

To review the calls made through your widgets, go to VoIP Services > WebCall Widget CDRs, in the Reports group.

To find specific calls:

Set the filters

Filter by Web Call, Date, or Destination. By default, the page shows the past week.

Run the search

Click Search. To reset the filters, click Clear.

WebCall Widget CDRs page with the Web Call, Date, and Destination filters

WebCall Widget CDRs page

Adding the WebCall widget to an IVR flow

Besides embedding the widget on a website, you can assign a WebCall Widget to an IVR flow on your CommPeak Dialer or Cloud PBX. Inbound WebCall calls then enter the IVR logic you set up.

For more information, see the IVR Elements guide.

Next steps


Did this page help you?