WebSocket problems

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

WebSocket problems

Postby brando16 » Thu Nov 17, 2016 12:42 pm

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
Vicibox VERSION: 2.14-580a | BUILD: 161029-2304 | OpenSuSE v.42.1 64-bit | Kernel v.4.1.13 | Asterisk v.11.25.1-vici | DAHDI v.2.10.2 | LibPRI v.1.4.14 | Amfletec VoiceSync v.1.3.8 | ViciDial SVN Trunk v.2.12-533a build 161205-1650 revision 2461
brando16
 
Posts: 88
Joined: Tue Jul 30, 2013 11:00 am

Re: WebSocket problems

Postby mflorell » Thu Nov 17, 2016 2:33 pm

We are looking for more beta-testers of our WebRTC webphone if you want to try it out:

viewtopic.php?f=3&t=35875
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: WebSocket problems

Postby chornyi_taras » Thu Nov 17, 2016 4:43 pm

Can you please share that 4 lines? Also asterisk logs might be helpful
ViciBox: 7.0.3 | VERSION: 2.12-560aBUILD: 160617-1427 | Webphone: PBXWebPhone

Skype: tarasukcho
chornyi_taras
 
Posts: 87
Joined: Tue Jun 14, 2016 3:41 pm
Location: L'viv, Ukraine

Re: WebSocket problems

Postby brando16 » Fri Nov 18, 2016 11:24 am

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.
Vicibox VERSION: 2.14-580a | BUILD: 161029-2304 | OpenSuSE v.42.1 64-bit | Kernel v.4.1.13 | Asterisk v.11.25.1-vici | DAHDI v.2.10.2 | LibPRI v.1.4.14 | Amfletec VoiceSync v.1.3.8 | ViciDial SVN Trunk v.2.12-533a build 161205-1650 revision 2461
brando16
 
Posts: 88
Joined: Tue Jul 30, 2013 11:00 am

Re: WebSocket problems

Postby brando16 » Fri Nov 18, 2016 11:28 am

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
Vicibox VERSION: 2.14-580a | BUILD: 161029-2304 | OpenSuSE v.42.1 64-bit | Kernel v.4.1.13 | Asterisk v.11.25.1-vici | DAHDI v.2.10.2 | LibPRI v.1.4.14 | Amfletec VoiceSync v.1.3.8 | ViciDial SVN Trunk v.2.12-533a build 161205-1650 revision 2461
brando16
 
Posts: 88
Joined: Tue Jul 30, 2013 11:00 am

Re: WebSocket problems

Postby brando16 » Fri Nov 18, 2016 11:29 am

sorry asterisk log doesn't report nothing only the servr start when start machine
Vicibox VERSION: 2.14-580a | BUILD: 161029-2304 | OpenSuSE v.42.1 64-bit | Kernel v.4.1.13 | Asterisk v.11.25.1-vici | DAHDI v.2.10.2 | LibPRI v.1.4.14 | Amfletec VoiceSync v.1.3.8 | ViciDial SVN Trunk v.2.12-533a build 161205-1650 revision 2461
brando16
 
Posts: 88
Joined: Tue Jul 30, 2013 11:00 am

Re: WebSocket problems

Postby brando16 » Fri Nov 18, 2016 11:34 am

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
Vicibox VERSION: 2.14-580a | BUILD: 161029-2304 | OpenSuSE v.42.1 64-bit | Kernel v.4.1.13 | Asterisk v.11.25.1-vici | DAHDI v.2.10.2 | LibPRI v.1.4.14 | Amfletec VoiceSync v.1.3.8 | ViciDial SVN Trunk v.2.12-533a build 161205-1650 revision 2461
brando16
 
Posts: 88
Joined: Tue Jul 30, 2013 11:00 am

Re: WebSocket problems

Postby chornyi_taras » Fri Nov 18, 2016 3:14 pm

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
ViciBox: 7.0.3 | VERSION: 2.12-560aBUILD: 160617-1427 | Webphone: PBXWebPhone

Skype: tarasukcho
chornyi_taras
 
Posts: 87
Joined: Tue Jun 14, 2016 3:41 pm
Location: L'viv, Ukraine

Re: WebSocket problems

Postby chornyi_taras » Fri Nov 18, 2016 3:17 pm

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
ViciBox: 7.0.3 | VERSION: 2.12-560aBUILD: 160617-1427 | Webphone: PBXWebPhone

Skype: tarasukcho
chornyi_taras
 
Posts: 87
Joined: Tue Jun 14, 2016 3:41 pm
Location: L'viv, Ukraine

Re: WebSocket problems

Postby dreedy » Fri Feb 17, 2017 12:55 pm

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?
1- mysql/apache Server (ViciBox 11) Dell R640
1- Dialer (Vicibox 11) Dell R620
1- Archive Server Drobo 810n

Asterisk 16.30.0-vici |VERSION: 2.14-900a | BUILD: 231115-1636 | svn 3787 |dbschema 1702
dreedy
 
Posts: 168
Joined: Tue Nov 24, 2015 10:16 pm

Re: WebSocket problems

Postby chornyi_taras » Sat Feb 18, 2017 3:55 pm

please check if port 8089 is open.
also please check if asterisk is listening this port
Code: Select all
netstat -tulpan| grep 8089
ViciBox: 7.0.3 | VERSION: 2.12-560aBUILD: 160617-1427 | Webphone: PBXWebPhone

Skype: tarasukcho
chornyi_taras
 
Posts: 87
Joined: Tue Jun 14, 2016 3:41 pm
Location: L'viv, Ukraine


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 55 guests