[asterisk-commits] jrose: branch 11 r381880 - /branches/11/apps/app_dial.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 22 09:41:36 CST 2013


Author: jrose
Date: Fri Feb 22 09:41:31 2013
New Revision: 381880

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=381880
Log:
app_dial: Honor the 'c' flag when the calling party hangs up

Apparently this feature became broken in 11, probably as a result
of the Hangup Cause project.

(closes issue ASTERISK-21113)
Reprted by: Heiko Wundram
Patches:
	app_dial.patch uploaded by Heiko Wundram (license 5822)

Modified:
    branches/11/apps/app_dial.c

Modified: branches/11/apps/app_dial.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/apps/app_dial.c?view=diff&rev=381880&r1=381879&r2=381880
==============================================================================
--- branches/11/apps/app_dial.c (original)
+++ branches/11/apps/app_dial.c Fri Feb 22 09:41:31 2013
@@ -3094,7 +3094,7 @@
 	}
 
 	ast_channel_early_bridge(chan, NULL);
-	hanguptree(&out_chans, NULL, ast_channel_hangupcause(chan)==AST_CAUSE_ANSWERED_ELSEWHERE ? 1 : 0 ); /* forward 'answered elsewhere' if we received it */
+	hanguptree(&out_chans, NULL, ast_channel_hangupcause(chan)==AST_CAUSE_ANSWERED_ELSEWHERE || ast_test_flag64(&opts, OPT_CANCEL_ELSEWHERE) ? 1 : 0 ); /* forward 'answered elsewhere' if we received it */
 	pbx_builtin_setvar_helper(chan, "DIALSTATUS", pa.status);
 	senddialendevent(chan, pa.status);
 	ast_debug(1, "Exiting with DIALSTATUS=%s.\n", pa.status);




More information about the asterisk-commits mailing list