Port Forwarded 9500 from internet to freepbx server
FreePBX extension settings have 9500 as port
ZoIPER app config
domain: Public IP of freepbx
username: 100
password: mysecret
When I try to register
“Connection Error: 102, Connection Timeout”
No info on the debug side of freepbx…
All I want to do is connect remote office extensions securely without VPN, so I have changed the bindport and now have to reprogram all the phone configs, all the extension configs, and in the process I have now broken my SPA3102 FXS extension, and remote extensions arent working at all…
If I switch bindport back to 5060, and configure my freepbx extensions settings to 5060, and my phone config back to 5060 and port forward 5060, then it works and I can register my remote ZoIPER app
Same thing with my SPA3102 FXS extension, it works with bindport 5060 but when changed it doesnt.
Set custom BindPort in SIP settings, but also set Bind Address to freepbx local IP (192.168.x.x)
amportal restart
Ignore extension SIP Port settings, they are ignored because I am using “dynamic IP”
Check to make sure it is binding to the port with
TCP:
In your PBX, Go to Applications–> Extensions --> Transport -> All TCP - Primary. That’s going to make it use TCP for your extension.
Still in your PBX, go to Settings --> Asterisk SIP settings --> Other SIP Settings, and add “tcpenable=yes”. That’s going to allow Asterisk to use TCP connection, otherwise the extension TCP setting is irrelevant.
In your phone, check “use TCP” box in your SIP app.
Change the “TCP keep alive” in your SIP app to 1200 seconds, or play with it. That’s right, 1200 seconds is 20 minutes. I’ve found that 15 minutes was not unnecessary, and 30 minutes was to much, gave to much time to unregister.
Go in your extension settings, and change the qualify option from “yes” to “no”.
Problems Discovered:
This lead me to discover that TCP was not binding to my custom port, but stayed listening on 5060, which is why ZoIPER would not register: