Viciphone Reg. failed error with multi server setup

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Viciphone Reg. failed error with multi server setup

Postby richmac2018 » Mon Aug 02, 2021 7:27 pm

Hi All,

Anyone know on how to setup viciphone using the multi server setup? and what are the requirements?

I tested using single server and it did work using the https fully qualified domain. but when I tried setup using separate asterisk multi server setup if shows Reg. failed error during login it says wrong username and password.

Im using vicibox 9.0.3
2 asterisk server
1 webserver
viciphone: https://github.com/carpenox/CyburPhone.git
firewall off both servers

on the webserver it says on the logs:

Tue Aug 03 2021 08:14:55 GMT+0800 (Singapore Standard Time) | sip.transport | WebSocket wss://edge.sip.onsip.com connected
sip-0.15.11.min.js:1 Tue Aug 03 2021 08:14:55 GMT+0800 (Singapore Standard Time) | sip.transport | sending WebSocket message:

REGISTER sip:44.44.114.200 SIP/2.0
Via: SIP/2.0/TCP 192.0.2.103;branch=z9hG4bK5613012
To: "test1000" <sip:test1000@44.44.114.200>
From: "test1000" <sip:test1000@44.44.114.200>;tag=bnc00qcl4m
CSeq: 5624 REGISTER
Call-ID: pj9b947g60edcometdnv4l
Max-Forwards: 70
Contact: <sip:fbm66uln@192.0.2.103;transport=wss>;expires=600
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound, path, gruu
User-Agent: VICIphone 2.1
Content-Length: 0


sip-0.15.11.min.js:1 Tue Aug 03 2021 08:14:55 GMT+0800 (Singapore Standard Time) | sip.transport | received WebSocket text message:

SIP/2.0 403 Forbidden
Via: SIP/2.0/TCP 192.0.2.103;rport=38085;received=110.54.249.201;branch=z9hG4bK5613012
To: "test1000" <sip:test1000@44.44.114.200>;tag=ddc0651ebf8256bfae230d10564963d3.2d36
From: "test1000" <sip:test1000@44.44.114.200>;tag=bnc00qcl4m
CSeq: 5624 REGISTER
Call-ID: pj9b947g60edcometdnv4l
Server: OpenSIPS (1.11.8-notls (x86_64/linux))
Content-Length: 0
richmac2018
 
Posts: 36
Joined: Wed Jan 17, 2018 10:47 am

Re: Viciphone Reg. failed error with multi server setup

Postby carpenox » Mon Aug 02, 2021 11:07 pm

did you setup separate templates for each server?
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2428
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Viciphone Reg. failed error with multi server setup

Postby richmac2018 » Tue Aug 03, 2021 10:08 am

Hi Carpenox,

No I use 1 template only.

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/test1.test.com/cert.crt
dtlsprivatekey=/etc/certbot/live/test1.test.com/key.key
dtlssetup=actpass
rtcp_mux=yes
nat=yes

On the asterisk server what setup should I set? since I only configure the webserver for the vicibox-certbot
Should I set the certifacate and key on the asterisk server? or what other settings should I look?

Thanks,
richmac2018
 
Posts: 36
Joined: Wed Jan 17, 2018 10:47 am

Re: Viciphone Reg. failed error with multi server setup

Postby richmac2018 » Tue Aug 03, 2021 10:15 am

Also as per inspect element on my browser I can see wrong login details, is this the reason for the wrong login and password?

/agc/ViciPhone/viciphone.php?phone_login=dGVzdDEwMDA=&phone_login=dGVzdDEwMDA=&phone_pass=dGVzdDEwMDA=&server_ip=MzguMTE0LjExNC4yMDA=&callerid=&protocol=U0lQ&codecs=&options=SU5JVElBTF9MT0FELS1ESUFMUEFEX1ktLUFVVE9BTlNXRVJfWS0tRElBTEJPWF9ZLS1NVVRFX1ktLVZPTFVNRV9Z&system_key=

this should be phone_login=test1000 and phone_pass=test1000.

Where did they get those credentials?

Thanks
richmac2018
 
Posts: 36
Joined: Wed Jan 17, 2018 10:47 am

Re: Viciphone Reg. failed error with multi server setup

Postby carpenox » Tue Aug 03, 2021 10:21 am

take off nat=yes and do you have encrypted passwords enabled? Also you need separate templates for each server with separate SSL certs for each
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2428
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Viciphone Reg. failed error with multi server setup

Postby richmac2018 » Tue Aug 03, 2021 11:33 am

Hi Carpenox,

Still not working. take off nat=yes and the encrypted password is disabled status.

Do you mean for each server with separate SSL certs like this?
for webserver i use domain1.test.com - for webserver (sslcert and sslkey) - web server activated.
for asterisk server do I need to have domain2.test.com - for astersik (sslcert and sslkey) - web server activated also and run the vicibox-certbot?

Is this what you mean?

Thanks
richmac2018
 
Posts: 36
Joined: Wed Jan 17, 2018 10:47 am

Re: Viciphone Reg. failed error with multi server setup

Postby carpenox » Tue Aug 03, 2021 1:50 pm

yes, each server you plan tyo use webrtc on needs to have its own cert and template for it, then when you assign the phone you need to set the template to the proper server
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2428
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 78 guests