<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2172/18/9/_/styles/combined.css?spaceKey=AST&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_MixMonitor">Asterisk 11 Application_MixMonitor</a></h2>
<h4>Page <b>added</b> by <a href="https://wiki.asterisk.org/wiki/display/~wikibot">Wiki Bot</a>
</h4>
<br/>
<div class="notificationGreySide">
<h1><a name="Asterisk11Application_MixMonitor-MixMonitor%28%29"></a>MixMonitor()</h1>
<h3><a name="Asterisk11Application_MixMonitor-Synopsis"></a>Synopsis</h3>
<p>Record a call and mix the audio during the recording. Use of StopMixMonitor is required to guarantee the audio file is available for processing during dialplan execution.</p>
<h3><a name="Asterisk11Application_MixMonitor-Description"></a>Description</h3>
<p>Records the audio on the current channel to the specified file.</p>
<p>This application does not automatically answer and should be preceeded by an application such as Answer or Progress().</p>
<ul>
        <li>MIXMONITOR_FILENAME - Will contain the filename used to record.</li>
</ul>
<h3><a name="Asterisk11Application_MixMonitor-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>MixMonitor(filename.extension,options,command)</pre>
</div></div>
<h5><a name="Asterisk11Application_MixMonitor-Arguments"></a>Arguments</h5>
<ul>
        <li>file
        <ul>
                <li>filename - If <em>filename</em> is an absolute path, uses that path, otherwise creates the file in the configured monitoring directory from <tt>asterisk.conf.</tt></li>
                <li>extension</li>
        </ul>
        </li>
        <li>options
        <ul>
                <li>a - Append to the file instead of overwriting it.</li>
                <li>b - Only save audio to the file while the channel is bridged.</li>
                <li>v - Adjust the <b>heard</b> volume by a factor of <em>x</em> (range <tt>-4</tt> to <tt>4</tt>)
                <ul>
                        <li>x</li>
                </ul>
                </li>
                <li>V - Adjust the <b>spoken</b> volume by a factor of <em>x</em> (range <tt>-4</tt> to <tt>4</tt>)
                <ul>
                        <li>x</li>
                </ul>
                </li>
                <li>W - Adjust both, <b>heard and spoken</b> volumes by a factor of <em>x</em> (range <tt>-4</tt> to <tt>4</tt>)
                <ul>
                        <li>x</li>
                </ul>
                </li>
                <li>r - Use the specified file to record the <b>receive</b> audio feed. Like with the basic filename argument, if an absolute path isn't given, it will create the file in the configured monitoring directory.
                <ul>
                        <li>file</li>
                </ul>
                </li>
                <li>t - Use the specified file to record the <b>transmit</b> audio feed. Like with the basic filename argument, if an absolute path isn't given, it will create the file in the configured monitoring directory.
                <ul>
                        <li>file</li>
                </ul>
                </li>
                <li>i - Stores the MixMonitor's ID on this channel variable.
                <ul>
                        <li>chanvar</li>
                </ul>
                </li>
                <li>m - Create a copy of the recording as a voicemail in the indicated <b>mailbox</b>(es) separated by commas eg. m(1111<input type="text" name="variableValues.default,2222" size="12" onkeyup="updateOthers(this)" /> <span class="templateparameter">(default,2222)</span>default,...). Folders can be optionally specified using the syntax: mailbox@context/folder
                <ul>
                        <li>mailbox</li>
                </ul>
                </li>
        </ul>
        </li>
        <li>command - Will be executed when the recording is over.Any strings matching <tt>^{X</tt>} will be unescaped to <tt>X</tt>.All variables will be evaluated at the time MixMonitor is called.</li>
</ul>
<h3><a name="Asterisk11Application_MixMonitor-SeeAlso"></a>See Also</h3>
<ul>
        <li><a href="/wiki/pages/createpage.action?spaceKey=AST&title=Asterisk+11+Application_Monitor&linkCreation=true&fromPageId=20187039" class="createlink">Asterisk 11 Application_Monitor</a></li>
        <li><a href="/wiki/pages/createpage.action?spaceKey=AST&title=Asterisk+11+Application_StopMixMonitor&linkCreation=true&fromPageId=20187039" class="createlink">Asterisk 11 Application_StopMixMonitor</a></li>
        <li><a href="/wiki/pages/createpage.action?spaceKey=AST&title=Asterisk+11+Application_PauseMonitor&linkCreation=true&fromPageId=20187039" class="createlink">Asterisk 11 Application_PauseMonitor</a></li>
        <li><a href="/wiki/pages/createpage.action?spaceKey=AST&title=Asterisk+11+Application_UnpauseMonitor&linkCreation=true&fromPageId=20187039" class="createlink">Asterisk 11 Application_UnpauseMonitor</a></li>
</ul>
<h3><a name="Asterisk11Application_MixMonitor-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk Version SVN-trunk-r370322</p>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_MixMonitor">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_MixMonitor?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>