HI carpenox,
I followed the tutorial from (
https://viciphone.com/?page_id=346) step by step but it does not work.
-Vicibox 9.0.2
- firewalld disabled
- A VALID SSL certificate
- A Fully Qualified Domain Name for the server work succefully with https
-Template :
type=friend
host=dynamic
encryption=yes
avpf=yes
icesupport=yes
directmedia=no
transport=wss
force_avp=yes
dtlsenable=yes
dtlsverify=no
dtlscertfile=/etc/certbot/live/www.vici.prostats.fr/cert.pem
dtlsprivatekey=/etc/certbot/live/www.vici.prostats.fr/privkey.pem
dtlssetup=actpass
rtcp_mux=yes
Web Socket URL:
wss://vici.prostats.fr:8089/wsWebphone URL:
https://phone.viciphone.com/viciphone.phpAnd i did all this :
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.
In the Admin interface of VICIdial go to Admin -> Phones and edit the agent’s phone.
On that phone change the following fields to:
Set As Webphone: Y
Webphone Auto-Answer: Y
Use External Server IP: Y
Template ID: (select the template created in step #6)
Have the agent log into the HTTPS encrypted agent web interface.
Once they have selected the campaign and
clicked “submit”, VICIphone should be launched with all of the correct settings. It
runs embedded in the upper right corner of the agent’s browser, as part of their VICIdial agent interface.
and the phone does not want to register with the following error on the CLI:
[Jul 4 16:29:28] ERROR[1851]: chan_sip.c:4271 __sip_reliable_xmit: Serious Network Trouble; __sip_xmit returns error for pkt data
[Jul 4 16:29:32] ERROR[13706]: tcptls.c:731 handle_tcptls_connection: Problem setting up ssl connection with peer '160.174.129.51:65137': error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jul 4 16:29:32] WARNING[13706]: tcptls.c:823 handle_tcptls_connection: FILE * open failed from peer '160.174.129.51:65137'!