diff options
author | Mark Spencer <markster@digium.com> | 2004-10-28 22:14:08 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-10-28 22:14:08 +0000 |
commit | 913f28a9c25b91a3b42028c33452d52699570c7c (patch) | |
tree | 2dfec74fa09d598c0fff2b994c4622fd4bf04870 /apps | |
parent | 22384074d998d417f91e4b70d5748a6da87b81cd (diff) |
Fix record app
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_record.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_record.c b/apps/app_record.c index 7c55e7a56..f84baa37a 100755 --- a/apps/app_record.c +++ b/apps/app_record.c @@ -105,6 +105,10 @@ static int record_exec(struct ast_channel *chan, void *data) ext = strchr(filename, '.'); if (!ext) ext = strchr(filename, ':'); + if (ext) { + *ext = '\0'; + ext++; + } } if (!ext) { ast_log(LOG_WARNING, "No extension specified to filename!\n"); |