[asterisk-commits] mnicholson: branch 1.4 r275027 - /branches/1.4/apps/app_dial.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 9 11:04:25 CDT 2010


Author: mnicholson
Date: Fri Jul  9 11:04:21 2010
New Revision: 275027

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=275027
Log:
Clear the AST_CDR_FLAG_DIALED flag for channels going into the pbx via the G option in app_dial

(closes issue #17592)
Reported by: jamicque
Patches:
      G-flag-cdr-fix1.diff uploaded by mnicholson (license 96)
Tested by: jamicque, mnicholson

Modified:
    branches/1.4/apps/app_dial.c

Modified: branches/1.4/apps/app_dial.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_dial.c?view=diff&rev=275027&r1=275026&r2=275027
==============================================================================
--- branches/1.4/apps/app_dial.c (original)
+++ branches/1.4/apps/app_dial.c Fri Jul  9 11:04:21 2010
@@ -1707,6 +1707,11 @@
 		}
 
 		if (chan && peer && ast_test_flag(&opts, OPT_GOTO) && !ast_strlen_zero(opt_args[OPT_ARG_GOTO])) {
+			/* chan and peer are going into the PBX, they both
+			 * should probably get CDR records. */
+			ast_clear_flag(chan->cdr, AST_CDR_FLAG_DIALED);
+			ast_clear_flag(peer->cdr, AST_CDR_FLAG_DIALED);
+
 			replace_macro_delimiter(opt_args[OPT_ARG_GOTO]);
 			ast_parseable_goto(chan, opt_args[OPT_ARG_GOTO]);
 			/* peer goes to the same context and extension as chan, so just copy info from chan*/




More information about the asterisk-commits mailing list