]> git.ipfire.org Git - thirdparty/asterisk.git/commit
rtp_engine: allocate RTP dynamic payloads per session
authorKevin Harwell <kharwell@digium.com>
Mon, 20 Mar 2017 18:26:08 +0000 (13:26 -0500)
committerKevin Harwell <kharwell@digium.com>
Wed, 22 Mar 2017 20:46:56 +0000 (15:46 -0500)
commitd0649254b589d873d0a707fccaf412d66b92efdc
tree3ae31d179b14fa95c7294cb399156d3c942d7870
parentab0a05716d3a77f0d7f063f460965fc94be5f78a
rtp_engine: allocate RTP dynamic payloads per session

Dynamic payload types were statically defined in Asterisk. This unfortunately
limited the number of dynamic payloads that could be registered. With this patch
dynamic payload type numbers are now assigned dynamically and per RTP instance.
However, in order to limit any issues where some clients expect the old
statically defined value this patch makes it so the value Asterisk used to pre-
designate is used for the dynamic assignment if available.

An option, "rtp_use_dynamic", has also been added (can be set in asterisk.conf)
that turns the new dynamic behavior on or off. When off it reverts back to using
statically defined payload values. This option defaults to "no" in Asterisk 14.

ASTERISK-26515 #close
patches:
  ASTERISK-26515.diff submitted by jcolp (license 5000)

Change-Id: If282877199b85da8dde7eb9452cdedaa19da586a
CHANGES
configs/samples/asterisk.conf.sample
include/asterisk/options.h
main/asterisk.c
main/rtp_engine.c