<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div apple-content-edited="true" class="">John,</div><div apple-content-edited="true" class=""><br class=""></div><div apple-content-edited="true" class="">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.</div><div apple-content-edited="true" class=""><br class=""></div><div apple-content-edited="true" class="">Kind regards,</div><div apple-content-edited="true" class="">Daniel</div><div apple-content-edited="true" class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="">Am 01.04.2015 um 16:40 schrieb Tech Support <<a href="mailto:asterisk@voipbusiness.us" class="">asterisk@voipbusiness.us</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; text-align: justify;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">    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<span class="Apple-converted-space"> </span><a href="http://checkip.dyndns.org" style="color: purple; text-decoration: underline;" class="">http://checkip.dyndns.org</a><span class="Apple-converted-space"> </span>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.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; text-align: justify;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Regards;<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; text-align: justify;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">John<o:p class=""></o:p></span></div></div></div></blockquote></div><br class=""></body></html>