Page 1 of 1

Connecting SIP from outside the Network

PostPosted: Mon Nov 26, 2018 9:12 am
by Leckbush
Hi Im trying to connect a SIP Phone from outside/remotely. But I couldnt get the SIP registered (Request Timeout)
*We have static external IP x.x.x.x
*SIP Phone Port 5060 is port forwarded on router
*NAT is set to yes on SIP.conf

I try to ping our IP outside but couldnt ping (I already know this because router is not accepting any ping request) But our vicidial web server which is our ip is accessible.

Any help guys? I do search this but only find all of them to turn on NAT which is turned on.

Re: Connecting SIP from outside the Network

PostPosted: Mon Nov 26, 2018 1:30 pm
by thephaseusa
You say you have someone trying to register their sip phone from outside your network, such as a work from home agent or another call center, correct?

Did you allow their IP address in your whitelist firewall?

Look at asterisk -r when they try to register. If you aren’t seeing anything there, they are not getting through your firewall.

Re: Connecting SIP from outside the Network

PostPosted: Mon Nov 26, 2018 2:08 pm
by Leckbush
But their IP is not static? If I set their IP today, It might be different tomorrow

Re: Connecting SIP from outside the Network

PostPosted: Mon Nov 26, 2018 2:23 pm
by williamconley
sip.conf: externip value must be set to the actual public ip of the router.

telnet to port 5060. if ping is off, that's the only way to verify your port forward worked.

https://serverfault.com/questions/85721 ... -in-centos

of course, if you also forward port 80 you can at least verify that port has forwarded very easily (with any web browser) and if that works and is forwarded using the same method as 5060, you have pretty good odds 5060 is also forwarded properly. But telnet to port 5060 will be conclusive. Note you can't register a phone with telnet, but you can send and receive packets to confirm packets are passing.