Page 1 of 1

Firefox and viciphone

PostPosted: Mon Nov 29, 2021 5:58 pm
by kevinhippert
Firefox will not registered a connection on the viciphone webphone. I am able to register and make calls using Chrome and mobile safari, but on Firefox it simply says, "connecting" and then "disconnected". If I try to click on the green register button it then says, "reg. failed."

I am not sure if this is related but it takes a long time for the login page to load. It then takes longer than I would expect for the login submission to process.

There is no relevant output in Asterisk -r as far as I can tell.

Does anyone have any guesses as to why viciphone registration does not work on Firefox?


Update: I am using Version 94.0.2 (64-bit) of Firefox on Windows 10. I just tried it on Version 93.0 (64-bit) on Ubuntu. It worked at first. After a successful log in and log out, it stopped loading. I upgraded to Version 94.0 (64-bit) and it is doing the same thing, it hangs at the "Please hold while I redirect you!". I cleared all browsing data and restarted the browser, same thing. The login page does eventually load, but it takes at least 1-2 minutes.

Update 2: This is the console output from firefox when trying to log in as an agent.
Code: Select all
INS: content-ads.js loaded:  https://myFQDN.com/agc/vicidial.php content-scripts.js:1:136814
TSS: content-tss.js loaded:  https://myFQDN.com/agc/vicidial.php content-scripts.js:1:142666
TSS: hosted page injected vicidial.php:4:21
Use of captureEvents() is deprecated. To upgrade your code, use the DOM 2 addEventListener() method. For more help http://developer.mozilla.org/en/docs/DOM:element.addEventListener vicidial.php:1099:18
Feature Policy: Skipping unsupported feature name “speakers”. vicidial.php
Feature Policy: Skipping unsupported feature name “speakers”. vicidial.php
INS: content-ads.js loaded:  https://myFQDN.com/agc/vdc_form_display.php?lead_id=&list_id=&stage=WELCOME content-scripts.js:1:136814
TSS: content-tss.js loaded:  https://myFQDN.com/agc/vdc_form_display.php?lead_id=&list_id=&stage=WELCOME content-scripts.js:1:142666
INS: content-ads.js loaded:  https://myFQDN.com/agc/agc_agent_manager_chat_interface.php?user=test&pass=123456789 content-scripts.js:1:136814
TSS: content-tss.js loaded:  https://myFQDN.com/agc/agc_agent_manager_chat_interface.php?user=test&pass=123456789 content-scripts.js:1:142666
INS: content-ads.js loaded:  https://myFQDN.com/agc/vdc_chat_display.php?lead_id=…_HARD_LIMIT&stage=WELCOME&server_ip=192.168.200.60&user=test content-scripts.js:1:136814
TSS: content-tss.js loaded:  https://myFQDN.com/agc/vdc_chat_display.php?lead_id=…_HARD_LIMIT&stage=WELCOME&server_ip=192.168.200.60&user=test content-scripts.js:1:142666
INS: content-ads.js loaded:  https://myFQDN.com/agc/vdc_email_display.php?lead_id=&list_id=&stage=WELCOME content-scripts.js:1:136814
TSS: content-tss.js loaded:  https://myFQDN.com/agc/vdc_email_display.php?lead_id=&list_id=&stage=WELCOME content-scripts.js:1:142666
TSS: hosted page injected vdc_form_display.php:4:21
TSS: hosted page injected agc_agent_manager_chat_interface.php:4:21
TSS: hosted page injected vdc_chat_display.php:4:21
TSS: hosted page injected vdc_email_display.php:4:21
INS: content-ads.js loaded:  https://phone.viciphone.com/viciphone.php?phone_login=239048jg-v9weim-3148hjg0q3urnb=&system_key= content-scripts.js:1:136814
TSS: content-tss.js loaded:  https://phone.viciphone.com/viciphone.php?phone_login=239048jg-v9weim-3148hjg0q3urnb=&system_key= content-scripts.js:1:142666
TSS: hosted page injected viciphone.php:4:21
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | configuration parameters after validation: sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · viaHost: "192.0.2.36" sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · uri: sip:phonetst@myFQDN.com sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · wsServers: [{"ws_uri":"wss://myFQDN.com:8089/ws","sip_uri":"<sip:myFQDN.com:8089;transport=ws;lr>","weight":0,"status":0,"scheme":"WSS"}] sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · custom: {} sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · displayName: "phonetst" sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · password: NOT SHOWN sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · registerExpires: 600 sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · register: true sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · registrarServer: sip:myFQDN.com sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · wsServerMaxReconnection: 3 sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · wsServerReconnectionTimeout: 4 sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · connectionRecoveryMinInterval: 2 sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · connectionRecoveryMaxInterval: 30 sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · keepAliveInterval: 0 sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · extraSupported: [] sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · usePreloadedRoute: false sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · userAgentString: "VICIphone 1.0-rc1" sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · iceCheckingTimeout: 5000 sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · noAnswerTimeout: 60000 sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · stunServers: ["stun:stun.l.google.com:19302"] sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · turnServers: [] sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · traceSip: true sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · hackViaTcp: false sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · hackIpInContact: true sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · hackWssInTransport: true sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · hackAllowUnregisteredOptionTags: false sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · hackCleanJitsiSdpImageattr: false sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · hackStripTcp: false sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · contactTransport: "wss" sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · forceRport: false sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · autostart: true sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · autostop: true sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · rel100: "none" sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · replaces: "none" sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · mediaHandlerFactory: function defaultFactory (session, options) {
  return new MediaHandler(session, options);
} sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · authenticationFactory: undefined sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · allowLegacyNotifications: false sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · authorizationUser: "phonetst" sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · rtcpMuxPolicy: "negotiate" sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · instanceId: "5adedca7-fbd9-44b3-925f-e250f87b307c" sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · sipjsId: "kbmsb" sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · hostportParams: "myFQDN.com" sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | · media: undefined sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.ua | user requested startup... sip.js:2900:10
Tue Nov 30 2021 14:48:36 GMT-0600 (Central Standard Time) | sip.transport | connecting to WebSocket wss://myFQDN.com:8089/ws sip.js:2900:10
navigator.getUserMedia is deprecated, please use navigator.mediaDevices.getUserMedia instead. adapter-latest.js:2600:11
TSS: unload event (detected = false): 
beforeunload { target: HTMLDocument https://myFQDN.com/agc/agc_agent_manager_chat_interface.php?user=test&pass=123456789, isTrusted: true, returnValue: "", srcElement: HTMLDocument https://myFQDN.com/agc/agc_agent_manager_chat_interface.php?user=test&pass=123456789, currentTarget: Window, eventPhase: 2, bubbles: false, cancelable: true, defaultPrevented: false, composed: false, … }
content-scripts.js:1:145099
TSS: unload event (detected = false): 
beforeunload { target: HTMLDocument https://myFQDN.com/agc/agc_agent_manager_chat_interface.php?user=test&pass=123456789, isTrusted: true, returnValue: "", srcElement: HTMLDocument https://myFQDN.com/agc/agc_agent_manager_chat_interface.php?user=test&pass=123456789, currentTarget: Window, eventPhase: 2, bubbles: false, cancelable: true, defaultPrevented: false, composed: false, … }
content-scripts.js:1:145099
TSS: unload event (detected = false): 
beforeunload { target: HTMLDocument https://myFQDN.com/agc/agc_agent_manager_chat_interface.php?user=test&pass=123456789, isTrusted: true, returnValue: "", srcElement: HTMLDocument https://myFQDN.com/agc/agc_agent_manager_chat_interface.php?user=test&pass=123456789, currentTarget: Window, eventPhase: 2, bubbles: false, cancelable: true, defaultPrevented: false, composed: false, … }
content-scripts.js:1:145099
getUserMedia succeeded
MediaStream { id: "{0b96ab51-127e-4a25-ac12-730c41f54e15}", active: true, onaddtrack: null, onremovetrack: null }
vici_phone.js:650:11
Firefox can’t establish a connection to the server at wss://myFQDN.com:8089/ws. sip.js:8403:16
Tue Nov 30 2021 14:48:41 GMT-0600 (Central Standard Time) | sip.transport | WebSocket connection error: {"isTrusted":true} sip.js:2900:10
Tue Nov 30 2021 14:48:41 GMT-0600 (Central Standard Time) | sip.transport | WebSocket disconnected (code: 1006) sip.js:2900:10
Tue Nov 30 2021 14:48:41 GMT-0600 (Central Standard Time) | sip.transport | WebSocket abrupt disconnection sip.js:2900:10
Tue Nov 30 2021 14:48:41 GMT-0600 (Central Standard Time) | sip.ua | transport wss://myFQDN.com:8089/ws failed | connection state set to 2 sip.js:2900:10
Tue Nov 30 2021 14:48:41 GMT-0600 (Central Standard Time) | sip.ua | next connection attempt in 2 seconds sip.js:2900:10
Tue Nov 30 2021 14:48:43 GMT-0600 (Central Standard Time) | sip.transport | connecting to WebSocket wss://myFQDN.com:8089/ws sip.js:2900:10
Firefox can’t establish a connection to the server at wss://myFQDN.com:8089/ws. sip.js:8403:16
Tue Nov 30 2021 14:49:03 GMT-0600 (Central Standard Time) | sip.transport | WebSocket connection error: {"isTrusted":true} sip.js:2900:10
Tue Nov 30 2021 14:49:03 GMT-0600 (Central Standard Time) | sip.transport | WebSocket disconnected (code: 1006) sip.js:2900:10
Tue Nov 30 2021 14:49:03 GMT-0600 (Central Standard Time) | sip.transport | WebSocket abrupt disconnection sip.js:2900:10
Tue Nov 30 2021 14:49:03 GMT-0600 (Central Standard Time) | sip.ua | transport wss://myFQDN.com:8089/ws failed | connection state set to 2 sip.js:2900:10
Tue Nov 30 2021 14:49:03 GMT-0600 (Central Standard Time) | sip.ua | next connection attempt in 2 seconds sip.js:2900:10
Tue Nov 30 2021 14:49:05 GMT-0600 (Central Standard Time) | sip.transport | connecting to WebSocket wss://myFQDN.com:8089/ws sip.js:2900:10
INS: content-ads.js loaded:  https://myFQDN.com/agc/agc_agent_manager_chat_interface.php?user=test&pass=123456789 content-scripts.js:1:136814
TSS: content-tss.js loaded:  https://myFQDN.com/agc/agc_agent_manager_chat_interface.php?user=test&pass=123456789 content-scripts.js:1:142666
TSS: hosted page injected agc_agent_manager_chat_interface.php:4:21
Firefox can’t establish a connection to the server at wss://myFQDN.com:8089/ws. sip.js:8403:16
Tue Nov 30 2021 14:49:25 GMT-0600 (Central Standard Time) | sip.transport | WebSocket connection error: {"isTrusted":true} sip.js:2900:10
Tue Nov 30 2021 14:49:25 GMT-0600 (Central Standard Time) | sip.transport | WebSocket disconnected (code: 1006) sip.js:2900:10
Tue Nov 30 2021 14:49:25 GMT-0600 (Central Standard Time) | sip.transport | WebSocket abrupt disconnection sip.js:2900:10
Tue Nov 30 2021 14:49:25 GMT-0600 (Central Standard Time) | sip.ua | transport wss://myFQDN.com:8089/ws failed | connection state set to 2 sip.js:2900:10
Tue Nov 30 2021 14:49:25 GMT-0600 (Central Standard Time) | sip.ua | next connection attempt in 2 seconds sip.js:2900:10
Tue Nov 30 2021 14:49:27 GMT-0600 (Central Standard Time) | sip.transport | connecting to WebSocket wss://myFQDN.com:8089/ws sip.js:2900:10
Firefox can’t establish a connection to the server at wss://myFQDN.com:8089/ws. sip.js:8403:16
Tue Nov 30 2021 14:49:33 GMT-0600 (Central Standard Time) | sip.transport | WebSocket connection error: {"isTrusted":true} sip.js:2900:10
Tue Nov 30 2021 14:49:33 GMT-0600 (Central Standard Time) | sip.transport | WebSocket disconnected (code: 1006) sip.js:2900:10
Tue Nov 30 2021 14:49:33 GMT-0600 (Central Standard Time) | sip.transport | WebSocket abrupt disconnection sip.js:2900:10
Tue Nov 30 2021 14:49:33 GMT-0600 (Central Standard Time) | sip.ua | transport wss://myFQDN.com:8089/ws failed | connection state set to 2 sip.js:2900:10
Tue Nov 30 2021 14:49:33 GMT-0600 (Central Standard Time) | sip.ua | next connection attempt in 2 seconds sip.js:2900:10
Tue Nov 30 2021 14:49:35 GMT-0600 (Central Standard Time) | sip.transport | connecting to WebSocket wss://myFQDN.com:8089/ws sip.js:2900:10
Firefox can’t establish a connection to the server at wss://myFQDN.com:8089/ws. sip.js:8403:16
Tue Nov 30 2021 14:49:55 GMT-0600 (Central Standard Time) | sip.transport | WebSocket connection error: {"isTrusted":true} sip.js:2900:10
Tue Nov 30 2021 14:49:55 GMT-0600 (Central Standard Time) | sip.transport | WebSocket disconnected (code: 1006) sip.js:2900:10
Tue Nov 30 2021 14:49:55 GMT-0600 (Central Standard Time) | sip.transport | WebSocket abrupt disconnection sip.js:2900:10
Tue Nov 30 2021 14:49:55 GMT-0600 (Central Standard Time) | sip.ua | transport wss://myFQDN.com:8089/ws failed | connection state set to 2 sip.js:2900:10
Tue Nov 30 2021 14:49:55 GMT-0600 (Central Standard Time) | sip.ua | next connection attempt in 16 seconds sip.js:2900:10
Tue Nov 30 2021 14:50:11 GMT-0600 (Central Standard Time) | sip.transport | connecting to WebSocket wss://myFQDN.com:8089/ws sip.js:2900:10



Update 3:I believe this problem is related to NAT Reflection. Firefox loads the Vicidial page fine when I access it outside my network. For some reason, Firefox will not accept the certificate when the underlying server is on an internal IP.

Re: Firefox and viciphone

PostPosted: Sat May 21, 2022 8:13 pm
by williamconley
Sometimes the router you are behind will have your domain name installed and re-route certain requests differently because it believes it owns that domain. And odd functions will fail as a result.

I wouldn't doubt that this is either the problem or similar.

Re: Firefox and viciphone

PostPosted: Sun May 22, 2022 6:41 am
by carpenox
You need your cert to on an external ip, also wifi viciphone are you using?

Re: Firefox and viciphone

PostPosted: Tue May 24, 2022 11:02 am
by williamconley
carpenox wrote:You need your cert to on an external ip


Um ... Are you sure about that?

Public vs Private IP is not related to validity of the Certificate. Many call centers have private networks for agents to access the dialers without using public bandwidth and with wide-open firewalls (due to being on a private network, of course).

Re: Firefox and viciphone

PostPosted: Tue May 24, 2022 7:27 pm
by carpenox
not on webrtc they dont - webphones dont work on self signed certs - but thx for sharing

Re: Firefox and viciphone

PostPosted: Tue May 24, 2022 10:12 pm
by alo
We use self signed certs all the time.

Re: Firefox and viciphone

PostPosted: Wed May 25, 2022 12:17 pm
by williamconley
carpenox wrote:not on webrtc they dont - webphones dont work on self signed certs - but thx for sharing

"Self-Signed Certs" vs "local IPs".

1) Those are NOT the same thing. One CAN (without any issues) use a Public SSL Cert on a private network. We routinely use these certs on both public and private networks for clients to avoid public bandwidth usage for agents in the same facility as the servers.

2) The computer in question must trust the cert. Whether that is accomplished by being a Firefox Trusted Root or by the PC trusting the chain.

Re: Firefox and viciphone

PostPosted: Thu May 26, 2022 5:54 am
by carpenox
alo wrote:We use self signed certs all the time.



yes u can follow strikers blog and use a self signed cert, but i have found it to cause audio problems in the long run, one way audio, agents getting disconnected form calls, agents showing theyare on a dead call but in reality they are still live, all types of issues come from it

In my experience anyways, to each their own though.

Re: Firefox and viciphone

PostPosted: Thu May 26, 2022 12:54 pm
by williamconley
carpenox wrote:
alo wrote:We use self signed certs all the time.



yes u can follow strikers blog and use a self signed cert, but i have found it to cause audio problems in the long run, one way audio, agents getting disconnected form calls, agents showing theyare on a dead call but in reality they are still live, all types of issues come from it

In my experience anyways, to each their own though.


we weren't actually discussing self-signed certs, he just tossed that comment in cuz you brought it up. Once working, however, it only stops working if a server or workstation loses the "trust" of that certificate. Then you must find out who lost trust and repair it. Not an "avoid at all costs", just "if you're gonna do it, do it right", which is a main part of Vicidial.

Re: Firefox and viciphone

PostPosted: Thu May 26, 2022 11:02 pm
by carpenox
well to address his "update3" on the original post, im pretty sure i said that you can not use an internal IP, only external, it just doesnt work without, there is a way but you have to edit the hosts file for every windows machine to trick it into thinking its reaching an outside DNS

Re: Firefox and viciphone

PostPosted: Sun May 29, 2022 12:05 pm
by williamconley
carpenox wrote:well to address his "update3" on the original post, im pretty sure i said that you can not use an internal IP, only external, it just doesnt work without, there is a way but you have to edit the hosts file for every windows machine to trick it into thinking its reaching an outside DNS

No need to "trick" if you have your own DNS service or your local router has the ability to capture host dns during dhcp.

It's not 'impossible" at all, it just has rules. If you follow them, it works.

As long as trust is established, WebRTC doens't fail. That can include
* an entry in /etc/hosts on linux workstations
* an entry in C:\Windows\System32\drivers\etc\hosts on Windows workstations
* Local DNS Server
* Router with DHCP host capture (which can override public DNS service for workstations)
* Public DNS Server with Private IP assigned (which can require a paid ssl cert, manual ssl confirmation, or multiple DNS entries, or changing DNS during renewal)
* Private SSL cert inserted into Browser's Trust directly

In the end, as long as the user's Browser trusts the Cert, it'll work. Those are the rules.

I'm pretty sure we've done all of these at one point or another for a a client. There are a LOT of use-case scenarios out there. And a lot of businesses with special requirements/restrictions.

Re: Firefox and viciphone

PostPosted: Sun May 29, 2022 12:35 pm
by carpenox
well said bill

Re: Firefox and viciphone

PostPosted: Thu Nov 09, 2023 5:43 pm
by egorky
Well, just for the curious ones, I have resolved this issue by simply opening in the browser the address of vicidial with the websocker port like this: https://192.168.10.2:8089/ then, in the warning you have to permit the conection, after that you can sign in as an agent and viciphone will connect without an issue.