Page 1 of 1

WebRTC vicibox 9.0.2

PostPosted: Tue Jun 30, 2020 7:32 am
by Fares MEHENI
Hi all,
I followed several guides and tutorials to set up the WebRTC but I am lost. Someone has a guide or a link that works well?
vicibox 9.0.2
ssl for web works.

but viciphone don't want to get connected. (conn.failed)

Re: WebRTC vicibox 9.0.2

PostPosted: Tue Jun 30, 2020 7:34 am
by carpenox
viewtopic.php?f=3&t=39028 read it all the way thru if u still have problems let me know

Re: WebRTC vicibox 9.0.2

PostPosted: Tue Jun 30, 2020 8:15 am
by Fares MEHENI
thank you very much i keep you posted.

Re: WebRTC vicibox 9.0.2

PostPosted: Tue Jun 30, 2020 8:53 am
by carpenox
you can kind of go towards the end of the discussion....but viciphone.com is good for setup instructions and the ccabrerra github is the good source code to use

Re: WebRTC vicibox 9.0.2

PostPosted: Sat Jul 04, 2020 9:30 am
by Fares MEHENI
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/ws

Webphone URL: https://phone.viciphone.com/viciphone.php

And 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'!

Re: WebRTC vicibox 9.0.2

PostPosted: Sat Jul 04, 2020 9:41 am
by carpenox
i dont use the viciphone url, i installed the viciphone too from the github by ccabrerra in that link i sent you

Re: WebRTC vicibox 9.0.2

PostPosted: Sat Jul 04, 2020 9:42 am
by carpenox
so my webphone url is https://server1.cyburity.tk/ViciPhone/viciphone.php if u wanna try mine and see if it works, but i advice using cabrerra's github link to install it on your own server: https://github.com/ccabrerar/ViciPhone git clone it

Re: WebRTC vicibox 9.0.2

PostPosted: Sat Jul 04, 2020 12:03 pm
by Fares MEHENI
carpenox wrote:so my webphone url is https://server1.cyburity.tk/ViciPhone/viciphone.php if u wanna try mine and see if it works, but i advice using cabrerra's github link to install it on your own server: https://github.com/ccabrerar/ViciPhone git clone it



I have downloaded your phone to my server but it blocks on conneting when I log in and it gives the following error on the CLI:


[Jul 4 19:00:43] ERROR[21037]: tcptls.c:731 handle_tcptls_connection: Problem setting up ssl connection with peer '160.174.129.51:65482': error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jul 4 19:00:43] WARNING[21037]: tcptls.c:823 handle_tcptls_connection: FILE * open failed from peer '160.174.129.51:65482'!
[Jul 4 19:00:43] ERROR[21038]: tcptls.c:731 handle_tcptls_connection: Problem setting up ssl connection with peer '160.174.129.51:65484': error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jul 4 19:00:43] WARNING[21038]: tcptls.c:823 handle_tcptls_connection: FILE * open failed from peer '160.174.129.51:65484'!
[Jul 4 19:00:47] ERROR[21044]: tcptls.c:731 handle_tcptls_connection: Problem setting up ssl connection with peer '160.174.129.51:65485': error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jul 4 19:00:47] WARNING[21044]: tcptls.c:823 handle_tcptls_connection: FILE * open failed from peer '160.174.129.51:65485'!
[Jul 4 19:00:51] ERROR[21049]: tcptls.c:731 handle_tcptls_connection: Problem setting up ssl connection with peer '160.174.129.51:65486': error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jul 4 19:00:51] WARNING[21049]: tcptls.c:823 handle_tcptls_connection: FILE * open failed from peer '160.174.129.51:65486'!

Re: WebRTC vicibox 9.0.2

PostPosted: Sat Jul 04, 2020 7:09 pm
by carpenox
What ip is that? Your server?

Re: WebRTC vicibox 9.0.2

PostPosted: Sun Jul 05, 2020 7:35 am
by Fares MEHENI
ahhhhhh ok

Re: WebRTC vicibox 9.0.2

PostPosted: Sun Jul 05, 2020 11:33 am
by carpenox
no i meant the 160.174.129.51 IP

Re: WebRTC vicibox 9.0.2

PostPosted: Mon Jul 06, 2020 6:10 am
by Fares MEHENI
carpenox wrote:no i meant the 160.174.129.51 IP



This is the agent station ip

Re: WebRTC vicibox 9.0.2

PostPosted: Mon Jul 06, 2020 9:52 am
by carpenox
ok and youre trying to use my webphone interface or you downloaded the github one and set it up on your own server(i suggest this)?

Re: WebRTC vicibox 9.0.2

PostPosted: Tue Jul 07, 2020 6:38 am
by Fares MEHENI
carpenox wrote:ok and youre trying to use my webphone interface or you downloaded the github one and set it up on your own server(i suggest this)?




Yes it's good the phone works very well thank you :D I download your webphone but on this webphone you can not make a manual call directly on the webphone in the case for example we want to apply an exentension locally. on the Vicidial webphone it works

Re: WebRTC vicibox 9.0.2

PostPosted: Tue Jul 07, 2020 11:17 am
by carpenox
ok cool, glad i could help. good postback