Given I have created a bridge via ARI Given I have set or get a bridge variable on this bridge When I destroy this bridge Then I don't receive any BridgeDestroyed event Then the bridge is still present in the list of bridges
Expected: the bridge is destroyed
Note: this does not happen if I don't get or set any bridge variable.
Technical details: In Asterisk, the bridge seems to be destroyed when the reference count reaches 0. The bridge variables patch probably leaves the reference count above 0, even if only trying to read a bridge variable that does not exist.
Given I have created a bridge via ARI
Given I have set or get a bridge variable on this bridge
When I destroy this bridge
Then I don't receive any BridgeDestroyed event
Then the bridge is still present in the list of bridges
Expected: the bridge is destroyed
Note: this does not happen if I don't get or set any bridge variable.
Technical details: In Asterisk, the bridge seems to be destroyed when the reference count reaches 0. The bridge variables patch probably leaves the reference count above 0, even if only trying to read a bridge variable that does not exist.