From a6c0a8e6eac6cb7b63c57b08c8cfc5c943722df3 Mon Sep 17 00:00:00 2001 From: murf Date: Tue, 10 Apr 2007 05:18:26 +0000 Subject: Finished up a previous fix to overcome a compiler warning; the app NoCDR() has been updated to mark the channel CDR as POST_DISABLED instead of destroying the CDR; this way its flags are propagated thru a bridge and the CDR is actually dropped. The cases where only one channel in a bridge has a CDR was cleaned up. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@61136 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_cdr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/app_cdr.c') diff --git a/apps/app_cdr.c b/apps/app_cdr.c index e8f76a602..a70d9d2f5 100644 --- a/apps/app_cdr.c +++ b/apps/app_cdr.c @@ -51,8 +51,7 @@ static int nocdr_exec(struct ast_channel *chan, void *data) u = ast_module_user_add(chan); if (chan->cdr) { - ast_cdr_free(chan->cdr); - chan->cdr = NULL; + ast_set_flag(chan->cdr, AST_CDR_FLAG_POST_DISABLED); } ast_module_user_remove(u); -- cgit v1.2.3