I have a trunk, and its host=dynamic dns. The problem is, when the IP changes the Sip show peers Still show the old IP of the DNS, I have to reload and save the configuration again so that asterisk recognize the new IP of the DNS. Any idea how to automate such a thing? Or how can I keep asterisk to deal with NAMES as NAMES, and IPs as IPs. Let me know. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091029/2f92625f/attachment-0001.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> If the trunk is a dynamic IP you need the other end to register to Asterisk, so letting Asterisk know the new IP.<br> <br> Regards,<br> Juan<br> <br> B.Masoud @ SH wrote: <blockquote cite="mid:020101ca5833$e48183f0$ad848bd0$@com" type="cite"> <meta http-equiv="Content-Type" content="text/html; "> <meta name="Generator" content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face         {font-family:SimSun;         panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face         {font-family:SimSun;         panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face         {font-family:Calibri;         panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face         {font-family:"\@SimSun";         panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal         {margin:0in;         margin-bottom:.0001pt;         font-size:11.0pt;         font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink         {mso-style-priority:99;         color:blue;         text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed         {mso-style-priority:99;         color:purple;         text-decoration:underline;} span.EmailStyle17         {mso-style-type:personal-compose;         font-family:"Calibri","sans-serif";         color:windowtext;} .MsoChpDefault         {mso-style-type:export-only;} @page Section1         {size:8.5in 11.0in;         margin:1.0in 1.0in 1.0in 1.0in;} div.Section1         {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--> <div class="Section1"> <p class="MsoNormal">I have a trunk, and its host=dynamic dns.<o:p></o:p></p> <p class="MsoNormal">The problem is, when the IP changes the <o:p></o:p></p> <p class="MsoNormal">Sip show peers <o:p></o:p></p> <p class="MsoNormal">Still show the old IP of the DNS, I have to reload and save the configuration again so that asterisk recognize the new IP of the DNS.<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Any idea how to automate such a thing? Or how can I keep asterisk to deal with NAMES as NAMES, and IPs as IPs.<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Let me know.<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Thanks.<o:p></o:p></p> </div> <pre wrap=""> <hr size="4" width="90%"> _______________________________________________ -- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre> </blockquote> </body> </html>
On 29/10/09 2:05 PM, B.Masoud @ SH wrote:> I have a trunk, and its host=dynamic dns. > > The problem is, when the IP changes the > > Sip show peers > > Still show the old IP of the DNS, I have to reload and save the > configuration again so that asterisk recognize the new IP of the DNS. > > Any idea how to automate such a thing? Or how can I keep asterisk to > deal with NAMES as NAMES, and IPs as IPs.The reply regarding getting the other end to register is correct. The other host should be registering regularly. If you have a host name use /etc/asterisk/dnsmgr.conf: [general] enable=yes ; enable creation of managed DNS lookups ; default is 'no' ;refreshinterval=1200 ; refresh managed DNS lookups every <n> seconds ; default is 300 (5 minutes) -- Cheers, Matt Riddell Director _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)
Hi I tried with registration, it did not update the IP address I can only see it updated if I typed: Sip reload I have few questions: Is there any way Asterisk automatically updates the DNS? If no other way, can I type sip reload on a production system safely? If yes, any help shows how to send the command ?sip reload? periodically to asterisk? Thanks. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of "Juan E. Rodr?guez" Sent: Thursday, October 29, 2009 6:33 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Dynamic DNS trunk If the trunk is a dynamic IP you need the other end to register to Asterisk, so letting Asterisk know the new IP. Regards, Juan B.Masoud @ SH wrote: I have a trunk, and its host=dynamic dns. The problem is, when the IP changes the Sip show peers Still show the old IP of the DNS, I have to reload and save the configuration again so that asterisk recognize the new IP of the DNS. Any idea how to automate such a thing? Or how can I keep asterisk to deal with NAMES as NAMES, and IPs as IPs. Let me know. Thanks. _____ _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091029/6226120b/attachment.htm
On 30/10/09 6:42 AM, B.Masoud @ SH wrote:> Hi > > I tried with registration, it did not update the IP address > > I can only see it updated if I typed: > > Sip reload > > I have few questions: > > Is there any way Asterisk automatically updates the DNS?Yep /etc/asterisk/dnsmgr.conf -- Cheers, Matt Riddell Director _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)
Thanks I did this dnsmgr.conf: enable=yes refreshinterval=300 I did "dnsmgr refresh", the DNS in the trunk did not got the new ip, also I waited 5 min. do I have to add an entry to dnsmgr?? Thanks! -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Matt Riddell Sent: Friday, October 30, 2009 1:53 AM To: asterisk-users at lists.digium.com Subject: Re: [asterisk-users] Dynamic DNS trunk On 30/10/09 6:42 AM, B.Masoud @ SH wrote:> Hi > > I tried with registration, it did not update the IP address > > I can only see it updated if I typed: > > Sip reload > > I have few questions: > > Is there any way Asterisk automatically updates the DNS?Yep /etc/asterisk/dnsmgr.conf -- Cheers, Matt Riddell Director _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems) _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users