Steve Gladden
2005-Aug-24 18:21 UTC
[Asterisk-Users] SIP Registration --Giving up forever after very short network outage.
I'm looking for some help in how to keep asterisk from doing this. If we loose Internet or routing to our upstream provider even for only a few short minutes asterisk quickly gives up & never tries again. I have to do a manual reload to get it to register with my sip provider(s) again before incoming calls are accepted. This is really bad as it causes us to loose the ability to get incoming calls now & then. Not at all what we want in a phone system. How can I get asterisk to stop giving up so soon or better yet not give up at all... this is after all a phone system... I would really like it to register back in if the Internet goes down then comes back up 10 minutes later! I'm running CVS-HEAD (about two weeks old) Aug 24 19:08:13 NOTICE[7124]: chan_sip.c:4701 sip_reg_timeout: -- Registration for '734nnnnnnn@sip.main-provider.net' timed out, trying again (Attempt #8) Aug 24 19:08:16 NOTICE[7124]: chan_sip.c:4701 sip_reg_timeout: -- Registration for '516nnnnnnnn@sip.stanaphone.com' timed out, trying again (Attempt #11) Aug 24 19:08:16 NOTICE[7124]: chan_sip.c:4719 sip_reg_timeout: -- Giving up forever trying to register '516nnnnnnn@sip.stanaphone.com' Thanks for your help !!! Steve
Eric Wieling aka ManxPower
2005-Aug-24 19:48 UTC
[Asterisk-Users] SIP Registration --Giving up forever after very short network outage.
Steve Gladden wrote:> I'm looking for some help in how to keep asterisk from doing this. > If we loose Internet or routing to our upstream provider even for only a > few short minutes asterisk quickly gives up & never tries again. > I have to do a manual reload to get it to register with my > sip provider(s) again before incoming calls are accepted.Try using IP addresses instead of hostnames in sip.conf. Asterisk's DNS support is supposed to be improved in CVS-HEAD, but you should still try it. However, using an IP address instread of a hostname in your host= line could have issues with some ways a provider might do failover and load balancing.
steve@daviesfam.org
2005-Aug-25 04:27 UTC
[Asterisk-Users] SIP Registration --Giving up forever after very short network outage.
On Wed, 24 Aug 2005, Steve Gladden wrote:> I'm looking for some help in how to keep asterisk from doing this. > If we loose Internet or routing to our upstream provider even for only a > few short minutes asterisk quickly gives up & never tries again. > I have to do a manual reload to get it to register with my > sip provider(s) again before incoming calls are accepted. > > This is really bad as it causes us to loose the ability to get incoming > calls now & then. > Not at all what we want in a phone system.Won't you just start by updating your Asterisk IIRC, we patched a bug a couple of weeks back. If it still times out too quick, drop another line and we'll look further. Steve