[asterisk-bugs] [JIRA] (ASTERISK-27130) Applications ARI: Unsubscribe action for deviceStates does not remove old subscriptions properly

Asterisk Team (JIRA) noreply at issues.asterisk.org
Fri Oct 13 11:24:24 CDT 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-27130:
-------------------------------------

    Target Release Version/s: 13.18.0

> Applications ARI: Unsubscribe action for deviceStates does not remove old subscriptions properly
> ------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-27130
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27130
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_stasis_device_state
>    Affects Versions: 14.6.0
>            Reporter: Sergej Kasumovic
>      Target Release: 13.18.0
>
>         Attachments: device_state_unsubscribe.diff
>
>
> This was found by a team member while using ARI with Asterisk 14, but it probably affects all versions - 13/14/master. 
> Description is as following:
> * Once you subscribe to deviceState with Applications REST API, it will be added into deviceStateSubscription list and into subscription pool. 
> * When you unsubscribe it will remove from the deviceStateSubscription list but not from the subscription pool. 
> * When you subscribe again, it will add it to pool again. 
> * Now you will have two subscriptions and you will receive same event twice. 
> This fix should now remove deviceState subscription from pool and it should fix unsubscribe on deviceState.
> Attaching patch for quick preview, before pushing to Gerrit. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list