Fix record app

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Mark Spencer 21 years ago
parent 22384074d9
commit 913f28a9c2

@ -105,6 +105,10 @@ static int record_exec(struct ast_channel *chan, void *data)
ext = strchr(filename, '.'); ext = strchr(filename, '.');
if (!ext) if (!ext)
ext = strchr(filename, ':'); ext = strchr(filename, ':');
if (ext) {
*ext = '\0';
ext++;
}
} }
if (!ext) { if (!ext) {
ast_log(LOG_WARNING, "No extension specified to filename!\n"); ast_log(LOG_WARNING, "No extension specified to filename!\n");

Loading…
Cancel
Save