Review Board 1.7.16


ARI: Correct error codes for bridge operations

Review Request #2769 - Created Aug. 19, 2013 and submitted

David Lee
/team/dlee/ASTERISK-22036
ASTERISK-22036
Reviewers
asterisk-dev
Asterisk
This patch adds error checking to ARI bridge operations, when
adding/removing channels to/from bridges.

In general, the error codes fall out as follows:
 * Bridge not found - 404 Not Found
 * Bridge not in Stasis - 409 Conflict
 * Channel not found - 400 Bad Request
 * Channel not in Stasis - 422 Unprocessable Entity
 * Channel not in this bridge (on remove) - 422 Unprocessable Entity
Testsuite tests! (Review to be posted shortly)

https://reviewboard.asterisk.org/r/2770/
Review request changed
Updated (Aug. 23, 2013, 1:20 p.m.)
  • changed from pending to submitted
Committed in revision 397576

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.