Enabling WebRTC

From MiRTA PBX documentation
Revision as of 13:47, 4 February 2018 by Admin (talk | contribs) (Created page with "WebRTC is not enabled by default and you need to follow carefully the following steps to make it work. # Install an SSL certificate on Asterisk. This needs to be a real SSL c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WebRTC is not enabled by default and you need to follow carefully the following steps to make it work.

  1. Install an SSL certificate on Asterisk. This needs to be a real SSL certificate. Check the Asterisk FAQ on how to install an SSL Certificate in Asterisk
  1. Install the Opus codec and add to the web interface. You can check the instructions in the Setup Guides section Installing OPUS codec
  1. Activate the http daemon for asterisk by editing the http.conf file as following:
[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088
tlsenable=yes
tlsbindaddr=0.0.0.0:8089
tlscertfile=/etc/asterisk/certificates/demo.mirtapbx.com.pem

The tlscertfile needs to point to your certificate in pem format

  1. Activate the ws and wss transport in sip.conf, set the realm
transport=udp,tls,ws,wss
realm=demo.mirtapbx.com
  1. Set the path for your certificate in the Web interface - Admin/Settings, Security section, WebRTC SSL path field
  1. In your extension enable Opus Codec, RTP Encryption and Any Transport