[asterisk-commits] mmichelson: branch group/CCSS r220710 - /team/group/CCSS/main/ccss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 28 11:41:46 CDT 2009


Author: mmichelson
Date: Mon Sep 28 11:41:43 2009
New Revision: 220710

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=220710
Log:
Hang up channel if macro fails to execute.


Modified:
    team/group/CCSS/main/ccss.c

Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=220710&r1=220709&r2=220710
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Mon Sep 28 11:41:43 2009
@@ -828,6 +828,7 @@
 		ast_log(LOG_NOTICE, "There's a callback macro configured\n");
 		if (ast_app_run_macro(NULL, chan, callback_macro, NULL)) {
 			ast_cc_request_state_change(CC_FAILED, agent->core_id, "Callback macro failed. Maybe a hangup?");
+			ast_hangup(chan);
 			return NULL;
 		}
 	}




More information about the asterisk-commits mailing list