Skip to content

Set up WebRTC Click-to-Call

WebRTC click-to-call lets visitors ring your company straight from their browser, with no dialer or app to install. WebRTC (Web Real-Time Communication) is the technology built into modern browsers that carries voice and video without any plugin. You set it up in two moves: create a WebRTC trunk (the connection that carries these browser calls into your phone system) to obtain a call link, then place that link behind a button or embed it in a page. This guide walks through building the trunk, routing its inbound calls to the right destination, testing the flow, and adding the link to your site.

  • Video calling is available only on the Ultimate Plan. Voice-only click-to-call works on any plan.
  • Cloud Voice must be running version 84.11.0.22 or later.
  • You need permission to add trunks. Building a WebRTC trunk starts with the Add button under Extension and Trunk > Trunk.

The trunk is what generates the call link your visitors will use.

  1. Sign in to the PBX (Private Branch Exchange, the phone system that connects your extensions and outside lines) web portal and go to Extension and Trunk > Trunk, then click Add.

  2. Under Basic, fill in these fields:

    • Name: A label that makes the trunk easy to recognize later.
    • Trunk Status: Set to Enabled.
    • Select ITSP Template: Choose General. ITSP stands for Internet Telephony Service Provider; the template pre-loads common trunk settings, and General is the correct choice for a WebRTC trunk.

    WebRTC trunk basic settings with name, status, and template fields

  3. Under Detailed Configuration, set:

    • Trunk Type: Select WebRTC Trunk.
    • Username: Enter a username for the trunk.

    WebRTC trunk detailed configuration showing trunk type and username

  4. (Optional) Open the Advanced tab to fine-tune the trunk:

    • Under Codec Settings, pick the codecs you want to use.
    • Under Call Restriction, cap the number of simultaneous calls the trunk will carry.
  5. Click Save, then Apply.

Once saved, the trunk appears in the list with a green status indicator, and its WebRTC Inbound Call Link is generated in the trunk’s detail view.

Cloud Voice, trunk detail view with the generated WebRTC inbound call link

Add an inbound route so calls that arrive through the WebRTC trunk land where you want them.

  1. Go to Call Control > Inbound Route and click Add.

  2. Under General, give the route a name.

    Inbound route general settings with a name field

  3. Under Trunk, move the WebRTC trunk from the Available box to the Selected box.

  4. Under Default Destination, decide where the calls go:

  5. Click Save, then Apply.

Confirm that a call through the link reaches the destination you configured.

  1. Go to Extension and Trunk > Trunk and click the edit icon next to the WebRTC trunk.

  2. Under Detailed Configuration, copy the WebRTC Inbound Call Link.

    Cloud Voice, WebRTC inbound call link ready to copy

  3. Paste the link into a new browser tab’s address bar and press Enter.

A dialpad opens in the browser and a call is placed to the destination you set.

Browser dialpad placing a WebRTC call to the configured destination

With the call link working, embed it in your site one of two ways.

Option 1, Link a button you build. Create your own call button and point its link to the WebRTC inbound call link.

Cloud Voice, WebRTC inbound call link used as a custom button target

Option 2, Use the built-in button template. The WebRTC trunk also provides a ready-made call button. Reference its embed link with a script tag:

<script src="{Default Call Template Embed Link}"></script>

Cloud Voice, default call template embed link in the trunk detail view

The result is a call button that opens the dialer when a visitor clicks it:

Cloud Voice, default call button on a page and the click-to-call dialer it opens