mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
correct case of file type for one-touch monitoring (bug #4443)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -476,13 +476,13 @@ static int builtin_automonitor(struct ast_channel *chan, struct ast_channel *pee
|
|||||||
if (touch_monitor) {
|
if (touch_monitor) {
|
||||||
len = strlen(touch_monitor) + 50;
|
len = strlen(touch_monitor) + 50;
|
||||||
args = alloca(len);
|
args = alloca(len);
|
||||||
snprintf(args, len, "%s|auto-%ld-%s|m", (touch_format) ? touch_format : "WAV", time(NULL), touch_monitor);
|
snprintf(args, len, "%s|auto-%ld-%s|m", (touch_format) ? touch_format : "wav", time(NULL), touch_monitor);
|
||||||
} else {
|
} else {
|
||||||
caller_chan_id = ast_strdupa(caller_chan->cid.cid_num ? caller_chan->cid.cid_num : caller_chan->name);
|
caller_chan_id = ast_strdupa(caller_chan->cid.cid_num ? caller_chan->cid.cid_num : caller_chan->name);
|
||||||
callee_chan_id = ast_strdupa(callee_chan->cid.cid_num ? callee_chan->cid.cid_num : callee_chan->name);
|
callee_chan_id = ast_strdupa(callee_chan->cid.cid_num ? callee_chan->cid.cid_num : callee_chan->name);
|
||||||
len = strlen(caller_chan_id) + strlen(callee_chan_id) + 50;
|
len = strlen(caller_chan_id) + strlen(callee_chan_id) + 50;
|
||||||
args = alloca(len);
|
args = alloca(len);
|
||||||
snprintf(args, len, "%s|auto-%ld-%s-%s|m", (touch_format) ? touch_format : "WAV", time(NULL), caller_chan_id, callee_chan_id);
|
snprintf(args, len, "%s|auto-%ld-%s-%s|m", (touch_format) ? touch_format : "wav", time(NULL), caller_chan_id, callee_chan_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
for( x = 0; x < strlen(args); x++)
|
for( x = 0; x < strlen(args); x++)
|
||||||
|
Reference in New Issue
Block a user