[asterisk-commits] oej: branch oej/cancel_answer_elsewhere r73670 - /team/oej/cancel_answer_else...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 6 07:05:32 CDT 2007


Author: oej
Date: Fri Jul  6 07:05:31 2007
New Revision: 73670

URL: http://svn.digium.com/view/asterisk?view=rev&rev=73670
Log:
Trying to make sure that the local channel handles the chan flag as well.

Modified:
    team/oej/cancel_answer_elsewhere/channels/chan_local.c

Modified: team/oej/cancel_answer_elsewhere/channels/chan_local.c
URL: http://svn.digium.com/view/asterisk/team/oej/cancel_answer_elsewhere/channels/chan_local.c?view=diff&rev=73670&r1=73669&r2=73670
==============================================================================
--- team/oej/cancel_answer_elsewhere/channels/chan_local.c (original)
+++ team/oej/cancel_answer_elsewhere/channels/chan_local.c Fri Jul  6 07:05:31 2007
@@ -495,6 +495,8 @@
 		return -1;
 
 	ast_mutex_lock(&p->lock);
+	if (p->chan && ast_test_flag(ast, AST_FLAG_ANSWERED_ELSEWHERE)) 
+		ast_set_flag(p->chan, AST_FLAG_ANSWERED_ELSEWHERE);
 	isoutbound = IS_OUTBOUND(ast, p);
 	if (isoutbound) {
 		const char *status = pbx_builtin_getvar_helper(p->chan, "DIALSTATUS");




More information about the asterisk-commits mailing list