From cbdb2dbb0e25f7ab23379b02467b055e263d345b Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Wed, 18 Jul 2012 11:38:05 +0000 Subject: Fix a crash occurring as a result of excess stack usage. This fix involves moving the allocation of some temporary codec structures to the heap and also reduces the number of maximum payloads to something more sane for both regular and low memory builds. (closes issue ASTERISK-20140) Reported by: jonnt git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370171 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/rtp_engine.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/asterisk/rtp_engine.h b/include/asterisk/rtp_engine.h index 098530f19..bd47e42b1 100644 --- a/include/asterisk/rtp_engine.h +++ b/include/asterisk/rtp_engine.h @@ -76,7 +76,11 @@ extern "C" { #include "asterisk/res_srtp.h" /* Maximum number of payloads supported */ -#define AST_RTP_MAX_PT 256 +#if defined(LOW_MEMORY) +#define AST_RTP_MAX_PT 128 +#else +#define AST_RTP_MAX_PT 196 +#endif /* Maximum number of generations */ #define AST_RED_MAX_GENERATION 5 -- cgit v1.2.3