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

Sergej Kasumovic (JIRA) noreply at issues.asterisk.org
Tue Jul 25 08:01:57 CDT 2017


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

Sergej Kasumovic updated ASTERISK-27130:
----------------------------------------

    Reviewboard Link: https://gerrit.asterisk.org/#/c/6083/

> 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
>         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