Page 1 of 1

Webphone RTC Not Connecting

PostPosted: Mon Oct 09, 2017 2:15 pm
by turabaq
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.

Re: Webphone RTC Not Connecting

PostPosted: Mon Oct 09, 2017 2:30 pm
by mcargile
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.

Re: Webphone RTC Not Connecting

PostPosted: Tue Oct 10, 2017 11:52 am
by turabaq
Thanks a lot, it worked.

Re: Webphone RTC Not Connecting

PostPosted: Tue Oct 10, 2017 12:01 pm
by mcargile
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.

Re: Webphone RTC Not Connecting

PostPosted: Tue Oct 10, 2017 12:25 pm
by chornyi_taras
there is an error in ua_config.
vici_phone.js:103
instead of
hackWssInTrasport: true,
should be
hackWssInTransport: true

Re: Webphone RTC Not Connecting

PostPosted: Tue Oct 10, 2017 12:53 pm
by williamconley
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.

Re: Webphone RTC Not Connecting

PostPosted: Tue Oct 10, 2017 1:03 pm
by mcargile
@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.

Re: Webphone RTC Not Connecting

PostPosted: Tue Oct 10, 2017 1:20 pm
by mcargile
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.

Re: Webphone RTC Not Connecting

PostPosted: Wed Oct 11, 2017 1:12 pm
by mcargile
We are changing the domain ViciPhone. Please read this:

viewtopic.php?f=3&t=37729