<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_JITTERBUFFER">Asterisk 11 Function_JITTERBUFFER</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_JITTERBUFFER-JITTERBUFFER%28%29"></a>JITTERBUFFER()</h1>

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

<p>Add a Jitterbuffer to the Read side of the channel. This dejitters the audio stream before it reaches the Asterisk core. This is a write only function.</p>
<h3><a name="Asterisk11Function_JITTERBUFFER-Description"></a>Description</h3>



<p>max_size: Defaults to 200 ms</p>

<p>Length in milliseconds of buffer.</p>



<p>resync_threshold: Defaults to 1000ms</p>

<p>The length in milliseconds over which a timestamp difference will result in resyncing the jitterbuffer.</p>



<p>target_extra: Defaults to 40ms</p>

<p>This option only affects the adaptive jitterbuffer. It represents the amount time in milliseconds by which the new jitter buffer will pad its size.</p>



<p>Examples:</p>

<p>exten =&gt; 1,1,Set(JITTERBUFFER(fixed)=default);Fixed with defaults.</p>

<p>exten =&gt; 1,1,Set(JITTERBUFFER(fixed)=200);Fixed with max size 200ms, default resync threshold and target extra.</p>

<p>exten =&gt; 1,1,Set(JITTERBUFFER(fixed)=200,1500);Fixed with max size 200ms resync threshold 1500.</p>

<p>exten =&gt; 1,1,Set(JITTERBUFFER(adaptive)=default);Adaptive with defaults.</p>

<p>exten =&gt; 1,1,Set(JITTERBUFFER(adaptive)=200,,60);Adaptive with max size 200ms, default resync threshold and 40ms target extra.</p>

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

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>JITTERBUFFER(jitterbuffer type)</pre>
</div></div>
<h5><a name="Asterisk11Function_JITTERBUFFER-Arguments"></a>Arguments</h5>


<ul>
        <li>jitterbuffer type - Jitterbuffer type can be either <tt>fixed</tt> or <tt>adaptive</tt>.Used as follows.Set(JITTERBUFFER(type)=max_size[,resync_threshold<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=%2Ctarget_extra&amp;linkCreation=true&amp;fromPageId=20187199" class="createlink">,target&#95;extra</a>])Set(JITTERBUFFER(type)=default)</li>
</ul>



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