[asterisk-commits] dlee: branch dlee/ari-monitor2 r395924 - in /team/dlee/ari-monitor2: res/ res...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 31 21:44:17 CDT 2013


Author: dlee
Date: Wed Jul 31 21:44:15 2013
New Revision: 395924

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=395924
Log:
404 response codes from recordings

Modified:
    team/dlee/ari-monitor2/res/res_ari_recordings.c
    team/dlee/ari-monitor2/res/res_stasis_recording.c
    team/dlee/ari-monitor2/rest-api/api-docs/recordings.json

Modified: team/dlee/ari-monitor2/res/res_ari_recordings.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ari-monitor2/res/res_ari_recordings.c?view=diff&rev=395924&r1=395923&r2=395924
==============================================================================
--- team/dlee/ari-monitor2/res/res_ari_recordings.c (original)
+++ team/dlee/ari-monitor2/res/res_ari_recordings.c Wed Jul 31 21:44:15 2013
@@ -129,6 +129,7 @@
 		break;
 	case 500: /* Internal Server Error */
 	case 501: /* Not Implemented */
+	case 404: /* Recording not found */
 		is_valid = 1;
 		break;
 	default:
@@ -183,6 +184,7 @@
 		break;
 	case 500: /* Internal Server Error */
 	case 501: /* Not Implemented */
+	case 404: /* Recording not found */
 		is_valid = 1;
 		break;
 	default:
@@ -283,6 +285,7 @@
 		break;
 	case 500: /* Internal Server Error */
 	case 501: /* Not Implemented */
+	case 404: /* Recording not found */
 		is_valid = 1;
 		break;
 	default:
@@ -337,6 +340,7 @@
 		break;
 	case 500: /* Internal Server Error */
 	case 501: /* Not Implemented */
+	case 404: /* Recording not found */
 		is_valid = 1;
 		break;
 	default:
@@ -391,6 +395,7 @@
 		break;
 	case 500: /* Internal Server Error */
 	case 501: /* Not Implemented */
+	case 404: /* Recording not found */
 		is_valid = 1;
 		break;
 	default:
@@ -445,6 +450,7 @@
 		break;
 	case 500: /* Internal Server Error */
 	case 501: /* Not Implemented */
+	case 404: /* Recording not found */
 		is_valid = 1;
 		break;
 	default:
@@ -499,6 +505,7 @@
 		break;
 	case 500: /* Internal Server Error */
 	case 501: /* Not Implemented */
+	case 404: /* Recording not found */
 		is_valid = 1;
 		break;
 	default:
@@ -553,6 +560,7 @@
 		break;
 	case 500: /* Internal Server Error */
 	case 501: /* Not Implemented */
+	case 404: /* Recording not found */
 		is_valid = 1;
 		break;
 	default:
@@ -607,6 +615,7 @@
 		break;
 	case 500: /* Internal Server Error */
 	case 501: /* Not Implemented */
+	case 404: /* Recording not found */
 		is_valid = 1;
 		break;
 	default:

Modified: team/dlee/ari-monitor2/res/res_stasis_recording.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ari-monitor2/res/res_stasis_recording.c?view=diff&rev=395924&r1=395923&r2=395924
==============================================================================
--- team/dlee/ari-monitor2/res/res_stasis_recording.c (original)
+++ team/dlee/ari-monitor2/res/res_stasis_recording.c Wed Jul 31 21:44:15 2013
@@ -25,6 +25,7 @@
 
 /*** MODULEINFO
 	<depend type="module">res_stasis</depend>
+	<depend type="module">app_mixmonitor</depend>
 	<support_level>core</support_level>
  ***/
 
@@ -448,4 +449,4 @@
 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS, "Stasis application recording support",
 	.load = load_module,
 	.unload = unload_module,
-	.nonoptreq = "res_stasis");
+	.nonoptreq = "res_stasis,app_mixmonitor");

Modified: team/dlee/ari-monitor2/rest-api/api-docs/recordings.json
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ari-monitor2/rest-api/api-docs/recordings.json?view=diff&rev=395924&r1=395923&r2=395924
==============================================================================
--- team/dlee/ari-monitor2/rest-api/api-docs/recordings.json (original)
+++ team/dlee/ari-monitor2/rest-api/api-docs/recordings.json Wed Jul 31 21:44:15 2013
@@ -37,6 +37,12 @@
 							"allowMultiple": false,
 							"dataType": "string"
 						}
+					],
+					"errorResponses": [
+						{
+							"code": 404,
+							"reason": "Recording not found"
+						}
 					]
 				},
 				{
@@ -53,7 +59,14 @@
 							"allowMultiple": false,
 							"dataType": "string"
 						}
-					]
+					],
+					"errorResponses": [
+						{
+							"code": 404,
+							"reason": "Recording not found"
+						}
+					]
+
 				}
 			]
 		},
@@ -87,7 +100,14 @@
 							"allowMultiple": false,
 							"dataType": "string"
 						}
-					]
+					],
+					"errorResponses": [
+						{
+							"code": 404,
+							"reason": "Recording not found"
+						}
+					]
+
 				},
 				{
 					"httpMethod": "DELETE",
@@ -103,7 +123,14 @@
 							"allowMultiple": false,
 							"dataType": "string"
 						}
-					]
+					],
+					"errorResponses": [
+						{
+							"code": 404,
+							"reason": "Recording not found"
+						}
+					]
+
 				}
 			]
 		},
@@ -124,7 +151,14 @@
 							"allowMultiple": false,
 							"dataType": "string"
 						}
-					]
+					],
+					"errorResponses": [
+						{
+							"code": 404,
+							"reason": "Recording not found"
+						}
+					]
+
 				}
 			]
 		},
@@ -146,7 +180,14 @@
 							"allowMultiple": false,
 							"dataType": "string"
 						}
-					]
+					],
+					"errorResponses": [
+						{
+							"code": 404,
+							"reason": "Recording not found"
+						}
+					]
+
 				}
 			]
 		},
@@ -167,7 +208,14 @@
 							"allowMultiple": false,
 							"dataType": "string"
 						}
-					]
+					],
+					"errorResponses": [
+						{
+							"code": 404,
+							"reason": "Recording not found"
+						}
+					]
+
 				}
 			]
 		},
@@ -189,7 +237,14 @@
 							"allowMultiple": false,
 							"dataType": "string"
 						}
-					]
+					],
+					"errorResponses": [
+						{
+							"code": 404,
+							"reason": "Recording not found"
+						}
+					]
+
 				}
 			]
 		},
@@ -210,7 +265,14 @@
 							"allowMultiple": false,
 							"dataType": "string"
 						}
-					]
+					],
+					"errorResponses": [
+						{
+							"code": 404,
+							"reason": "Recording not found"
+						}
+					]
+
 				}
 			]
 		}




More information about the asterisk-commits mailing list