Skip to content
Snippets Groups Projects
Commit 49cafd34 authored by Mark Spencer's avatar Mark Spencer
Browse files

Version 0.1.9 from FTP

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@344 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent bbf7c462
No related branches found
No related tags found
No related merge requests found
......@@ -28,10 +28,10 @@ static char *app = "Record";
static char *synopsis = "Record to a file";
static char *descrip =
" Record(filename:extension): Records from the channel into a given filename.\n"
" If the file exists it will be overwritten. The 'extension' is the extension\n"
" of the file type to be recorded (wav, gsm, etc). Returns -1 when the user\n"
" hangs up.\n";
" Record(filename:extension): Records from the channel into a given\n"
"filename. If the file exists it will be overwritten. The 'extension'\n"
"is the extension of the file type to be recorded (wav, gsm, etc).\n"
"Returns -1 when the user hangs up.\n";
STANDARD_LOCAL_USER;
......@@ -124,6 +124,12 @@ static int record_exec(struct ast_channel *chan, void *data)
break;
}
}
if ((f->frametype == AST_FRAME_DTMF) &&
(f->subclass == '#')) {
ast_frfree(f);
break;
}
ast_frfree(f);
}
if (!f) {
ast_log(LOG_DEBUG, "Got hangup\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment