[Asterisk-cvs] asterisk/apps app_disa.c,1.42,1.43

russell russell
Sun Nov 6 23:19:30 CST 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv7093/apps

Modified Files:
	app_disa.c 
Log Message:
user correct arguments to ast_cdr_reset from my changes earlier today


Index: app_disa.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_disa.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- app_disa.c	6 Nov 2005 15:09:46 -0000	1.42
+++ app_disa.c	7 Nov 2005 04:10:41 -0000	1.43
@@ -338,6 +338,7 @@
 
 	if (k == 3) {
 		int recheck = 0;
+		struct ast_flags flags = { AST_CDR_FLAG_POSTED };
 
 		if (!ast_exists_extension(chan, ourcontext, exten, 1, chan->cid.cid_num)) {
 			pbx_builtin_setvar_helper(chan, "INVALID_EXTEN", exten);
@@ -357,7 +358,7 @@
 			if (!ast_strlen_zero(acctcode))
 				ast_copy_string(chan->accountcode, acctcode, sizeof(chan->accountcode));
 
-			ast_cdr_reset(chan->cdr, AST_CDR_FLAG_POSTED);
+			ast_cdr_reset(chan->cdr, &flags);
 			ast_explicit_goto(chan, ourcontext, exten, 1);
 			LOCAL_USER_REMOVE(u);
 			return 0;




More information about the svn-commits mailing list