[asterisk-bugs] [JIRA] (ASTERISK-24798) MixMon saves to the incorrect filename
xrobau (JIRA)
noreply at issues.asterisk.org
Mon Feb 16 21:59:34 CST 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-24798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=224960#comment-224960 ]
xrobau commented on ASTERISK-24798:
-----------------------------------
Well, that's not what the documentation says.
{code}[Description]
Records the audio on the current channel to the specified file.
{code}
...and...
{code}$\{MIXMONITOR_FILENAME\}: Will contain the filename used to record.{code}
Both from 'core show application MixMonitor'.
It explicitly DOESN'T say 'Asterisk will guess the format based on the extension you provided, and then *change the filename* to something different, possibly the first valid file extension of that format.'
Or maybe I'm reading it wrong 8-)
Even so, if that WAS the way it was documented, MIXMONITOR_FILENAME should have the correct filename, which it doesn't.
> MixMon saves to the incorrect filename
> --------------------------------------
>
> Key: ASTERISK-24798
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24798
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Affects Versions: 13.1.1
> Reporter: xrobau
> Assignee: xrobau
>
> I'm not sure how far back this one goes, but running mixmon with these params:
> {code}
> MixMonitor("2015/02/17/internal-300-303-20150217-051706-1424114226.982.wav49,ai(LOCAL_MIXMON_ID),/tmp/post.sh")
> {code}
> Results in the file being SAVED as internal-300-303-20150217-051706-1424114226.982.WAV
> Note the different suffix. Mixmon itself seems unaware of this, however, as $\{MIXMONITOR_FILENAME\} reports it correctly:
> {code}
> Set("SIP/303-00000070", "__REC_FILENAME=/var/spool/asterisk/monitor/2015/02/17/internal-300-303-20150217-051706-1424114226.982.wav49") in new stack
> {code}
> {code}
> [root at localhost callrecording]# ls -al /var/spool/asterisk/monitor/2015/02/17/internal-300-303-20150217-051706-1424114226.982.*
> -rw-rw---- 1 asterisk asterisk 3765 Feb 17 05:17 /var/spool/asterisk/monitor/2015/02/17/internal-300-303-20150217-051706-1424114226.982.WAV
> [root at localhost callrecording]#
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list