Zulu won't connect on WAN

I am having issues with Zulu connecting to my PBX.

I can originate a call from Zulu but only to send the call to my desk phone. The softphone does not work (It says softphone (offline) - RECONNECT). The behavior is the same whether the computer with Zulu is connecting to my PBX over LAN or WAN

Log when Zulu is on same LAN as PBX

October 25th 2017, 9:58:32 am - debug: Softphone - SipJS Internal - sip.transport - - connecting to WebSocket wss://192.168.1.109:8089/ws
October 25th 2017, 9:58:32 am - debug: Softphone - engineEvent - connecting
October 25th 2017, 9:58:32 am - debug: ZuluApp - Softphone - Received connecting message
October 25th 2017, 9:58:32 am - debug: Softphone - SipJS Internal - sip.transport - - WebSocket connection error: {“isTrusted”:true}
October 25th 2017, 9:58:32 am - debug: Softphone - SipJS Internal - sip.transport - - WebSocket disconnected (code: 1006)
October 25th 2017, 9:58:32 am - debug: Softphone - SipJS Internal - sip.transport - - WebSocket abrupt disconnection
October 25th 2017, 9:58:32 am - debug: Softphone - SipJS Internal - sip.ua - - transport wss://192.168.1.109:8089/ws failed | connection state set to 2
October 25th 2017, 9:58:32 am - debug: Softphone - engineEvent - disconnected
October 25th 2017, 9:58:32 am - debug: ZuluApp - Softphone disconnected
October 25th 2017, 9:58:32 am - debug: ZuluCall - Updating incomingCall state
October 25th 2017, 9:58:32 am - info: ZuluCall - Number of active calls - 0
October 25th 2017, 9:58:32 am - debug: Softphone - SipJS Internal - sip.ua - - next connection attempt in 16 seconds

Logs when connecting over WAN (xxx.xxx.xxx.xxx is the external IP for my PBX)

October 25th 2017, 10:03:58 am - debug: Softphone - SipJS Internal - sip.transport - - connecting to WebSocket wss://xxx.xxx.xxx.xxx:8089/ws
October 25th 2017, 10:03:59 am - debug: PBXCommunicator - increaseReconnectionTime - Increased reconnection time - 8000ms
October 25th 2017, 10:03:59 am - debug: PBXCommunicator - connect - 192.168.1.109 - 8002 - wss://
October 25th 2017, 10:03:59 am - debug: PBXCommunicator - Connecting to pbx server
October 25th 2017, 10:04:17 am - debug: Softphone - SipJS Internal - sip.transport - - WebSocket connection error: {“isTrusted”:true}
October 25th 2017, 10:04:17 am - debug: Softphone - SipJS Internal - sip.transport - - WebSocket disconnected (code: 1006)
October 25th 2017, 10:04:17 am - debug: Softphone - SipJS Internal - sip.transport - - WebSocket abrupt disconnection
October 25th 2017, 10:04:17 am - debug: Softphone - SipJS Internal - sip.ua - - transport wss://xxx.xxx.xxx.xxx:8089/ws failed | connection state set to 2
October 25th 2017, 10:04:17 am - debug: Softphone - engineEvent - disconnected
October 25th 2017, 10:04:17 am - debug: ZuluApp - Softphone disconnected
October 25th 2017, 10:04:17 am - debug: ZuluCall - Updating incomingCall state
October 25th 2017, 10:04:17 am - info: ZuluCall - Number of active calls - 0
October 25th 2017, 10:04:17 am - debug: Softphone - SipJS Internal - sip.ua - - next connection attempt in 4 seconds

My PBX is in the DMZ, I also have port 8089 and 8002 forwarded to the PBX (does that even matter if it’s in the DMZ?). My PBX firewall is set to allow Zulu service on Internet, Local, and Other.

I attempted to connect with the PBX firewall disabled, that didn’t work either. Logs when firewall was disabled:

October 25th 2017, 10:10:31 am - debug: ZuluMenu - _resizeWindow - 207
October 25th 2017, 10:10:31 am - debug: PBXCommunicator - Connection to PBX Server was closed: Invalid Response From Server
October 25th 2017, 10:10:31 am - debug: ZuluApp - Received pbxStatus - offline
October 25th 2017, 10:10:31 am - debug: ZuluUserInfo - Removing listeners
October 25th 2017, 10:10:31 am - debug: ZuluKeypad - Removing listeners
October 25th 2017, 10:10:31 am - debug: ZuluContactSuggestions - Removing listeners
October 25th 2017, 10:10:31 am - debug: ZuluPBXInfo - Removing listeners
October 25th 2017, 10:10:31 am - debug: ZuluConnecting - Initial message - Invalid Response From Server
October 25th 2017, 10:10:31 am - debug: ZuluConnecting - Received pbxErrorMessage - {“sender”:{“domain”:null,“_events”:{“pbxConfig”:[null],“zuluConfig”:[null]},“_eventsCount”:21}}
October 25th 2017, 10:10:33 am - debug: Softphone - SipJS Internal - sip.transport - - connecting to WebSocket wss://xxx.xxx.xxx.xxx:8089/ws
October 25th 2017, 10:10:33 am - debug: Softphone - engineEvent - connecting
October 25th 2017, 10:10:33 am - debug: ZuluApp - Softphone - Received connecting message
October 25th 2017, 10:10:33 am - debug: Softphone - SipJS Internal - sip.transport - - WebSocket connection error: {“isTrusted”:true}
October 25th 2017, 10:10:33 am - debug: Softphone - SipJS Internal - sip.transport - - WebSocket disconnected (code: 1006)
October 25th 2017, 10:10:33 am - debug: Softphone - SipJS Internal - sip.transport - - WebSocket abrupt disconnection
October 25th 2017, 10:10:33 am - debug: Softphone - SipJS Internal - sip.ua - - transport wss://xxx.xxx.xxx.xxx:8089/ws failed | connection state set to 2
October 25th 2017, 10:10:33 am - debug: Softphone - engineEvent - disconnected
October 25th 2017, 10:10:33 am - debug: ZuluApp - Softphone disconnected

Any ideas?

Port 8089 is blocked on your WAN side.

I have port 8089 forwarded to my PBX in my router. Is there something in FreePBX I need to open?

You may need to adjust firewall or iptables. Not sure what your configuration is.

Andrew,

It did appear to be a firewall issue. Disabling my FreePBX firewall allowed it to connect. I ended up adding a custom service in the FreePBX firewall for TCP port 8089. That seems to do the trick.

2 Likes