WebRTC manual configuration

Note

This is the manual way to configure a WebRTC line. It is here for the record. You should follow the Configuration of user with WebRTC line instead.

  1. Create user
  2. Optional: set codec to ulaw
../../_images/webrtc_user_codecs.png
  1. Add line to user without any device
  2. Configure Advanced Line options, so that it is usable with the softphone WebRTC
avpf = yes
call-limit = 1 ; use 2 from 2017.11.03
dtlsenable = yes ; Tell Asterisk to enable DTLS for this peer
dtlsverify = no ; Tell Asterisk to not verify your DTLS certs
dtlscertfile=/etc/asterisk/keys/asterisk.pem ; Tell Asterisk where your DTLS cert file is
dtlsprivatekey = /etc/asterisk/keys/asterisk.pem ; Tell Asterisk where your DTLS private key is
dtlssetup = actpass ; Tell Asterisk to use actpass SDP parameter when setting up DTLS
encryption = yes
force_avp = yes
icesupport = yes
transport = ws
../../_images/webrtc_line_manual.png