[asterisk-commits] dlee: trunk r393987 - in /trunk: res/ rest-api/api-docs/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 10 12:13:22 CDT 2013


Author: dlee
Date: Wed Jul 10 12:13:21 2013
New Revision: 393987

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=393987
Log:
Document the 400 error response for originate

Modified:
    trunk/res/res_stasis_http_channels.c
    trunk/rest-api/api-docs/channels.json

Modified: trunk/res/res_stasis_http_channels.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_stasis_http_channels.c?view=diff&rev=393987&r1=393986&r2=393987
==============================================================================
--- trunk/res/res_stasis_http_channels.c (original)
+++ trunk/res/res_stasis_http_channels.c Wed Jul 10 12:13:21 2013
@@ -142,6 +142,7 @@
 
 	switch (code) {
 	case 500: /* Internal server error */
+	case 400: /* Invalid parameters for originating a channel. */
 		is_valid = 1;
 		break;
 	default:

Modified: trunk/rest-api/api-docs/channels.json
URL: http://svnview.digium.com/svn/asterisk/trunk/rest-api/api-docs/channels.json?view=diff&rev=393987&r1=393986&r2=393987
==============================================================================
--- trunk/rest-api/api-docs/channels.json (original)
+++ trunk/rest-api/api-docs/channels.json Wed Jul 10 12:13:21 2013
@@ -87,6 +87,12 @@
 							"allowMultiple": false,
 							"dataType": "int",
 							"defaultValue": 30
+						}
+					],
+					"errorResponses": [
+						{
+							"code": 400,
+							"reason": "Invalid parameters for originating a channel."
 						}
 					]
 				}




More information about the asterisk-commits mailing list