diff options
author | Alexander Traud <pabstraud@compuserve.com> | 2016-09-13 11:08:34 +0200 |
---|---|---|
committer | George Joseph <gjoseph@digium.com> | 2016-11-02 09:47:55 -0500 |
commit | 0cf1778eed4754570a36938e1f5d212951320a71 (patch) | |
tree | 2f50719a3f64eadb5f9aa4a618f220670a915aff /include | |
parent | 18974927e5595f589f2c66a93da6e03185a07d65 (diff) |
rtp_engine: Allow more than 32 dynamic payload types.
The dynamic range (96-127) allows 32 RTP Payload Types. RFC 3551 section 3
allows to reassign other ranges. Consequently, when the dynamic range is
exhausted, you can go for "rtp_pt_dynamic = 35" (or 0) in asterisk.conf. This
enables the range 35-63 (or 0-63) giving room for another 29 (or 64) payload
types.
ASTERISK-26311 #close
Change-Id: I7bc96ab764bc30098a178b841cbf7146f9d64964
(cherry picked from commit 9ac53877f688c06acaa7c377f15da8770e4ee88b)
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/options.h | 2 | ||||
-rw-r--r-- | include/asterisk/rtp_engine.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/asterisk/options.h b/include/asterisk/options.h index 0da5799ae..21bd7a704 100644 --- a/include/asterisk/options.h +++ b/include/asterisk/options.h @@ -155,6 +155,8 @@ extern int dahdi_chan_name_len; extern int ast_language_is_prefix; +extern unsigned int ast_option_rtpptdynamic; + #if defined(__cplusplus) || defined(c_plusplus) } #endif diff --git a/include/asterisk/rtp_engine.h b/include/asterisk/rtp_engine.h index b7be5e8f4..24af05693 100644 --- a/include/asterisk/rtp_engine.h +++ b/include/asterisk/rtp_engine.h @@ -84,6 +84,9 @@ extern "C" { /*! First dynamic RTP payload type */ #define AST_RTP_PT_FIRST_DYNAMIC 96 +/*! Last reassignable RTP payload type */ +#define AST_RTP_PT_LAST_REASSIGN 63 + /*! Maximum number of generations */ #define AST_RED_MAX_GENERATION 5 |