From 3ffb39833b25a02108214d7584733bc6b9c334df Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Sun, 10 Aug 2008 14:45:25 +0000 Subject: More RSW merges. Everything from apps/ except for the big offenders app_voicemail and app_queue. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@137055 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_forkcdr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/app_forkcdr.c') diff --git a/apps/app_forkcdr.c b/apps/app_forkcdr.c index b92e3de32..b2e4f307d 100644 --- a/apps/app_forkcdr.c +++ b/apps/app_forkcdr.c @@ -229,9 +229,11 @@ static int forkcdr_exec(struct ast_channel *chan, void *data) if (!ast_strlen_zero(arglist.options)) ast_app_parse_options(forkcdr_exec_options, &flags, opts, arglist.options); - - if (!ast_strlen_zero(data)) - ast_set2_flag(chan->cdr, ast_test_flag(&flags, OPT_KEEPVARS), AST_CDR_FLAG_KEEP_VARS); + + if (!ast_strlen_zero(data)) { + int keepvars = ast_test_flag(&flags, OPT_KEEPVARS) ? 1 : 0; + ast_set2_flag(chan->cdr, keepvars, AST_CDR_FLAG_KEEP_VARS); + } ast_cdr_fork(chan, flags, opts[OPT_ARG_VARSET]); -- cgit v1.2.3