diff options
author | Joshua Colp <jcolp@digium.com> | 2016-11-01 11:56:24 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2016-11-01 13:21:03 -0500 |
commit | 5f188bb7a84b5cb065f35d6068b0c800a695a940 (patch) | |
tree | 3f123dbd27e27451ea0019c3baaf5d021dcac0a9 /third-party/pjproject | |
parent | 42bd70b29f5673ffead10c70cc4096c1410f4144 (diff) |
res_pjsip_sdp_rtp: Limit number of formats to defined maximum.
The res_pjsip_sdp_rtp module did not restrict the number of
formats added to a media stream in the SDP to the defined
limit. If allow=all was used with additional loaded codecs this
could result in the next media stream being overwritten some.
This change restricts the module to limit it to the defined
maximum and also increases the maximum in our bundled pjproject.
ASTERISK-26541 #close
Change-Id: I0dc5f59d3891246cafa2f3df5ec406f088559ee8
Diffstat (limited to 'third-party/pjproject')
-rw-r--r-- | third-party/pjproject/patches/config_site.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/third-party/pjproject/patches/config_site.h b/third-party/pjproject/patches/config_site.h index 0694f120e..564959d84 100644 --- a/third-party/pjproject/patches/config_site.h +++ b/third-party/pjproject/patches/config_site.h @@ -57,3 +57,9 @@ /* Defaults too low for WebRTC */ #define PJ_ICE_MAX_CAND 32 #define PJ_ICE_MAX_CHECKS (PJ_ICE_MAX_CAND * 2) + +/* Increase limits to allow more formats */ +#define PJMEDIA_MAX_SDP_FMT 64 +#define PJMEDIA_MAX_SDP_BANDW 4 +#define PJMEDIA_MAX_SDP_ATTR (PJMEDIA_MAX_SDP_FMT*2 + 4) +#define PJMEDIA_MAX_SDP_MEDIA 16 |