diff options
author | Kevin Harwell <kharwell@digium.com> | 2017-03-20 13:27:31 -0500 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2017-03-22 15:43:33 -0500 |
commit | 9b103e7bea40c300f89de67cc23c1015fc03db76 (patch) | |
tree | 16716cafa1b2b8e8fc2c8d70ff72fd0f63be75f0 /include/asterisk/options.h | |
parent | 06c996660865e5a5d87aa130b066d214a407b286 (diff) |
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 "yes" in Asterisk 15.
ASTERISK-26515 #close
patches:
ASTERISK-26515.diff submitted by jcolp (license 5000
Change-Id: I7653465c5ebeaf968f1a1cc8f3f4f5c4321da7fc
Diffstat (limited to 'include/asterisk/options.h')
-rw-r--r-- | include/asterisk/options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asterisk/options.h b/include/asterisk/options.h index 05ad6c560..0a20f10a8 100644 --- a/include/asterisk/options.h +++ b/include/asterisk/options.h @@ -196,6 +196,7 @@ extern int dahdi_chan_name_len; extern int ast_language_is_prefix; +extern int ast_option_rtpusedynamic; extern unsigned int ast_option_rtpptdynamic; #if defined(__cplusplus) || defined(c_plusplus) |