[svn-commits] dlee: branch dlee/ari-url-shuffle r391576 - /team/dlee/ari-url-shuffle/res/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jun 12 16:21:22 CDT 2013


Author: dlee
Date: Wed Jun 12 16:21:19 2013
New Revision: 391576

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=391576
Log:
Moved the /stasis resource to /ari

Modified:
    team/dlee/ari-url-shuffle/res/res_stasis_http.c

Modified: team/dlee/ari-url-shuffle/res/res_stasis_http.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ari-url-shuffle/res/res_stasis_http.c?view=diff&rev=391576&r1=391575&r2=391576
==============================================================================
--- team/dlee/ari-url-shuffle/res/res_stasis_http.c (original)
+++ team/dlee/ari-url-shuffle/res/res_stasis_http.c Wed Jun 12 16:21:19 2013
@@ -286,7 +286,7 @@
 	if (!handler) {
 		return NULL;
 	}
-	handler->path_segment = "stasis";
+	handler->path_segment = "ari";
 
 	ao2_ref(handler, +1);
 	return handler;
@@ -685,7 +685,7 @@
 		if (host != NULL) {
 			ast_json_object_set(
 				obj, "basePath",
-				ast_json_stringf("http://%s/stasis", host->value));
+				ast_json_stringf("http://%s/ari", host->value));
 		} else {
 			/* Without the host, we don't have the basePath */
 			ast_json_object_del(obj, "basePath");
@@ -702,7 +702,7 @@
 	slashless[strlen(slashless) - 1] = '\0';
 
 	ast_str_append(&response->headers, 0,
-		       "Location: /stasis/%s\r\n", slashless);
+		       "Location: /ari/%s\r\n", slashless);
 	stasis_http_response_error(response, 302, "Found",
 				   "Redirecting to %s", slashless);
 }
@@ -858,7 +858,7 @@
 static struct ast_http_uri http_uri = {
 	.callback = stasis_http_callback,
 	.description = "Asterisk RESTful API",
-	.uri = "stasis",
+	.uri = "ari",
 
 	.has_subtree = 1,
 	.data = NULL,
@@ -937,7 +937,7 @@
 
 AST_MODULE_INFO(ASTERISK_GPL_KEY,
 	AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER,
-	"Stasis HTTP bindings",
+	"Asterisk RESTful Interface",
 	.load = load_module,
 	.unload = unload_module,
 	.reload = reload_module,




More information about the svn-commits mailing list