<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2171/18/9/_/styles/combined.css?spaceKey=AST&amp;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+10+Application_MixMonitor">Asterisk 10 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="Asterisk10Application_MixMonitor-MixMonitor%28%29"></a>MixMonitor()</h1>

<h3><a name="Asterisk10Application_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="Asterisk10Application_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><tt>MIXMONITOR_FILENAME</tt> - Will contain the filename used to record.</li>
</ul>


<h3><a name="Asterisk10Application_MixMonitor-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>MixMonitor(filenameextension[,options[,command]])</pre>
</div></div>

<h5><a name="Asterisk10Application_MixMonitor-Arguments"></a>Arguments</h5>

<ul>
        <li><tt>file</tt>
        <ul>
                <li><tt>filename</tt> - 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><tt>extension</tt></li>
        </ul>
        </li>
        <li><tt>options</tt>
        <ul>
                <li><tt>a</tt> - Append to the file instead of overwriting it.</li>
                <li><tt>b</tt> - Only save audio to the file while the channel is bridged. Does not include conferences or sounds played to each bridged partyDoes not include conferences or sounds played to each bridged party If you utilize this option inside a Local channel, you must make sure the Local channel is not optimized away. To do this, be sure to call your Local channel with the If you utilize this option inside a Local channel, you must make sure the Local channel is not optimized away. To do this, be sure to call your Local channel with the <tt>/n</tt> option. For example: Dial(Local/start@mycontext/n)</li>
                <li><tt>v</tt> - Adjust the <b>heard</b> volume by a factor of <em>x</em> (range <tt>-4</tt> to <tt>4</tt> )
                <ul>
                        <li><tt>x</tt></li>
                </ul>
                </li>
                <li><tt>V</tt> - Adjust the <b>spoken</b> volume by a factor of <em>x</em> (range <tt>-4</tt> to <tt>4</tt> )
                <ul>
                        <li><tt>x</tt></li>
                </ul>
                </li>
                <li><tt>W</tt> - 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><tt>x</tt></li>
                </ul>
                </li>
                <li><tt>r</tt> - 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><tt>file</tt></li>
                </ul>
                </li>
                <li><tt>t</tt> - 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><tt>file</tt></li>
                </ul>
                </li>
        </ul>
        </li>
        <li><tt>command</tt> - 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="Asterisk10Application_MixMonitor-SeeAlso"></a>See Also</h3>

<p><a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=Asterisk+10+Application_Monitor&amp;linkCreation=true&amp;fromPageId=19005723" class="createlink">Asterisk 10 Application&#95;Monitor</a><br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=Asterisk+10+Application_StopMixMonitor&amp;linkCreation=true&amp;fromPageId=19005723" class="createlink">Asterisk 10 Application&#95;StopMixMonitor</a><br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=Asterisk+10+Application_PauseMonitor&amp;linkCreation=true&amp;fromPageId=19005723" class="createlink">Asterisk 10 Application&#95;PauseMonitor</a><br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=Asterisk+10+Application_UnpauseMonitor&amp;linkCreation=true&amp;fromPageId=19005723" class="createlink">Asterisk 10 Application&#95;UnpauseMonitor</a></p>


<h3><a name="Asterisk10Application_MixMonitor-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk version SVN-branch-10-r340810.</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+10+Application_MixMonitor">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+10+Application_MixMonitor?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>