Hi all Do any of you know i can force asterisk to lookup ip addresses for peers and trunks everytime it tries to make a call. One of the peers has a dynamic ip and is using DynDNS to register host. Now i need to reload asterisk everytime i want to call it thanks liaan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Hi, Try something like these, works for me. extensions.conf [general] ; static=yes ; writeprotect=no ; [globals] ; CONSOLE=Console/dsp ; Console interface for demo ;CONSOLE=Zap/1 ;CONSOLE=Phone/phone0 ; #include globals.conf ;This includes your conf file with your fqdn's listed. exten => _20XX,1,Dial(IAX2/guest@${RMT1}/${EXTEN}) exten => _20XX,2,Hangup ; exten => _21XX,1,Dial(IAX2/guest@${RMT2}/${EXTEN}) exten => _21XX,2,Hangup ; exten => _22XX,1,Dial(IAX2/guest@${RMT3}/${EXTEN}) exten => _22XX,2,Hangup ; exten => _23XX,1,Dial(IAX2/guest@${RMT4}/${EXTEN}) exten => _23XX,2,Hangup ; exten => _24XX,1,Dial(IAX2/guest@${RMT5}/${EXTEN}) exten => _24XX,2,Hangup globals.conf RMT1=www.domain1.zzz ;remote1 RMT2=www.domain2.zzz ;remote2 RMT3=www.domain3.zzz ;remote3 RMT4=www.domain4.zzz ;remote4 RMT5=www.domain5.zzz ;remote5 I never reboot even when the DynDns changes. Regards Dave -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Liaan vd Merwe Sent: 03 February 2005 07:38 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] IAX dns lookups Hi all Do any of you know i can force asterisk to lookup ip addresses for peers and trunks everytime it tries to make a call. One of the peers has a dynamic ip and is using DynDNS to register host. Now i need to reload asterisk everytime i want to call it thanks liaan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
thanks.. will give it try. cheers L ----- Original Message ----- From: "David J Carter" <david.carter@codepipe.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Thursday, February 03, 2005 10:07 AM Subject: RE: [Asterisk-Users] IAX dns lookups> Hi, > > Try something like these, works for me. > > extensions.conf > > [general] > ; > static=yes > ; > writeprotect=no > ; > [globals] > ; > CONSOLE=Console/dsp ; Console interface for demo > ;CONSOLE=Zap/1 > ;CONSOLE=Phone/phone0 > ; > #include globals.conf ;This includes your conf filewith your fqdn's> listed. > > exten => _20XX,1,Dial(IAX2/guest@${RMT1}/${EXTEN}) > exten => _20XX,2,Hangup > ; > exten => _21XX,1,Dial(IAX2/guest@${RMT2}/${EXTEN}) > exten => _21XX,2,Hangup > ; > exten => _22XX,1,Dial(IAX2/guest@${RMT3}/${EXTEN}) > exten => _22XX,2,Hangup > ; > exten => _23XX,1,Dial(IAX2/guest@${RMT4}/${EXTEN}) > exten => _23XX,2,Hangup > ; > exten => _24XX,1,Dial(IAX2/guest@${RMT5}/${EXTEN}) > exten => _24XX,2,Hangup > > > > > > globals.conf > > RMT1=www.domain1.zzz ;remote1 > RMT2=www.domain2.zzz ;remote2 > RMT3=www.domain3.zzz ;remote3 > RMT4=www.domain4.zzz ;remote4 > RMT5=www.domain5.zzz ;remote5 > > I never reboot even when the DynDns changes. > > Regards > > Dave > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com]OnBehalf Of Liaan vd> Merwe > Sent: 03 February 2005 07:38 > To: Asterisk Users Mailing List - Non-CommercialDiscussion> Subject: [Asterisk-Users] IAX dns lookups > > > Hi all > > Do any of you know i can force asterisk to lookup ip > addresses for peers and > trunks everytime it tries to make a call. > > One of the peers has a dynamic ip and is usingDynDNS> to register host. Now > i need to reload asterisk everytime i want to callit> > thanks > liaan > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spamprotection around> http://mail.yahoo.com > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users> To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users> > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users> To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users>__________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com
On Wed, 2005-02-02 at 23:37 -0800, Liaan vd Merwe wrote:> Hi all > > Do any of you know i can force asterisk to lookup ip > addresses for peers and > trunks everytime it tries to make a call. > > One of the peers has a dynamic ip and is using DynDNS > to register host. Now > i need to reload asterisk everytime i want to call itI have a system with 3 servers in various locations all on dynamic IPs, when their IP changes /etc/ppp/ip-up.local has the command to reload asterisk so that they re-register with all their peers. Works for me (tm). -- Dave Cotton <dcotton@linuxautrement.com>