Page 1 of 1

How Set up Cluster of Viciphone or WebRTC

PostPosted: Mon Jul 13, 2020 1:44 pm
by PJ111288
Hi All,

I am trying to Set up Cluster of Viciphone or WebRTC and i have two ready servers and i want to make a master(DB+Web) server and 2nd Asterisk server. I tried to make it by https://viciphone.com/?page_id=353 but when i try to login agent so call viciphone does not register because it is not finding asterisk which is selected in phone but its working with xlite and getting ringback and agent successfully logged in. So system is working fine and but with viciphone it is not.

both servers are tested individually with viciphone without any issue but when i am trying to do clustering so i am not able to.

Could anyone suggest something on it.

Please let me know if anything you need more information!

Centos 6.10
Vicidial version 2.14

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Mon Jul 13, 2020 2:01 pm
by carpenox
do you have the templates pulling from there own SSL certs? Also for the viciphone layout are they all pointed to one server? finally, the external ip needs to be set for webphone to whichever server has the viciphone.php

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Mon Jul 13, 2020 2:26 pm
by PJ111288
carpenox wrote:do you have the templates pulling from there own SSL certs? Also for the viciphone layout are they all pointed to one server? finally, the external ip needs to be set for webphone to whichever server has the viciphone.php


Hi Carpenox,

The Saviour...

yes i have templates, as i mentioned that individually server is running fine with viciphone.


finally, the external ip needs to be set for webphone to whichever server has the viciphone.php[/quote]

Can you show where i need to set external ip ?

Many Thanks.

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Mon Jul 13, 2020 2:35 pm
by PJ111288
Also do i need SSL or domain for each cluster server or asterisk server like Master server to define in ADMIN>>SERVER>>Web Socket URL?

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Mon Jul 13, 2020 7:11 pm
by carpenox
Ssl cert and wss needs to be applied to each server itself. The viciphone url in: Admin > servers needs to be set to the same as the server is currently running on and above that setting is where u set external ip on the other servers to the ip of the server with the viciphone

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Thu Jul 16, 2020 6:31 am
by PJ111288
Hi Carpenox,

Thank you very much. I was able to do this successfully after your advise.

Many thanks and Stay safe. :)

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Thu Jul 16, 2020 9:33 pm
by carpenox
no prob, glad to help

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Thu Aug 27, 2020 4:17 am
by rheymzkilove
Hi ,
i Have configure on standalone set up with WEBRTC (pbxwebphone) and it works fine but now, im trying to work it with cluster set UP but still no luck
i have 2 servers and this set up is also working fine with using a softphone. and i need to get it work using a webphone

1 S1(DB +WEB ex. IP 192.168.1.20) with https working
1 S2 (Asterisk server ex. IP 192.168.1.25)

im confused on what to set on the settings on ADmin> Server for S1 and S2

For S1 (DB +WEB)
External Server IP: 192.168.1.20
Web Socket URL: wss://s1.testme.com:8089/ws
External Web Socket URL:

For S2 (Asterisk )
External Server IP: 192.168.1.25
Web Socket URL: wss://s1.testme.com:8089/ws
External Web Socket URL:


what is the best config to get it work
please help

Thanks
REy

Vicibox 8.1
VERSION: 2.14-763a
BUILD: 200719-1645

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Thu Aug 27, 2020 1:46 pm
by carpenox
you need to change it to external web socket url for server 2

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Thu Aug 27, 2020 7:40 pm
by rheymzkilove
So is this? put wss://s1.testme.com:8089/ws

External Server IP: 192.168.1.25
Web Socket URL:
External Web Socket URL: wss://s1.testme.com:8089/ws

i will try this one

Thanks
REy

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Fri Aug 28, 2020 1:00 am
by rheymzkilove
hi ,

now i get on CLI

PBxwephone shows READY but when logging in shows TERMINATED

[Aug 28 01:56:54] == WebSocket connection from 'XXX.XXX.XXX.XXX:18909' for protocol 'sip' accepted using version '13'
[Aug 28 01:56:55] -- Registered SIP '1599' at XXX.XXX.XXX.XXX:18909
[Aug 28 01:56:55] == WebSocket connection from 'XXX.XXX.XXX.XXX:23921' forcefully closed due to fatal write error
[Aug 28 01:56:56] == Manager 'sendcron' logged on from 127.0.0.1
[Aug 28 01:56:56] == DTLS ECDH initialized (automatic), faster PFS enabled
[Aug 28 01:56:56] == Using SIP RTP CoS mark 5
[Aug 28 01:56:56] -- Called 1599
[Aug 28 01:56:57] -- SIP/1599-00000006 is ringing
[Aug 28 01:56:57] -- SIP/1599-00000006 is busy

Thanks
REy

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Fri Aug 28, 2020 8:07 am
by carpenox
thats either a permissions issue with the directory its writing to or a space issue...i believe

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Wed Sep 02, 2020 1:04 am
by rheymzkilove
This is working now thanks....

Re: How Set up Cluster of Viciphone or WebRTC

PostPosted: Wed Sep 02, 2020 10:12 am
by carpenox
no problem, glad i could help. What was the final issue?