diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-07-26 16:36:23 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-07-26 16:36:23 +0000 |
commit | 7db29792054596cf338088a08a846e34ffacbd4f (patch) | |
tree | dfcf8b419d2bd908a6754f6d55477d5b5db34770 | |
parent | 182dbe18a6e334de9df6c5ef0f9a874bd90c90c5 (diff) |
Version 0.1.9 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@344 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | apps/app_record.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/apps/app_record.c b/apps/app_record.c index b8cce548c..4703ade72 100755 --- a/apps/app_record.c +++ b/apps/app_record.c @@ -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"); |