[asterisk-users] Update peer IP address
Daniel Heckl
daniel.heckl at gmail.com
Wed Apr 1 09:48:31 CDT 2015
John,
thank you four your answer. I think you have misunderstood the problem. It’s about a ip address change of the sip trunk, not of my asterisk server.
Kind regards,
Daniel
> Am 01.04.2015 um 16:40 schrieb Tech Support <asterisk at voipbusiness.us <mailto:asterisk at voipbusiness.us>>:
>
> If I correctly understand what the problem is, what I did was write a script that runs out of CRON every 15 minutes. It checks the outside IP address by querying http://checkip.dyndns.org <http://checkip.dyndns.org/> and compares it to the IP address stored in the parameter “externip” in the [general] section of sip.conf. If the two values are the same, the script exits quietly. If they are different, the script updates “externip” with the new address, does a sip reload, and shoots me an email saying there was an update. It's a fairly simple and straightforward process and does the job. I use this script for all PBX’s that are behind a NAT. I hope this helps.
> Regards;
> John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150401/807d4110/attachment.html>
More information about the asterisk-users
mailing list