Using Jitterbuffer in Asterisk 13

Enabling Jitterbuffer in Asterisk 13 adds 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 in iax.conf. 

Jitterbuffers are contsructed in two different ways. The first always takes 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 200ms.

  • 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 of time in milliseconds by which the new jitterbuffer will pad its size. Defaults to 40ms.

Return to Documentation Home I Return to Sangoma Support