From: Russell Bryant Date: Fri, 5 Mar 2010 02:07:33 +0000 (+0000) Subject: Fix up the ast_rtp_property enum. X-Git-Tag: 11.0.0-beta1~3329 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=335558c5d14716987eb97bd97c8596651e31240b;p=thirdparty%2Fasterisk.git Fix up the ast_rtp_property enum. The mis-placement of the latest entry meant that when it was set, it was writing one index past the end of the properties array in the ast_rtp_instance (which happened to be the local_address field). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@250871 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/rtp_engine.h b/include/asterisk/rtp_engine.h index 651ff80482..86f7c27e70 100644 --- a/include/asterisk/rtp_engine.h +++ b/include/asterisk/rtp_engine.h @@ -92,10 +92,15 @@ enum ast_rtp_property { AST_RTP_PROPERTY_STUN, /*! Enable RTCP support */ AST_RTP_PROPERTY_RTCP, - /*! Maximum number of RTP properties supported */ - AST_RTP_PROPERTY_MAX, /*! Don't force a new SSRC on new source */ AST_RTP_PROPERTY_CONSTANT_SSRC, + + /*! + * \brief Maximum number of RTP properties supported + * + * \note THIS MUST BE THE LAST ENTRY IN THIS ENUM. + */ + AST_RTP_PROPERTY_MAX, }; /*! Additional RTP options */