[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
Fri Jul 14 01:59:58 CDT 2017
Sergej Kasumovic created ASTERISK-27130:
-------------------------------------------
Summary: 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
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