mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
funcs/func_jitterbuffer: Tweak documentation
This patch merely reformats and cleans up a bit of the jitterbuffer documentation for the wiki. ........ Merged revisions 420639 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@420640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -49,23 +49,35 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
</synopsis>
|
</synopsis>
|
||||||
<syntax>
|
<syntax>
|
||||||
<parameter name="jitterbuffer type" required="true">
|
<parameter name="jitterbuffer type" required="true">
|
||||||
<para>Jitterbuffer type can be <literal>fixed</literal>, <literal>adaptive</literal>, or
|
<optionlist>
|
||||||
<literal>disabled</literal>.</para>
|
<option name="fixed">
|
||||||
<para>Used as follows. </para>
|
<para>Set a fixed jitterbuffer on the channel.</para>
|
||||||
<para>Set(JITTERBUFFER(type)=max_size[,resync_threshold[,target_extra]])</para>
|
</option>
|
||||||
<para>Set(JITTERBUFFER(type)=default) </para>
|
<option name="adaptive">
|
||||||
|
<para>Set an adaptive jitterbuffer on the channel.</para>
|
||||||
|
</option>
|
||||||
|
<option name="disabled">
|
||||||
|
<para>Remove a previously set jitterbuffer from the channel.</para>
|
||||||
|
</option>
|
||||||
|
</optionlist>
|
||||||
</parameter>
|
</parameter>
|
||||||
</syntax>
|
</syntax>
|
||||||
<description>
|
<description>
|
||||||
<para>max_size: Defaults to 200 ms</para>
|
<para>Jitterbuffers are constructed in two different ways.
|
||||||
<para>Length in milliseconds of buffer.</para>
|
The first always take three arguments: <replaceable>max_size</replaceable>,
|
||||||
<para> </para>
|
<replaceable>resync_threshold</replaceable>, and <replaceable>target_extra</replaceable>.
|
||||||
<para>resync_threshold: Defaults to 1000ms </para>
|
Alternatively, a single argument of <literal>default</literal> can be provided,
|
||||||
<para>The length in milliseconds over which a timestamp difference will result in resyncing the jitterbuffer. </para>
|
which will construct the default jitterbuffer for the given
|
||||||
<para> </para>
|
<replaceable>jitterbuffer type</replaceable>.</para>
|
||||||
<para>target_extra: Defaults to 40ms</para>
|
<para>The arguments are:</para>
|
||||||
<para>This option only affects the adaptive jitterbuffer. It represents the amount time in milliseconds by which the new jitter buffer will pad its size.</para>
|
<para><replaceable>max_size</replaceable>: Length in milliseconds of the buffer.
|
||||||
<para> </para>
|
Defaults to 200 ms.</para>
|
||||||
|
<para><replaceable>resync_threshold</replaceable>: The length in milliseconds over
|
||||||
|
which a timestamp difference will result in resyncing the jitterbuffer.
|
||||||
|
Defaults to 1000ms.</para>
|
||||||
|
<para>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.</para>
|
||||||
<example title="Fixed with defaults" language="text">
|
<example title="Fixed with defaults" language="text">
|
||||||
exten => 1,1,Set(JITTERBUFFER(fixed)=default)
|
exten => 1,1,Set(JITTERBUFFER(fixed)=default)
|
||||||
</example>
|
</example>
|
||||||
|
Reference in New Issue
Block a user