[asterisk-bugs] [Asterisk 0018817]: MONITOR_FILENAME should be MIXMONITOR_FILENAME in documentation of MONITOR_EXEC
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Feb 15 19:02:12 CST 2011
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18817
======================================================================
Reported By: davidw
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18817
Category: Documentation
Reproducibility: N/A
Severity: text
Priority: normal
Status: new
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 307791
Request Review:
======================================================================
Date Submitted: 2011-02-15 11:23 CST
Last Modified: 2011-02-15 19:02 CST
======================================================================
Summary: MONITOR_FILENAME should be MIXMONITOR_FILENAME in
documentation of MONITOR_EXEC
Description:
In queues.conf.sample, both the variable used to force the filename for
MixMonitor and the variable that gets set to the actual filename are shown
as MONITOR_FILENAME. However, the latter is actually MIXMONITOR_FILENAME,
as set by this line in app_mixmonitor.c:
apps/app_mixmonitor.c: pbx_builtin_setvar_helper(chan,
"MIXMONITOR_FILENAME", args.filename);
and as indicated in the API meta-data:
<variable name="MIXMONITOR_FILENAME">
<para>Will contain the filename
used to record.</para>
</variable>
======================================================================
----------------------------------------------------------------------
(0131996) elguero (reporter) - 2011-02-15 19:02
https://issues.asterisk.org/view.php?id=18817#c131996
----------------------------------------------------------------------
You are referring to this line?:
; You can specify a post recording command to be executed after the end
of
; recording by calling (from the dialplan)
; Set(MONITOR_EXEC=mv /var/spool/asterisk/monitor/^{MONITOR_FILENAME}
/tmp/^{MONITOR_FILENAME})
The problem is that MIXMONITOR_FILENAME is not set until MixMonitor is
run. Therefore, that variable is not set at the point of time that you
need to set MONITOR_EXEC. Therefore, you need to set MONITOR_FILENAME and
use that when you are setting MONITOR_EXEC.
Issue History
Date Modified Username Field Change
======================================================================
2011-02-15 19:02 elguero Note Added: 0131996
======================================================================
More information about the asterisk-bugs
mailing list