123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>Asterisk Project : Asterisk 13 Function_JITTERBUFFER</title>
- <link rel="stylesheet" href="styles/site.css" type="text/css" />
- <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
- </head>
- <body class="theme-default aui-theme-default">
- <div id="page">
- <div id="main" class="aui-page-panel">
- <div id="main-header">
- <div id="breadcrumb-section">
- <ol id="breadcrumbs">
- <li class="first">
- <span><a href="index.html">Asterisk Project</a></span>
- </li>
- <li>
- <span><a href="Asterisk-13-Command-Reference_29394274.html">Asterisk 13 Command Reference</a></span>
- </li>
- <li>
- <span><a href="Asterisk-13-Dialplan-Functions_29394287.html">Asterisk 13 Dialplan Functions</a></span>
- </li>
- </ol>
- </div>
- <h1 id="title-heading" class="pagetitle">
- <span id="title-text">
- Asterisk Project : Asterisk 13 Function_JITTERBUFFER
- </span>
- </h1>
- </div>
- <div id="content" class="view">
- <div class="page-metadata">
-
-
-
-
-
-
-
- Created and last modified by <span class='author'> wikibot</span> on Aug 11, 2014
- </div>
- <div id="main-content" class="wiki-content group">
- <h1 id="Asterisk13Function_JITTERBUFFER-JITTERBUFFER()">JITTERBUFFER()</h1>
- <h3 id="Asterisk13Function_JITTERBUFFER-Synopsis">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 id="Asterisk13Function_JITTERBUFFER-Description">Description</h3>
- <p>Jitterbuffers are constructed in two different ways. The first always take three arguments: <em>max_size</em>, <em>resync_threshold</em>, and <em>target_extra</em>. Alternatively, a single argument of <code>default</code> can be provided, which will construct the default jitterbuffer for the given <em>jitterbuffer type</em>.</p>
- <p>The arguments are:</p>
- <p>max_size: Length in milliseconds of the buffer. Defaults to 200 ms.</p>
- <p>resync_threshold: The length in milliseconds over which a timestamp difference will result in resyncing the jitterbuffer. Defaults to 1000ms.</p>
- <p>target_extra: This option only affects the adaptive jitterbuffer. It represents the amount time in milliseconds by which the new jitter buffer will pad its size. Defaults to 40ms.</p>
- <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>Example: Fixed with defaults</b></div><div class="codeContent panelContent pdl">
- <pre class="theme: Confluence; brush: text; gutter: true" style="font-size:12px;">
- exten => 1,1,Set(JITTERBUFFER(fixed)=default)
- </pre>
- </div></div>
- <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>Example: Fixed with 200ms max size</b></div><div class="codeContent panelContent pdl">
- <pre class="theme: Confluence; brush: text; gutter: true" style="font-size:12px;">
- exten => 1,1,Set(JITTERBUFFER(fixed)=200)
- </pre>
- </div></div>
- <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>Example: Fixed with 200ms max size, resync threshold 1500</b></div><div class="codeContent panelContent pdl">
- <pre class="theme: Confluence; brush: text; gutter: true" style="font-size:12px;">
- exten => 1,1,Set(JITTERBUFFER(fixed)=200,1500)
- </pre>
- </div></div>
- <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>Example: Adaptive with defaults</b></div><div class="codeContent panelContent pdl">
- <pre class="theme: Confluence; brush: text; gutter: true" style="font-size:12px;">
- exten => 1,1,Set(JITTERBUFFER(adaptive)=default)
- </pre>
- </div></div>
- <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>Example: Adaptive with 200ms max size, 60ms target extra</b></div><div class="codeContent panelContent pdl">
- <pre class="theme: Confluence; brush: text; gutter: true" style="font-size:12px;">
- exten => 1,1,Set(JITTERBUFFER(adaptive)=200,,60)
- </pre>
- </div></div>
- <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>Example: Set a fixed jitterbuffer with defaults; then remove it</b></div><div class="codeContent panelContent pdl">
- <pre class="theme: Confluence; brush: text; gutter: true" style="font-size:12px;">
- exten => 1,1,Set(JITTERBUFFER(fixed)=default)
- exten => 1,n,Set(JITTERBUFFER(disabled)=)
- </pre>
- </div></div>
- <div class="aui-message hint shadowed information-macro">
- <p class="title">Note</p>
- <span class="aui-icon icon-hint">Icon</span>
- <div class="message-content">
-
- <p>If a channel specifies a jitterbuffer due to channel driver configuration and the JITTERBUFFER function has set a jitterbuffer for that channel, the jitterbuffer set by the JITTERBUFFER function will take priority and the jitterbuffer set by the channel configuration will not be applied.</p>
- </div>
- </div>
- <h3 id="Asterisk13Function_JITTERBUFFER-Syntax">Syntax</h3>
- <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
- <pre>JITTERBUFFER(jitterbuffer type)</pre>
- </div></div>
- <h5 id="Asterisk13Function_JITTERBUFFER-Arguments">Arguments</h5>
- <ul>
- <li><code>jitterbuffer type</code>
- <ul>
- <li><code>fixed</code> - Set a fixed jitterbuffer on the channel.</li>
- <li><code>adaptive</code> - Set an adaptive jitterbuffer on the channel.</li>
- <li><code>disabled</code> - Remove a previously set jitterbuffer from the channel.</li>
- </ul>
- </li>
- </ul>
- <h3 id="Asterisk13Function_JITTERBUFFER-SeeAlso">See Also</h3>
- <h3 id="Asterisk13Function_JITTERBUFFER-ImportVersion">Import Version</h3>
- <p>This documentation was imported from Asterisk Version SVN-branch-13-r420717</p>
- </div>
-
-
- </div> </div>
- <div id="footer">
- <section class="footer-body">
- <p>Document generated by Confluence on Aug 11, 2014 13:46</p>
- </section>
- </div>
- </div> </body>
- </html>
|