[asterisk-bugs] [Asterisk 0013242]: SIP registration does never work, in case DNS not available during firstregistration
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Dec 9 15:52:29 CST 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13242
======================================================================
Reported By: reinerotto
Assigned To: russell
======================================================================
Project: Asterisk
Issue ID: 13242
Category: Channels/chan_sip/Registration
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Asterisk Version: 1.4.21.1
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
Resolution: not fixable
Fixed in Version:
======================================================================
Date Submitted: 2008-08-05 16:22 CDT
Last Modified: 2008-12-09 15:52 CST
======================================================================
Summary: SIP registration does never work, in case DNS not
available during firstregistration
Description:
Effekt:
When asterisk is started, and DNS does not completely work in that instant
of time, sip registration will never succeed, even when DNS is OK
later on.
On my SuSE-LINUX 10.3, there is both a caching name server (named), and
asterisk.
named is started before asterisk.
However, named does not complete its initialization, before asterisk tries
to register SIP.
This might be caused by a slow/broken connection establishment to internet
via pppoe (DSL).
Then the following message shows up:
WARNING[3523] chan_sip.c:7595 transmit_register: Probably a DNS error for
registration to .... trying register again
But even after named works a bit later on, SIP registration never
succeeds.
Only restart of asterisk helps then immediately.
So it looks like, that the second and any further registration attempts do
not completely start "from scratch".
======================================================================
----------------------------------------------------------------------
(0096041) reinerotto (reporter) - 2008-12-09 15:52
http://bugs.digium.com/view.php?id=13242#c96041
----------------------------------------------------------------------
>You can see in the logs that Asterisk is attempt to do a DNS lookup each
time it retries the registration. You see "No such host" messages. That
comes out after a DNS lookup fails. <
That is correct. However, your conclusion,
>Since this is an issue that exists outside of the Asterisk code, I'm
closing this out.<
is too fast and not necessarily correct. Because the question is, whether
asterisk does the retry of the DNS lookup the right way or not. In case,
the retry is not "completely from scratch", then simply the retry might be
wrong.
Should be easy to reproduce on another system: Disconnect the internet
connection, and start asterisk, incl. registration.
Issue History
Date Modified Username Field Change
======================================================================
2008-12-09 15:52 reinerotto Note Added: 0096041
======================================================================
More information about the asterisk-bugs
mailing list