Webphone RTC Not Connecting

Discussions about development of VICIDIAL and astGUIclient

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

Webphone RTC Not Connecting

Postby turabaq » Mon Oct 09, 2017 2:15 pm

Can you help me with this error? My web dialer gets stuck at "connecting..."
After looking around in the browser console, I found this exception:
exception {code: 1, name: "CONFIGURATION_ERROR", parameter: "uri", value: "@", message: "Invalid value "@" for parameter "uri""}

It seems sip-0.7.8.js does not receive a "uri" because vici_phone.js is not supplying sip-0.7.8.js with a proper "sip_uri". Because of this, all that sip-0.7.8.js received is a "@" sign, which is being initialized in the phone1.viciphone.com iframe.

Can you please help.
turabaq
 
Posts: 4
Joined: Wed Aug 09, 2017 3:49 am

Re: Webphone RTC Not Connecting

Postby mcargile » Mon Oct 09, 2017 2:30 pm

This is normally caused by having your Webphone URL set to "https://phone1.viciphone.com" not "https://phone1.viciphone.com/viciphone.php".

https://phone1.viciphone.com/ redirects to https://phone1.viciphone.com/viciphone.php but the Post variables do not get passed.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Re: Webphone RTC Not Connecting

Postby turabaq » Tue Oct 10, 2017 11:52 am

Thanks a lot, it worked.
turabaq
 
Posts: 4
Joined: Wed Aug 09, 2017 3:49 am

Re: Webphone RTC Not Connecting

Postby mcargile » Tue Oct 10, 2017 12:01 pm

Glad to hear.

We are getting ready to properly release ViciPhone. This includes a setup guide and proper documentation. I may also remove that redirect as it seems to be causing some problems.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Re: Webphone RTC Not Connecting

Postby chornyi_taras » Tue Oct 10, 2017 12:25 pm

there is an error in ua_config.
vici_phone.js:103
instead of
hackWssInTrasport: true,
should be
hackWssInTransport: true
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: Webphone RTC Not Connecting

Postby williamconley » Tue Oct 10, 2017 12:53 pm

mcargile wrote:Glad to hear.

We are getting ready to properly release ViciPhone. This includes a setup guide and proper documentation. I may also remove that redirect as it seems to be causing some problems.


Or you could add a validation to the Webphone URL field to require a page name instead of merely a domain? Admittedly that would conflict with an IT professional who wants to put the phone on its own domain, but you can't win *all* the time, lol.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20229
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Webphone RTC Not Connecting

Postby mcargile » Tue Oct 10, 2017 1:03 pm

@chornyi_taras: thanks. Funny thing is I am pretty sure I copied that from SIP.js's documentation.

@williamconley: not putting any validation in as that field is used by multiple different web phones and as you said some people might want the phone on their own domain.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Re: Webphone RTC Not Connecting

Postby mcargile » Tue Oct 10, 2017 1:20 pm

The redirect has been switched out for a friendly message explaining the necessary change to the settings. I will make that change to the JavaScript code tonight and test it so I am less likely to mess up someones production.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Re: Webphone RTC Not Connecting

Postby mcargile » Wed Oct 11, 2017 1:12 pm

We are changing the domain ViciPhone. Please read this:

viewtopic.php?f=3&t=37729
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am


Return to Development

Who is online

Users browsing this forum: No registered users and 8 guests