On 4/1/15 10:48 AM, Daniel Heckl wrote:> 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.You would probably benefit by enabling the DNS Manager to allow for dynamic IP changes: # cat dnsmgr.conf [general] enable=yes ; enable creation of managed DNS lookups ; default is 'no' refreshinterval=180 ; refresh managed DNS lookups every <n> seconds ; default is 300 (5 minutes)> > 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 queryinghttp://checkip.dyndns.organd 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 > > >-- Technical Support http://www.cellroute.net -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150401/91a58518/attachment.html>
On Wed, Apr 01, 2015 at 11:00:56AM -0400, Andres wrote:> On 4/1/15 10:48 AM, Daniel Heckl wrote: > > 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. > You would probably benefit by enabling the DNS Manager to allow for > dynamic IP changes: > > # cat dnsmgr.conf [general] enable=yes ; enable creation > of managed DNS lookups ; default is 'no' refreshinterval=180 ; > refresh managed DNS lookups every <n> seconds ; default is 300 (5 > minutes)Hello Andres, I read that same suggestion elsewhere in connection with Deutsche Telekom, so it seems there's some benefit in it. Daniel, did you try it out already? Kind regards, Sebastian
Ok, I have tested dnsmgr. This is not a solution, the situation has not changed. With dnsmgr I can not place outbound calls. I do not know why and what dnsmgr really do. My current solution is as follows: Say allowguest=yes, configure the default context that there can not be placed outbound calls. Use iptables to DROP all at your SIP port and allow only your local phones and the sip trunk ip range. I think srvlookup must be set to yes to place outbound calls if there is an ip address change. I think with the restriction of the firewall that should be a secure solution.> Am 01.04.2015 um 19:23 schrieb Sebastian Kemper <sebastian_ml at gmx.net>: > > On Wed, Apr 01, 2015 at 11:00:56AM -0400, Andres wrote: >> On 4/1/15 10:48 AM, Daniel Heckl wrote: >>> 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. >> You would probably benefit by enabling the DNS Manager to allow for >> dynamic IP changes: >> >> # cat dnsmgr.conf [general] enable=yes ; enable creation >> of managed DNS lookups ; default is 'no' refreshinterval=180 ; >> refresh managed DNS lookups every <n> seconds ; default is 300 (5 >> minutes) > > Hello Andres, > > I read that same suggestion elsewhere in connection with Deutsche > Telekom, so it seems there's some benefit in it. > > Daniel, did you try it out already? > > Kind regards, > Sebastian > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users