Configure Asterisk so it will work with VICIphone
Requirements:
- Asterisk 13 or later (browsers stopped supporting Asterisk 11)
- A Fully Qualified Domain Name for the server
- A VALID SSL certificate from a VALID Certificate Authority like GoDaddy or LetsEncrypt for the Fully Qualified Domain Name for the server. SELF SIGNED SSL CERTIFICATES DO NOT WORK!!!
Steps:
- Edit /etc/asterisk/http.conf
- Uncomment ‘enabled=yes’
- Uncomment and change ‘bindaddr=0.0.0.0’
- Uncomment ‘bindport=8088’
- Uncomment ‘tlsenable=yes’
- Uncomment ‘tlsbindaddr=0.0.0.0:8089’
- Uncomment and change ‘tlscertfile’ to read: tlscertfile=/PATH/TO/YOUR/SSL/CERT/FILE
- Uncomment and change ‘tlsprivatekey’ to read: tlsprivatekey=/PATH/TO/YOUR/SSL/KEY/FILE
- Save /etc/asterisk/http.conf
- Make sure that TCP port 8089 is open in the servers firewall.
- Edit /etc/asterisk/modules.conf
- Make sure that the res_http_websocket.so module is being loaded.
- Reboot the server.
- On the Linux CLI run this command: asterisk -rx ‘http show status’
- Check the output from the above command to make sure it says “HTTPS Server Enabled and Bound to 0.0.0.0:8089”
That should be it. Please note that “/PATH/TO/YOUR/SSL/CERT/FILE” should be replaced with the full Linux file system path to your SSL certificate file and “/PATH/TO/YOUR/SSL/KEY/FILE” should be replaced with the full Linux file system path to the SSL key file that goes with the certificate file.