mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 00:41:02 +00:00
Make sure we search for url prefix only in format, not in filename (bug #3613)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -323,13 +323,6 @@ static int start_monitor_exec(struct ast_channel *chan, void *data)
|
||||
if (data && !ast_strlen_zero((char*)data)) {
|
||||
arg = ast_strdupa((char*)data);
|
||||
format = arg;
|
||||
arg = strchr(format,':');
|
||||
if (arg)
|
||||
{
|
||||
*arg++ = 0;
|
||||
urlprefix = arg;
|
||||
}
|
||||
else arg = format;
|
||||
fname_base = strchr(arg, '|');
|
||||
if (fname_base) {
|
||||
*fname_base = 0;
|
||||
@@ -343,9 +336,13 @@ static int start_monitor_exec(struct ast_channel *chan, void *data)
|
||||
waitforbridge = 1;
|
||||
}
|
||||
}
|
||||
arg = strchr(format,':');
|
||||
if (arg) {
|
||||
*arg++ = 0;
|
||||
urlprefix = arg;
|
||||
}
|
||||
}
|
||||
if (urlprefix)
|
||||
{
|
||||
if (urlprefix) {
|
||||
snprintf(tmp,sizeof(tmp) - 1,"%s/%s.%s",urlprefix,fname_base,
|
||||
((strcmp(format,"gsm")) ? "wav" : "gsm"));
|
||||
if (!chan->cdr)
|
||||
|
Reference in New Issue
Block a user