aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_record.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-22 15:48:22 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-22 15:48:22 +0000
commit35ef7f8d425a19ef85b5f6987e007edd1c186e43 (patch)
tree06b41cc3db930e116142d05bcdd09f18549597dd /apps/app_record.c
parenta05ec3ad37375606d306003ab491314304879a63 (diff)
don't stop recording until hangup (no terminator) (issue #7168 reported by julien23)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29435 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_record.c')
-rw-r--r--apps/app_record.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_record.c b/apps/app_record.c
index 3a2a0f37c..1f02bcbf4 100644
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -62,7 +62,8 @@ static char *descrip =
" 'n' : do not answer, but record anyway if line not yet answered\n"
" 'q' : quiet (do not play a beep tone)\n"
" 's' : skip recording if the line is not yet answered\n"
-" 't' : use alternate '*' terminator key instead of default '#'\n"
+" 't' : use alternate '*' terminator key (DTMF) instead of default '#'\n"
+" 'x' : ignore all terminator keys (DTMF) and keep recording until hangup\n"
"\n"
"If filename contains '%d', these characters will be replaced with a number\n"
"incremented by one each time the file is recorded. \n\n"
@@ -167,6 +168,8 @@ static int record_exec(struct ast_channel *chan, void *data)
option_append = 1;
if (strchr(options, 't'))
terminator = '*';
+ if (strchr(options, 'x'))
+ terminator = 0;
if (strchr(options, 'q'))
option_quiet = 1;
}