[asterisk-bugs] [Asterisk 0014133]: Subscription not removed when user becomes unsubscribed

Asterisk Bug Tracker noreply at bugs.digium.com
Fri May 22 08:14:36 CDT 2009


The following issue requires your FEEDBACK. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14133 
====================================================================== 
Reported By:                Skavin
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   14133
Category:                   Channels/chan_sip/Subscriptions
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.21.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2008-12-23 15:14 CST
Last Modified:              2009-05-22 08:14 CDT
====================================================================== 
Summary:                    Subscription not removed when user becomes
unsubscribed
Description: 
when using realtime peers and subscribe if a user stops registering but has
subscribed for MWI the peer will keep being re added as a peer even if
pruned.
if the peer does not reply to the notify it will destroy the association.
if there are 2 servers both querying the same database and the user has
moved from one asterisk server to the other their old server will keep
setting the regserver, ipaddr port etc to "" making it very hard for other
servers to find where this user is registered.

the only way I have found to remove the subscription is to restart
asterisk.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0014193 I get two MWI subscritions for a peer (...
====================================================================== 

---------------------------------------------------------------------- 
 (0105289) file (administrator) - 2009-05-22 08:14
 https://issues.asterisk.org/view.php?id=14133#c105289 
---------------------------------------------------------------------- 
I spent the last while trying to reproduce this and understand exactly what
is happening. A few comments:

1. Due to the way the MWI subscription works it wants to have a peer
present in memory when active.
2. The regserver, ipaddr, port, etc will only get changed if we process a
registration. I don't see how it could continually be reset back to
nothing.

Is the problem really that Asterisk isn't treating the failure to respond
to the NOTIFY as fatal and isn't tearing down the subscription? If not can
you please try to better explain what the issue is? If there are multiple
issues please try to keep them separate.

Additionally console output and SIP traces would also be useful. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-22 08:14 file           Note Added: 0105289                          
2009-05-22 08:14 file           Status                   assigned => feedback
======================================================================




More information about the asterisk-bugs mailing list