Page 1 of 1

ViciPhone

PostPosted: Thu Aug 01, 2019 6:49 pm
by hansg
Hi,

I have installed Vicibox 8 and followed the instructions on the post in the Vicibox Install Forum (viewtopic.php?f=8&t=37686)
I have successfully setup SSL and https is working correctly.
I have also followed the instructions for the viciphone in the same post. I have tried both viciphone 1 and 2.

I am now trying to use viciphone but I am getting "req. failed" on the phone screen and I am getting the following error when I check the chrome console.

What is causing this?

Vicibox 8.1.2
VERSION: 2.14-717a
BUILD: 190724-1603

Code: Select all

REGISTER sip:SERVERIP SIP/2.0
Via: SIP/2.0/TCP 192.0.2.64;branch=z9hG4bK4659604
Max-Forwards: 70
To: "9999" <sip:9999@SERVERIP>
From: "9999" <sip:9999@SERVERIP>;tag=4182v0bmpo
Call-ID: 66fmml5nvpjua9vc9am7s9
CSeq: 8485 REGISTER
Authorization: Digest algorithm=MD5, username="9999", realm="asterisk", nonce="0765e048", uri="sip:SERVERIP", response="b02632dbc6e5cb44d6e912b9324d65d0"
Contact: <sip:q1islpf8@192.0.2.64;transport=wss>;expires=600
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: path, gruu, outbound
User-Agent: VICIphone 2.0
Content-Length: 0



SIP/2.0 403 Forbidden
Via: SIP/2.0/TCP 192.0.2.64;branch=z9hG4bK4659604;received=MYIP;rport=51287
From: "9999" <sip:9999@SERVERIP>;tag=4182v0bmpo
To: "9999" <sip:9999@SERVERIP>;tag=as42f29e1b
Call-ID: 66fmml5nvpjua9vc9am7s9
CSeq: 8485 REGISTER
Server: Asterisk PBX 13.21.1-vici
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Date: Thu, 01 Aug 2019 23:36:57 GMT
Content-Length: 0


UPDATE: I have editted my WebRTC Phone Template and I am now able to register the phone.

However, I have no audio and I also keep getting "No one is in your session: 8600051"

Asterisk output is:

Code: Select all
[Aug  2 01:10:58]   == WebSocket connection from 'MYIP:57292' for protocol 'sip' accepted using version '13'
[Aug  2 01:10:58]   == WebSocket connection from 'MYIP:56826' forcefully closed due to fatal write error
[Aug  2 01:10:58]     -- Registered SIP '9998' at MYIP:57292
[Aug  2 01:11:04] ERROR[7694]: chan_sip.c:4270 __sip_reliable_xmit: Serious Network Trouble; __sip_xmit returns error for pkt data
[Aug  2 01:11:05]   == DTLS ECDH initialized (automatic), faster PFS enabled
[Aug  2 01:11:05] ERROR[15368]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("server", "(null)", ...): Name or service not known
[Aug  2 01:11:05] WARNING[15368]: acl.c:835 resolve_first: Unable to lookup 'server'
[Aug  2 01:11:05]   == Using SIP RTP CoS mark 5
[Aug  2 01:11:05]     -- Called 9998


'server' is my hostname

Re: ViciPhone

PostPosted: Thu Aug 08, 2019 1:19 pm
by williamconley
Code: Select all
[Aug  2 01:11:05] ERROR[15368]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("server", "(null)", ...): Name or service not known
[Aug  2 01:11:05] WARNING[15368]: acl.c:835 resolve_first: Unable to lookup 'server'


Server is not your hostname. Or at least the server has no entry in /etc/hosts for "server", thus it can not resolve "server" to an IP or other network access point.

In most systems, the DNS resolution process begins in /etc/hosts, then moves to a local cache (if there is one installed), then checks with the external dns servers from /etc/resolv.conf and requests an IP.

"server" will DEFINITELY not get a response from external dns servers. Thus if there is no entry in /etc/hosts, it will fail.

Re: ViciPhone

PostPosted: Thu Aug 08, 2019 8:58 pm
by hansg
williamconley wrote:
Code: Select all
[Aug  2 01:11:05] ERROR[15368]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("server", "(null)", ...): Name or service not known
[Aug  2 01:11:05] WARNING[15368]: acl.c:835 resolve_first: Unable to lookup 'server'


Server is not your hostname. Or at least the server has no entry in /etc/hosts for "server", thus it can not resolve "server" to an IP or other network access point.

In most systems, the DNS resolution process begins in /etc/hosts, then moves to a local cache (if there is one installed), then checks with the external dns servers from /etc/resolv.conf and requests an IP.

"server" will DEFINITELY not get a response from external dns servers. Thus if there is no entry in /etc/hosts, it will fail.


Hi William, thanks for responding, it looks like you've been busy.

I have now updated my hosts file correctly I think. That error message is gone now.

I am still getting the following errors though.

Code: Select all
[Aug  9 02:50:34] WARNING[7314][C-0000dca6]: app_meetme.c:5253 admin_exec: Conference number '8600051' not found!
[Aug  9 02:50:34] WARNING[7314][C-0000dca6]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
[Aug  9 02:50:34]     -- Executing [h@default:1] AGI("Local/55558600051@default-00000004;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------)") in new stack

[Aug  9 02:51:37] ERROR[1614]: tcptls.c:447 tcptls_stream_close: SSL_shutdown() failed: error:00000005:lib(0):func(0):DH lib, Underlying BIO error: Broken pipe
[Aug  9 02:51:37]   == WebSocket connection from 'MYIP:63035' forcefully closed due to fatal write error


Any ideas?

Re: ViciPhone

PostPosted: Thu Aug 08, 2019 9:11 pm
by hansg
Here is the full asterisk log when attempting login.

Code: Select all
[Aug  9 03:08:23]   == WebSocket connection from 'MYIP:49206' for protocol 'sip' accepted using version '13'
[Aug  9 03:08:24]     -- Registered SIP '9999' at MYIP:49206
[Aug  9 03:08:45] ERROR[1614]: tcptls.c:447 tcptls_stream_close: SSL_shutdown() failed: error:00000005:lib(0):func(0):DH lib, Underlying BIO error: Broken pipe
[Aug  9 03:08:45]   == WebSocket connection from 'MYIP:65340' forcefully closed due to fatal write error

Re: ViciPhone

PostPosted: Fri Aug 09, 2019 11:14 am
by williamconley
Conference number '8600051' not found!


This is not a ViciPhone error. This is a Vicidial Installation Error. Does your system work with regular phones? If not, you are premature by trying to install ViciPhone. 8-)

Re: ViciPhone

PostPosted: Mon Aug 12, 2019 4:54 am
by hansg
Hi William,

Yes I have successfully registered a phone normally using X-Lite. I can log in to the system and get only-person.gsm so everything works as normal without WebRTC.

I I am no longer getting conference not found. If you take a look at my last post, there is no mention of it. I'm sure the issue lies with the SSL_Shutdown error. Just no idea how to go about fixing it. I have scoured google and not found much help.

Re: ViciPhone

PostPosted: Wed Aug 21, 2019 1:25 am
by williamconley
I'm gonna go out on a limb here (no time to dig deeper, sorry) and suggest that you share HOW the server name came to be "server" and more to the point I think your server is trying to use "server" with SSL for viciphone which will not work. It must be trusted on the public web in the web browser and "server" is not a valid domain name. It has no TLD (.com, .au, .co, etc). And if it did, I sincerely doubt you own "server.com".

For this to work smoothly, as I understand it, you need an actual SSL certificate with a real domain name that is trusted. The easiest way to make that work is to buy a domain, get a free cert (with the certbot app) and *poof* you're golden. I'm sure that there are other ways, but that would require writing a lot more than I have time for and be rather pointless since a domain is $10 per year.

This also strikes me as a perfect time for you to start over on the server in question. While it's hostname should not matter for Viciphone, I suspect something was amiss in your install that made that not as true as it should be. You have a multiple server system, so installing a new version several times shouldn't really be an issue. Sometimes it takes a little getting used to. Considering how much Kumba charges for the .iso installer, I'd say that's a fair trade-off. 8-)