From 1263f0530a87646c17f73924481a010032a1d0a6 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 14 Oct 2010 08:30:57 +0000 Subject: Misc (re #1134): changed dynamic payload type starting value for internal codecs to 96 (from 101) as we are running out of constants. Also added more comments to clarify the restriction on the value, i.e. it must be less than 128 (thanks Robbie Hanson for the suggestion) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3345 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/include/pjmedia-codec/types.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'pjmedia/include/pjmedia-codec/types.h') diff --git a/pjmedia/include/pjmedia-codec/types.h b/pjmedia/include/pjmedia-codec/types.h index b2dc41f9..90f0d534 100644 --- a/pjmedia/include/pjmedia-codec/types.h +++ b/pjmedia/include/pjmedia-codec/types.h @@ -43,13 +43,20 @@ */ enum { - /* PJMEDIA_RTP_PT_TELEPHONE_EVENTS is declared in - * + /* According to IANA specifications, dynamic payload types are to be in + * the range 96-127 (inclusive). This enum is structured to place the + * values of the payload types specified below into that range. + * + * PJMEDIA_RTP_PT_DYNAMIC is defined in . It is defined + * to be 96. + * + * PJMEDIA_RTP_PT_TELEPHONE_EVENTS is defined in . + * The default value is 96. */ #if PJMEDIA_RTP_PT_TELEPHONE_EVENTS PJMEDIA_RTP_PT_START = PJMEDIA_RTP_PT_TELEPHONE_EVENTS, #else - PJMEDIA_RTP_PT_START = 102, + PJMEDIA_RTP_PT_START = (PJMEDIA_RTP_PT_DYNAMIC-1), #endif PJMEDIA_RTP_PT_SPEEX_NB, /**< Speex narrowband/8KHz */ @@ -83,6 +90,10 @@ enum PJMEDIA_RTP_PT_G7221C_48, /**< G722.1 Annex C (48Kbps)*/ PJMEDIA_RTP_PT_G7221_RSV1, /**< G722.1 reserve */ PJMEDIA_RTP_PT_G7221_RSV2, /**< G722.1 reserve */ + + /* Caution! + * Ensure the value of the last pt above is <= 127. + */ }; /** -- cgit v1.2.3