summaryrefslogtreecommitdiff
path: root/third-party/pjproject/patches
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-11-01 11:56:24 +0000
committerJoshua Colp <jcolp@digium.com>2016-11-01 13:21:12 -0500
commit6233e146c6ecb6abd7405d0a639cdf7276b70819 (patch)
treefa2a684cffe28f3724226af0668e755c72577138 /third-party/pjproject/patches
parent1648ca06c3257874e229df8f32a0b34082105471 (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/patches')
-rw-r--r--third-party/pjproject/patches/config_site.h6
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