Hi all, I have a IAX trunk between two asterisk servers, both with dynamic IP and both have a DNS name associated with it. In the iax.conf file I configure the "host" parameter with the DNS name of the servers. Everything works fine until one of these servers get a new IP, so the other can't find its peer (the one that has just gotten a new IP). If I manually issue a "iax2 reload" in the CLI, asterisk tries to find the IP of the peer (based on its DNS name) and everything starts working again. This is the section for my trunk in one of my servers: [sometrunk] type=friend username=someusername secret=somesecret auth=plaintext host=host.no-ip.org context=incoming peercontext=incoming qualify=yes trunk=yes Is there any way to tell asterisk to try to find the peer's IP address if that peer is "unreachable" or each 10 minutes? Thanks in advance. Ronaldo.
Hi Ronaldo -> I have a IAX trunk between two asterisk servers, both with dynamic IP > and both have a DNS name associated with it. > In the iax.conf file I configure the "host" parameter with the DNS name > of the servers. Everything works fine until one of these servers get a > new IP, so the other can't find its peer (the one that has just gotten a > new IP). If I manually issue a "iax2 reload" in the CLI, asterisk tries > to find the IP of the peer (based on its DNS name) and everything starts > working again. > This is the section for my trunk in one of my servers: > > [sometrunk] > type=friend > username=someusername > secret=somesecret > auth=plaintext > host=host.no-ip.org > context=incoming > peercontext=incoming > qualify=yes > trunk=yes > > > Is there any way to tell asterisk to try to find the peer's IP address > if that peer is "unreachable" or each 10 minutes?I don't know if your DDNS provider would support this, but if you set the TTL value of your DNS hostnames to something very low, like 10 seconds, it would force your OS to keep finding the latest IP. - Noah
Hi Matt, Every time I do that, IAX stop sending the POKE messages (necessary for trunk management). Do you know what could be happening? Thanks. Ronaldo. Matt wrote:> > *set "enable=yes" in the "[general]" section of > /etc/asterisk/dnsmgr.conf* > > > ------------------------------------------------------------------------ > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
In your no-ip client set it to update ip every 2 minutes or so . and /etc/asterisk/dnsmgr.conf set refresh interval as 30-40 by defualt its 300 ( 5 minutes) On 10/06/07, Ronaldo Z. Afonso <ronaldoafonso@gmail.com> wrote:> Hi Matt, > > Every time I do that, IAX stop sending the POKE messages (necessary for > trunk management). > Do you know what could be happening? > > Thanks. > Ronaldo. > > Matt wrote: > > > > *set "enable=yes" in the "[general]" section of > > /etc/asterisk/dnsmgr.conf* > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > --Bandwidth and Colocation provided by Easynews.com -- > > > > asterisk-users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >