[asterisk-bugs] [Asterisk 0016908]: [patch] SIP autocreate peers registered when request to unregister

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Apr 15 15:24:53 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16908 
====================================================================== 
Reported By:                kkm
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   16908
Category:                   Channels/chan_sip/Registration
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     ready for review
Target Version:             1.6.2.8
Asterisk Version:           SVN 
JIRA:                       SWP-1004 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.2 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-02-26 00:07 CST
Last Modified:              2010-04-15 15:24 CDT
====================================================================== 
Summary:                    [patch] SIP autocreate peers registered when request
to unregister
Description: 
When autocreate is enabled and a peer is *not* registered, and such a peer
sends a REGISTER message with the "Expires: 0" header (to indicate it wants
to unregister), the peer is apparently registered and then partially(?)
unregistered:
 * There is a NOTICE-level option poke message;
 * The sequence of PeerStatus manager events shows 3 events:
   1. Unregistered (that's expected)
   2. Registered (that's not)
   3. Reachable 


======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0016033 [patch] Autocreated peers not deleted w...
====================================================================== 

---------------------------------------------------------------------- 
 (0120512) svnbot (reporter) - 2010-04-15 15:24
 https://issues.asterisk.org/view.php?id=16908#c120512 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 257467

U   branches/1.4/channels/chan_sip.c

------------------------------------------------------------------------
r257467 | tilghman | 2010-04-15 15:24:51 -0500 (Thu, 15 Apr 2010) | 13
lines

Don't recreate peer, when responding to a repeated deregistration attempt.

When a reply to a deregistration is lost in transmit, the client retries
the
deregistration.  Previously, this would cause a realtime/autocreate peer
to be
loaded back into memory, after it had already been correctly purged. 
Instead,
we just want to resend the reply without loading the peer.

(closes issue https://issues.asterisk.org/view.php?id=16908)
 Reported by: kkm
 Patches: 
       20100412__issue16908.diff.txt uploaded by tilghman (license 14)
 Tested by: kkm

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-15 15:24 svnbot         Checkin                                      
2010-04-15 15:24 svnbot         Note Added: 0120512                          
======================================================================




More information about the asterisk-bugs mailing list