[asterisk-bugs] [Asterisk 0018135]: chan_sip loses registration and peer information after dnsmgr refresh

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 14 07:35:58 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18135 
====================================================================== 
Reported By:                lmadsen
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18135
Category:                   Channels/chan_sip/General
Reproducibility:            sometimes
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.8.0-rc3 
JIRA:                       SWP-2364 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-10-13 12:43 CDT
Last Modified:              2010-10-14 07:35 CDT
====================================================================== 
Summary:                    chan_sip loses registration and peer information
after dnsmgr refresh
Description: 
It seems to be related to the DNS refreshing on the system, but when that
happens, my peers will often become unreachable for outbound calling while
inbound calling seems to be fine.

The main indication of this is when you run 'sip show peers' you'll see
the port has been set to 0 (zero) even though the port=5060 setting is part
of the peer definition in sip.conf.

I've seen other reports of this on #asterisk today as well. May be related
to the other dnsmgr issues in chan_iax2 etc..?
====================================================================== 

---------------------------------------------------------------------- 
 (0128014) jonascph (reporter) - 2010-10-14 07:35
 https://issues.asterisk.org/view.php?id=18135#c128014 
---------------------------------------------------------------------- 
I was asked by lmadsen to add my finding here although im not entirely sure
its the same issue:

I'm running Asterisk 1.8.0-rc3 on Debian 5.0 with kernel 2.6.18-6-amd64

However after downgrading to rc2 the issue apears to persist.

If i start asterisk after all the modules and startup text i get a bunch
of lines like this:

      > doing dnsmgr_lookup for 'host1.isp.com'
       > doing dnsmgr_lookup for 'host1.isp.com'
       > doing dnsmgr_lookup for 'host2.isp.com'
       > doing dnsmgr_lookup for 'host1.isp.com'

One for each register line i have, which is fine.

If i then go ahead and run sip show registry it lists all my register
entries as being ok. So far so good.

Then after a few minutes i get another run of the doing dnsmgr_lookup for
'host1.isp.com' lines.

However following these i get the following in the console:

[Oct 13 18:57:53] NOTICE[2339] chan_sip.c: Failed to authenticate on
REGISTER to 'extension at host1.isp.com(Tries 3)
[Oct 13 18:57:53] NOTICE[2339] chan_sip.c: Failed to authenticate on
REGISTER to 'extension at host1.isp.com' (Tries 3)
[Oct 13 18:57:53] NOTICE[2339] chan_sip.c: Failed to authenticate on
REGISTER to 'extension at host2.isp.com' (Tries 3)

And so on.

Then after i get:

Registration for 'extension at host1.isp.com' timed out, trying again
(Attempt https://issues.asterisk.org/view.php?id=5)
Registration for 'extension at host1.isp.com' timed out, trying again
(Attempt https://issues.asterisk.org/view.php?id=5)
Registration for 'extension at host2.isp.com' timed out, trying again
(Attempt https://issues.asterisk.org/view.php?id=5)


This causes my registry to fail and i then cant receive calls via those
lines.

However they somehow fix themselfs in a minute or so and the registry
lines show registered again. However the whole process continues every 5
mins or so... 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-14 07:35 jonascph       Note Added: 0128014                          
======================================================================




More information about the asterisk-bugs mailing list