Integration guide for Asterisk based systems

Setup Websocket for Asterisk PBX (SIP / PJSIP stack)

  1. Upload a valid certificate to the server (not self signed)
  2. Setup /etc/asterisk/http.conf with the following:
    enabled=no ; disable HTTP
  3. When using SIP stack
    Setup /etc/asterisk/sip.conf with the following:

    When using PJSIP stack
    Setup /etc/asterisk/sip.conf with the following:
  4. Add to /etc/asterisk/rtp.conf

    If behind NAT also add the private IP and public IP.
  5. Restart asterisk
  6. Check websocket service in asterisk with the command:
    asterisk -rx ‘http show status’
    If you see the following*, you are good and able to place and receive calls using a websocket connection.
    Please take in mind to also adjust the firewall so that inbound traffic over ports 8089 is allowed and forwarded to you asterisk machine.
  7. When using Asterisk, make sure SRTP is on and the user is allowed to use WebRTC.
*6. Check websocket service in asterisk