Quick Reference

Error WebRTC Connection Failed
Severity Critical
Component Web

WebRTC Connection Failed

What Causes This Error

The browser-based WebRTC softphone cannot establish a connection to the Asterisk server. Causes include: WSS (WebSocket Secure) port not open or blocked by firewall, SSL certificate issues with the WebRTC endpoint, STUN/TURN server not configured, browser doesn’t support WebRTC, or Asterisk res_pjsip_transport_websocket module not loaded.

How to Fix It

  • 1 Check if WebSocket port (8088/8089) is accessible from agent browser: nc -zv VICIDIAL_SERVER 8089

  • 2 Verify SSL certificate is valid for the VICIdial hostname: openssl s_client -connect HOSTNAME:8089

  • Check Asterisk has pjsip_transport_websocket: asterisk -rx ‘module show like websocket’

  • 4 Verify firewall allows port 8089 from agent IPs: iptables -L | grep 8089

  • 5 Check http.conf: cat /etc/asterisk/http.conf — enable=yes, bindport=8088

  • Load missing module: asterisk -rx ‘module load res_pjsip_transport_websocket.so’

  • 7 Test from agent browser: open browser console and check WebSocket connection errors

How to Prevent It

Monitor WebRTC connection success rate in agent login reports. Use a wildcard SSL certificate to avoid certificate mismatch issues. Document WebRTC browser requirements for agents. Test WebRTC after any firewall changes.

ViciStack’s free 30-day support plan includes unlimited live VICIdial troubleshooting. If you can’t resolve this error with the steps above, our engineers will connect to your system and fix it directly — no support tickets, no hourly billing.

Frequently Asked Questions

What causes the VICIdial "WebRTC Connection Failed" error? +

The browser-based WebRTC softphone cannot establish a connection to the Asterisk server. Causes include: WSS (WebSocket Secure) port not open or blocked by firewall, SSL certificate issues with the WebRTC endpoint, STUN/TURN server not configured, browser doesn't support WebRTC, or Asterisk res_pjsip_transport_websocket module not loaded.

How do I fix the VICIdial "WebRTC Connection Failed" error? +

Check if WebSocket port (8088/8089) is accessible from agent browser: nc -zv VICIDIAL_SERVER 8089 Then: Verify SSL certificate is valid for the VICIdial hostname: openssl s_client -connect HOSTNAME:8089 Then: Check Asterisk has pjsip_transport_websocket: asterisk -rx 'module show like websocket' Then: Verify firewall allows port 8089 from agent IPs: iptables -L | grep 8089 Then: Check http.conf: cat /etc/asterisk/http.conf — enable=yes, bindport=8088 Then: Load missing module: asterisk -rx 'module load res_pjsip_transport_websocket.so' Then: Test from agent browser: open browser console and check WebSocket connection errors

How can I prevent the "WebRTC Connection Failed" error in VICIdial? +

Monitor WebRTC connection success rate in agent login reports. Use a wildcard SSL certificate to avoid certificate mismatch issues. Document WebRTC browser requirements for agents. Test WebRTC after any firewall changes.

Related Errors

Phone Login Not Active View error → Agent Screen Blank View error → SIP Registration Failed View error →

Part of the Complete VICIdial Implementation Guide

Need Help Fixing This Error?

Our VICIdial experts can diagnose and resolve this issue quickly. Get a free performance audit and we'll identify all critical problems.

Get Your Free Audit →