[asterisk-dev] [Code Review] 2769: ARI: Correct error codes for bridge operations

svnbot reviewboard at asterisk.org
Fri Aug 23 12:19:05 CDT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2769/
-----------------------------------------------------------

(Updated Aug. 23, 2013, 12:19 p.m.)


Status
------

This change has been marked as submitted.


Review request for Asterisk Developers.


Changes
-------

Committed in revision 397565


Bugs: ASTERISK-22036
    https://issues.asterisk.org/jira/browse/ASTERISK-22036


Repository: Asterisk


Description
-------

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


Diffs
-----

  /trunk/include/asterisk/stasis_app.h 396938 
  /trunk/include/asterisk/stasis_app_impl.h 396938 
  /trunk/res/ari/resource_bridges.c 396938 
  /trunk/res/res_ari_bridges.c 396938 
  /trunk/res/stasis/control.c 396938 
  /trunk/rest-api/api-docs/bridges.json 396938 

Diff: https://reviewboard.asterisk.org/r/2769/diff/


Testing
-------

Testsuite tests! (Review to be posted shortly)

https://reviewboard.asterisk.org/r/2770/


Thanks,

David Lee

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130823/5ab919cd/attachment.htm>


More information about the asterisk-dev mailing list