diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-10 05:18:26 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-10 05:18:26 +0000 |
commit | a6c0a8e6eac6cb7b63c57b08c8cfc5c943722df3 (patch) | |
tree | 3fddefc90fa88ec4c202425e29e32bbea743ae34 /apps/app_cdr.c | |
parent | 12ed3782802cb4a44d421e334bc9a7fc4f6e46c8 (diff) |
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
Diffstat (limited to 'apps/app_cdr.c')
-rw-r--r-- | apps/app_cdr.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |