aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/rtp_engine.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-05 02:07:33 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-05 02:07:33 +0000
commita477714ebc1acf9d6dc1e2e6d2085a450ade0394 (patch)
tree80d7cd3c01837d8fd9c67446a0d2585eb37a1db7 /include/asterisk/rtp_engine.h
parent7cb8dcb72b32714a2600f08a55e5e2f65449a22d (diff)
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: http://svn.digium.com/svn/asterisk/trunk@250871 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/rtp_engine.h')
-rw-r--r--include/asterisk/rtp_engine.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/asterisk/rtp_engine.h b/include/asterisk/rtp_engine.h
index 651ff8048..86f7c27e7 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 */