[asterisk-commits] dlee: branch dlee/stasis-http r381840 - /team/dlee/stasis-http/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 20 14:31:50 CST 2013


Author: dlee
Date: Wed Feb 20 14:31:47 2013
New Revision: 381840

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=381840
Log:
Fixed for stasis-app changes

Modified:
    team/dlee/stasis-http/res/stasis_http_channels.c

Modified: team/dlee/stasis-http/res/stasis_http_channels.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-http/res/stasis_http_channels.c?view=diff&rev=381840&r1=381839&r2=381840
==============================================================================
--- team/dlee/stasis-http/res/stasis_http_channels.c (original)
+++ team/dlee/stasis-http/res/stasis_http_channels.c Wed Feb 20 14:31:47 2013
@@ -41,8 +41,8 @@
 }
 void stasis_http_continue_in_dialplan(struct ast_variable *headers, struct ast_continue_in_dialplan_args *args, struct stasis_http_response *response)
 {
-	RAII_VAR(struct ast_channel *, chan, ast_channel_get_by_name(args->channel_id), ao2_cleanup);
-	RAII_VAR(struct stasis_app *, app, stasis_app_find_by_channel(chan), ao2_cleanup);
+	RAII_VAR(struct ast_channel *, chan, NULL, ao2_cleanup);
+	RAII_VAR(struct stasis_app_control *, control, NULL, ao2_cleanup);
 
 	ast_assert(response != NULL);
 
@@ -54,15 +54,15 @@
 		return;
 	}
 
-	app = stasis_app_find_by_channel(chan);
-	if (app == NULL) {
+	control = stasis_app_control_find_by_channel(chan);
+	if (control == NULL) {
 		response->response_code = 409;
 		response->response_text = "Conflict";
 		response->message = ast_json_pack("{s: s}", "message", "Channel not in Stasis application");
 		return;
 	}
 
-	stasis_app_continue(app);
+	stasis_app_control_continue(control);
 
 	response->response_code = 200;
 	response->response_text = "OK";




More information about the asterisk-commits mailing list