Skip to content

Asterisk configuration

Taras Chornyi edited this page Nov 4, 2017 · 3 revisions

Enable and configure embedded asterisk web server.

1.Open /etc/asterisk/http.conf

  • Make sure you have following options congifured

    [general]
    enabled=yes
    ; Address to bind to, both for HTTP and HTTPS. You MUST specify
    ; a bindaddr in order for the HTTP server to run. There is no
    ; default value.
    bindaddr=<YOUR IP ADDRESS or 0.0.0.0>
    bindport=8088
    tlsenable=yes          ; enable tls - default no.
    tlsbindaddr=<YOUR IP ADDRESS>:8089    ; address and port to bind to - default is bindaddr and port 8089.
    tlscertfile=/path/to/your/certificate.pem  ; path to the certificate file (*.pem) only.
    tlsprivatekey=/path/to/your/privkey.pem    ; path to private key file (*.pem) only.

Configure chan_sip

1.Open /etc/asterisk/sip.conf

  • Add following lines
 realm=<your domain name>
 transport=udp,ws,wss
 avpf=yes
 srvlookup=yes