[Home]

Summary:ASTERISK-26821: Subscriptions with Expiry=0 is not removed
Reporter:Niklas Larsson (pnlarsson)Labels:
Date Opened:2017-02-27 04:34:02.000-0600Date Closed:2017-02-27 05:29:26.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Resources/res_pjsip_pubsub
Versions:13.14.0 Frequency of
Occurrence
Constant
Related
Issues:
duplicatesASTERISK-26696 pjsip_pubsub: PJSIP Subscription Persistence in AstDB Does not update on subscription refresh
Environment:Realtime with ODBCAttachments:
Description:Had a sip clent that sent a SUBSCRIBE every 15 secounds for the same extension - left us with 13833 inbound subscriptions. After removing the BLF from the phone it stoped sending subscriptions and we thought they would go away, but they didn't:

{code}
root@uc60:/var/log/asterisk# asterisk -rx 'pjsip show subscription inbound 1064b1c8-e47310ac-13c4-21f714-84acf752-3082@sip.uc.example.com'
ParameterName       : ParameterValue
===========================================================================
Resource            : 101
Event               : dialog
Expiry              : 0
Role                : Notifier
Endpoint            : wid12479
Callid              : 1064b1c8-e47310ac-13c4-21f714-84acf752-3082@sip.uc.example.com
State               : ACTIVE
Callerid            : Unknown
SubscriptionType    : extension_state
Extension           : 101
ExtensionStates     : Idle
{code}

So now we have 13833 expired subscriptions that are all sending an notify.

Removed the endpoint:
{code}
root@uc60:/var/log/asterisk# asterisk -rx 'pjsip show endpoint wid12479'
Unable to find object wid12479.
{code}
But did not remove the subscriptions
Comments:By: Asterisk Team (asteriskteam) 2017-02-27 04:34:04.264-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].