Set up WebRTC Click-to-Call

Create a WebRTC trunk on the PBX, and place the generated link in your website. When a website visitor clicks the link, a WebRTC call will be established between the visitor and the pre-configured destination of the PBX.

1. Create a WebRTC Trunk

  1. Enable WebRTC feature on the PBX.

    Go to Settings > PBX > General > WebRTC, check the option Enable, click Save.

  2. Go to Settings > PBX > Trunks, click Add.
  3. In the Name field, enter a trunk name.
  4. In the Select Country drop-down list, select General.
  5. In the Trunk Type drop-down list, select WebRTC Trunk.

  6. Use the default number or change the Trunk Number.

    When a WebRTC call is made through this trunk, the trunk number will be displayed on the ringing endpoint.

  7. Click Save.

    A link for the WebRTC trunk is generated in WebRTC Inbound Call Link. You can place the link on your web page. When your website visitors click the link, they will be connected to the destination of this WebRTC trunk.

  8. On the pop-up dialog, click Copy Now or Copy Later.

2. Set WebRTC Call Destination

Create an inbound route for the WebRTC trunk to route the WebRTC incoming calls. When the website visitors click to call from the web page, the calls will be routed to the configured destination.

  1. Go to Settings > PBX > Call Control > Inbound Routes, click Add.
  2. Set WebRTC call destination.
    • Name: Enter a route name.
    • Member Trunks: Select the WebRTC trunk to the Selected box.
    • Enable Time Condition: Select the checkbox of Enable Time Condition, and configure time conditions to route the incoming calls based on the time conditions.
    • Destination: Select the inbound route destination.

  3. Click Save and Apply.

3. Place WebRTC Link on Your Website

Create an HTML button on your website, and set the button link to WebRTC link that is generated after you creating the WebRTC trunk.

Note: To test the WebRTC Click-to-Call, you can paste the WebRTC link in the web browser directly.
  1. On the WebRTC turnk configuration page, click to copy the WebRTC link.

  2. Paste the link your web browser, press Enter.

    A dialpad will be displayed on the web page and the call will be connected to your pre-configured destination.