[asterisk-bugs] [Asterisk 0015295]: Registrations persist after removal and sip reload

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 17 10:32:44 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15295 
====================================================================== 
Reported By:                amorsen
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   15295
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.1.0 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-06-09 03:35 CDT
Last Modified:              2009-06-17 10:32 CDT
====================================================================== 
Summary:                    Registrations persist after removal and sip reload
Description: 
I have a registry entry in sip.conf, like:

 register => 4550607774:hiddenpassword at 10.10.44.100/4550607774

and that has been registered for a while.

Then I remove that entry from sip.conf and issue sip reload, expecting the
registry entry to go away. It does indeed disappear from sip show registry
after the sip reload, but then I get:

WARNING[24870]: chan_sip.c:16334 handle_response_register: Got 200 OK on
REGISTER, but there isn't a registry entry for '4550607774' (we probably
already got the OK)

When I tcpdump I can see that more attempts at registration are sent for
that peer.
====================================================================== 

---------------------------------------------------------------------- 
 (0106556) svnbot (reporter) - 2009-06-17 10:32
 https://issues.asterisk.org/view.php?id=15295#c106556 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 201365

_U  branches/1.6.1/
U   branches/1.6.1/channels/chan_sip.c

------------------------------------------------------------------------
r201365 | dvossel | 2009-06-17 10:32:44 -0500 (Wed, 17 Jun 2009) | 23
lines

Merged revisions 201344 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201344 | dvossel | 2009-06-17 10:20:26 -0500 (Wed, 17 Jun 2009) | 16
lines
  
  SIP registry ref count error
  
  During a sip reload, the list of sip_registry objects are
  supposed to be traversed, unlinked, and destroyed, but
  destruction never takes place due to a ref counting error.
  This causes a memory leak when registry items are removed
  from sip.conf and reloaded.  While the registries are removed
  from the global list, they are not removed from the scheduler.
  Because of this, SIP register attempts continue to be sent
  out for the item even though it may no longer be in the .conf.
  
  (closes issue https://issues.asterisk.org/view.php?id=15295)
  Reported by: amorsen
  
  Review: https://reviewboard.asterisk.org/r/282/
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=201365 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-17 10:32 svnbot         Checkin                                      
2009-06-17 10:32 svnbot         Note Added: 0106556                          
======================================================================




More information about the asterisk-bugs mailing list