[asterisk-commits] oej: branch oej/cancel_elsewhere_1.4 r109170 - /team/oej/cancel_elsewhere_1.4...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 17 12:50:05 CDT 2008


Author: oej
Date: Mon Mar 17 12:50:05 2008
New Revision: 109170

URL: http://svn.digium.com/view/asterisk?view=rev&rev=109170
Log:
Ok, set the flag properly when you use the "c" dial option

Modified:
    team/oej/cancel_elsewhere_1.4/apps/app_dial.c

Modified: team/oej/cancel_elsewhere_1.4/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/team/oej/cancel_elsewhere_1.4/apps/app_dial.c?view=diff&rev=109170&r1=109169&r2=109170
==============================================================================
--- team/oej/cancel_elsewhere_1.4/apps/app_dial.c (original)
+++ team/oej/cancel_elsewhere_1.4/apps/app_dial.c Mon Mar 17 12:50:05 2008
@@ -1242,6 +1242,8 @@
 		/* If we have an outbound group, set this peer channel to it */
 		if (outbound_group)
 			ast_app_group_set_channel(tmp->chan, outbound_group);
+		if (ast_test_flag(&opts, OPT_CANCEL_ELSEWHERE))
+			ast_set_flag(tmp->chan, AST_FLAG_ANSWERED_ELSEWHERE);
 
 		/* Inherit context and extension */
 		if (!ast_strlen_zero(chan->macrocontext))




More information about the asterisk-commits mailing list