RE: Registering Sipura from remote location to Asterisk Sipura devices work well with STUN (as long as the router they're behind is not Symmetric NAT), but Asterisk does not.
On the Asterisk's router you need to do two groups of things to make life smooth.
First, you need to either put your Asterisk in your router's DMZ or forward ports UDP 5060, UDP 10000-20000, UDP 4569, TCP 22 and (if you are using AMP or FOP) TCP 80 to the Asterisk's assigned FIXED LAN address.
Second, in sip.conf you need to set localnet= to match the LAN IP address range your Asterisk is a member of and externip= to your Asterisk's router's fixed IP address or dynamic DNS FQDN. If you have an IP address that changes often you will also need to reload sip.conf (via the "sip reload" command) every time your assigned public IP address changes. In my case I have two cron jobs that run every ten minutes. The first one, which runs on every minute that ends in 0, checks with my dyndns server to see what my current IP address is. The second one, which runs one minute later, issues a "sip reload" instruction to Asterisk. This forces Asterisk to resolve the FQDN once every ten minutes, reducing the time that remote clients cannot connect to a maximum of ten minutes. This procedure does not interrupt any calls in progress, so it is safe to perform as often as you feel necessary.
Good luck.
__________________ Please do not send technical questions via PM.
Please post all questions to the forum. |