Firefox and viciphone
Posted: Mon Nov 29, 2021 5:58 pm
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.
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.
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.