Skip to end of metadata
Go to start of metadata

JITTERBUFFER()

Synopsis

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.

Description

Jitterbuffers are constructed in two different ways. The first always take three arguments: max_size, resync_threshold, and target_extra. Alternatively, a single argument of default can be provided, which will construct the default jitterbuffer for the given jitterbuffer type.

The arguments are:

max_size: Length in milliseconds of the buffer. Defaults to 200 ms.

resync_threshold: The length in milliseconds over which a timestamp difference will result in resyncing the jitterbuffer. Defaults to 1000ms.

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.

Example: Fixed with defaults
Example: Fixed with 200ms max size
Example: Fixed with 200ms max size, resync threshold 1500
Example: Adaptive with defaults
Example: Adaptive with 200ms max size, 60ms target extra
Example: Set a fixed jitterbuffer with defaults; then remove it

Note

Icon

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.

Syntax

JITTERBUFFER(jitterbuffer type)
Arguments
  • jitterbuffer type
    • fixed - Set a fixed jitterbuffer on the channel.
    • adaptive - Set an adaptive jitterbuffer on the channel.
    • disabled - Remove a previously set jitterbuffer from the channel.

See Also

Import Version

This documentation was imported from Asterisk Version GIT-13-13.15.0-rc1-1662-g7b84eabb1d

  • No labels