[Home]

Summary:ASTERISK-22759: ARI: DELETE on /bridges/{id} fails to remove bridge even with 204 success
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2013-10-24 13:24:05Date Closed:2013-11-04 07:39:25.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Core/Bridging Core/Stasis Resources/res_ari
Versions:SVN 12.0.0-beta1 Frequency of
Occurrence
Related
Issues:
is related toASTERISK-22634 ARI: can't delete a bridge with a channel in it.
Environment:Attachments:
Description:{quote}
The DELETE operation on /bridges/<id> doesn't seem to work.

calling http.request with: {"path":"/ari/bridges/c4595ae1-475e-4d41-9995-e7cfff34a44b","method":"DELETE","hostname":"127.0.0.1","port":8088,"auth":"x:x"}
/ari/bridges/c4595ae1-475e-4d41-9995-e7cfff34a44b  returned  204


However, the bridge doesn't actually get deleted:





{noformat}
action: bridgelist

Response: Success
Message: Bridge listing will follow

Event: BridgeListItem
BridgeUniqueid: c4595ae1-475e-4d41-9995-e7cfff34a44b
BridgeType: base
BridgeTechnology: simple_bridge
BridgeNumChannels: 0

Event: BridgeListComplete
{noformat}

This is on yesterday's trunk.
{quote}

Ideally, we wouldn't return a 204 unless we knew the reference count on the bridge had gone to 0.
Comments:By: Joshua C. Colp (jcolp) 2013-10-27 12:22:37.223-0500

I'm fairly certain this is actually a dupe of ASTERISK-22634 based on what I've seen myself while working on another issue.

By: Kinsey Moore (kmoore) 2013-11-04 07:39:09.172-0600

I verified that this is corrected after the patch to ASTERISK-22634 went in.