[asterisk-bugs] [Asterisk 0013242]: SIP registration does never work, in case DNS not available during firstregistration

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 11 14:24:32 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:                     assigned
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:              
====================================================================== 
Date Submitted:             2008-08-05 16:22 CDT
Last Modified:              2008-12-11 14:24 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".
====================================================================== 

---------------------------------------------------------------------- 
 (0096243) russell (administrator) - 2008-12-11 14:24
 http://bugs.digium.com/view.php?id=13242#c96243 
---------------------------------------------------------------------- 
The code takes the hostname string and does a lookup using the glibc
function gethostbyname() every time it retries.  There isn't anything we
can do differently here ... 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-11 14:24 russell        Note Added: 0096243                          
======================================================================




More information about the asterisk-bugs mailing list