<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2172/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+11+Function_AUDIOHOOK_INHERIT">Asterisk 11 Function_AUDIOHOOK_INHERIT</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="Asterisk11Function_AUDIOHOOK_INHERIT-AUDIOHOOKINHERIT%28%29"></a>AUDIOHOOK_INHERIT()</h1>

<h3><a name="Asterisk11Function_AUDIOHOOK_INHERIT-Synopsis"></a>Synopsis</h3>

<p>Set whether an audiohook may be inherited to another channel</p>
<h3><a name="Asterisk11Function_AUDIOHOOK_INHERIT-Description"></a>Description</h3>



<p>By enabling audiohook inheritance on the channel, you are giving permission for an audiohook to be inherited by a descendent channel. Inheritance may be be disabled at any point as well.</p>

<p>Example scenario:</p>

<p>exten =&gt; 2000,1,MixMonitor(blah.wav)</p>

<p>exten =&gt; 2000,n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)</p>

<p>exten =&gt; 2000,n,Dial(SIP/2000)</p>



<p>exten =&gt; 4000,1,Dial(SIP/4000)</p>



<p>exten =&gt; 5000,1,MixMonitor(blah2.wav)</p>

<p>exten =&gt; 5000,n,Dial(SIP/5000)</p>



<p>In this basic dialplan scenario, let's consider the following sample calls</p>

<p>Call 1: Caller dials 2000. The person who answers then executes an attended</p>

<p>transfer to 4000.</p>

<p>Result: Since extension 2000 set MixMonitor to be inheritable, after the</p>

<p>transfer to 4000 has completed, the call will continue to be recorded to blah.wav</p>



<p>Call 2: Caller dials 5000. The person who answers then executes an attended</p>

<p>transfer to 4000.</p>

<p>Result: Since extension 5000 did not set MixMonitor to be inheritable, the</p>

<p>recording will stop once the call has been transferred to 4000.</p>

<h3><a name="Asterisk11Function_AUDIOHOOK_INHERIT-Syntax"></a>Syntax</h3>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>AUDIOHOOK_INHERIT(source)</pre>
</div></div>
<h5><a name="Asterisk11Function_AUDIOHOOK_INHERIT-Arguments"></a>Arguments</h5>


<ul>
        <li>source - The built-in sources in Asterisk are
        <ul>
                <li>MixMonitor</li>
                <li>Chanspy</li>
                <li>Volume</li>
                <li>Speex</li>
                <li>JACK_HOOKNote that the names are not case-sensitive</li>
        </ul>
        </li>
</ul>



<h3><a name="Asterisk11Function_AUDIOHOOK_INHERIT-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+Function_AUDIOHOOK_INHERIT">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_AUDIOHOOK_INHERIT?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>