Page 1 of 1

WebSocket problems

PostPosted: Thu Nov 17, 2016 12:42 pm
by brando16
Hi all,

i install vicibox 7.0.3 Vicidial VERSION: 2.12-570a BUILD: 161029-2304, and i try webphone following this guide https://github.com/chornyitaras/PBXWebPhone.

i have configured all of this files but when a i try to connect to WSS the server response always ERR_CONN_REFUSE. I rebooted the server and asterisk doesn't load any module.
I have noticed the problem is enable tls in the mini-http server of asterisk (version 11.23.1-vici). if i comment this 4 line the server and asterisk work fine but without WS.

anyone have idea?

i develop a new agent interface and this halp me for completely re-design the interface and i need to implement this type of webphone because my boss is entusiastic and he won't to pass all activity now on AVAYA system to my best server vicidial but with this features.

i know i do a great job to convince him but i goal!!!!

thanks in advantage

Re: WebSocket problems

PostPosted: Thu Nov 17, 2016 2:33 pm
by mflorell
We are looking for more beta-testers of our WebRTC webphone if you want to try it out:

viewtopic.php?f=3&t=35875

Re: WebSocket problems

PostPosted: Thu Nov 17, 2016 4:43 pm
by chornyi_taras
Can you please share that 4 lines? Also asterisk logs might be helpful

Re: WebSocket problems

PostPosted: Fri Nov 18, 2016 11:24 am
by brando16
that 4 line are:

Code: Select all
tlsenable=yes                                         
tlsbindaddr=10.0.0.82:8089
tlscertfile=/etc/pki/trust/anchors/wildcard.cert.pem
tlsprivatekey=/etc/pki/trust/anchors/wildcard.key.pem


The problem is related to asterisk mini-http Server builtin conf file /etc/asterisk/http.conf if comment that lines the server up correctly.

i googling for this problems and i found one possibility is openssl-devel doesn't installed and installed it, but nothing appens.

Re: WebSocket problems

PostPosted: Fri Nov 18, 2016 11:28 am
by brando16
chornyi_taras i have interested to try your ViciPhone but i don't have an https connection works. If i succeded in this point how to download the source file?

thanks

Re: WebSocket problems

PostPosted: Fri Nov 18, 2016 11:29 am
by brando16
sorry asterisk log doesn't report nothing only the servr start when start machine

Re: WebSocket problems

PostPosted: Fri Nov 18, 2016 11:34 am
by brando16
this is only log i found /var/log/asterisk/messages

Code: Select all
[Nov 18 17:21:04] Asterisk 11.23.1-vici built by abuild @ cloud112 on a x86_64 running Linux on 2016-11-16 18:49:40 UTC
[Nov 18 17:21:04] DEBUG[1660] config.c: Parsing /etc/asterisk/asterisk.conf
[Nov 18 17:21:04] VERBOSE[1660] config.c: [Nov 18 17:21:04]   == Parsing '/etc/asterisk/asterisk.conf': Found
[Nov 18 17:21:04] DEBUG[1660] xmldoc.c: gl_pathc 3
[Nov 18 17:21:04] VERBOSE[1660] manager.c: [Nov 18 17:21:04]   == Manager registered action DBGet
[Nov 18 17:21:04] VERBOSE[1660] manager.c: [Nov 18 17:21:04]   == Manager registered action DBPut
[Nov 18 17:21:04] VERBOSE[1660] manager.c: [Nov 18 17:21:04]   == Manager registered action DBDel
[Nov 18 17:21:04] VERBOSE[1660] manager.c: [Nov 18 17:21:04]   == Manager registered action DBDelTree
[Nov 18 17:21:04] VERBOSE[1660] pbx.c: [Nov 18 17:21:04]   == Registered custom function 'MESSAGE'
[Nov 18 17:21:04] VERBOSE[1660] pbx.c: [Nov 18 17:21:04]   == Registered custom function 'MESSAGE_DATA'
[Nov 18 17:21:04] VERBOSE[1660] pbx.c: [Nov 18 17:21:04]   == Registered application 'MessageSend'
[Nov 18 17:21:04] VERBOSE[1660] manager.c: [Nov 18 17:21:04]   == Manager registered action MessageSend
[Nov 18 17:21:04] VERBOSE[1660] manager.c: [Nov 18 17:21:04]   == Manager registered action DataGet
[Nov 18 17:21:04] DEBUG[1660] config.c: Parsing /etc/asterisk/codecs.conf
[Nov 18 17:21:04] VERBOSE[1660] config.c: [Nov 18 17:21:04]   == Parsing '/etc/asterisk/codecs.conf': Found
[Nov 18 17:21:04] VERBOSE[1660] loader.c: [Nov 18 17:21:04]  Asterisk Dynamic Loader Starting:
[Nov 18 17:21:04] DEBUG[1660] config.c: Parsing /etc/asterisk/modules.conf
[Nov 18 17:21:04] VERBOSE[1660] config.c: [Nov 18 17:21:04]   == Parsing '/etc/asterisk/modules.conf': Found
[Nov 18 17:21:04] DEBUG[1660] config.c: Parsing /etc/asterisk/dnsmgr.conf
[Nov 18 17:21:04] VERBOSE[1660] config.c: [Nov 18 17:21:04]   == Parsing '/etc/asterisk/dnsmgr.conf': Found
[Nov 18 17:21:04] NOTICE[1660] dnsmgr.c: Managed DNS entries will be refreshed every 300 seconds.
[Nov 18 17:21:04] DEBUG[1660] config.c: Parsing /etc/asterisk/acl.conf
[Nov 18 17:21:04] VERBOSE[1660] config.c: [Nov 18 17:21:04]   == Parsing '/etc/asterisk/acl.conf': Found
[Nov 18 17:21:04] DEBUG[1660] config.c: Parsing /etc/asterisk/http.conf
[Nov 18 17:21:04] VERBOSE[1660] config.c: [Nov 18 17:21:04]   == Parsing '/etc/asterisk/http.conf': Found
[Nov 18 17:21:04] DEBUG[1660] config.c: extract uint from [8088] in [0, 65535] gives [8088](0)
[Nov 18 17:21:04] DEBUG[1660] config.c: extract addr from 0.0.0.0:8089 gives 0.0.0.0:8089(0)
[Nov 18 17:21:04] VERBOSE[1660] http.c: [Nov 18 17:21:04]  Bound HTTP server to address 0.0.0.0:0
[Nov 18 17:22:03] VERBOSE[1676] asterisk.c: [Nov 18 17:22:03]     -- Remote UNIX connection
[Nov 18 17:22:07] VERBOSE[1852] asterisk.c: [Nov 18 17:22:07]     -- Remote UNIX connection disconnected



thanks

Re: WebSocket problems

PostPosted: Fri Nov 18, 2016 3:14 pm
by chornyi_taras
try the following:
uncomment lines in http.conf
then
screen -r asterisk
then Ctrl + C (this will stop asterisk)
then Ctrl +D (thel will terminate creen)

systemctl start asterisk
journalctl -a -u asterisk

Re: WebSocket problems

PostPosted: Fri Nov 18, 2016 3:17 pm
by chornyi_taras
brando16 wrote:chornyi_taras i have interested to try your ViciPhone but i don't have an https connection works. If i succeded in this point how to download the source file?

thanks

I'm not an author of ViciPhone )
there is a beta test program. you can find details about it here http://www.vicidial.org/VICIDIALforum/v ... =3&t=35875

Re: WebSocket problems

PostPosted: Fri Feb 17, 2017 12:55 pm
by dreedy
I am trying this out in my test environment. and receiving this error message from the agent screen "An Error occurred while connecting to the websocket." i have followed your github example and also found one issue with the sip template explanation. it was missing a type in the example that was there. so i used type=peer.

The test environment is a vm with asterisk 11.25.1 on svn 2669 which i just updated today. installed with ViciBox_v.7.x86_64-7.0.3.iso all updates are done.

Do you have any suggest on how to troubleshoot this matter?

Re: WebSocket problems

PostPosted: Sat Feb 18, 2017 3:55 pm
by chornyi_taras
please check if port 8089 is open.
also please check if asterisk is listening this port
Code: Select all
netstat -tulpan| grep 8089