Changeset 3345


Ignore:
Timestamp:
Oct 14, 2010 8:30:57 AM (11 years ago)
Author:
bennylp
Message:

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)

Location:
pjproject/trunk/pjmedia/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia-codec/types.h

    r3146 r3345  
    4444enum 
    4545{ 
    46     /* PJMEDIA_RTP_PT_TELEPHONE_EVENTS is declared in 
    47      * <pjmedia/config.h> 
     46    /* According to IANA specifications, dynamic payload types are to be in 
     47     * the range 96-127 (inclusive). This enum is structured to place the 
     48     * values of the payload types specified below into that range. 
     49     * 
     50     * PJMEDIA_RTP_PT_DYNAMIC is defined in <pjmedia/codec.h>. It is defined 
     51     * to be 96. 
     52     * 
     53     * PJMEDIA_RTP_PT_TELEPHONE_EVENTS is defined in <pjmedia/config.h>. 
     54     * The default value is 96. 
    4855     */ 
    4956#if PJMEDIA_RTP_PT_TELEPHONE_EVENTS 
    5057    PJMEDIA_RTP_PT_START = PJMEDIA_RTP_PT_TELEPHONE_EVENTS, 
    5158#else 
    52     PJMEDIA_RTP_PT_START = 102, 
     59    PJMEDIA_RTP_PT_START = (PJMEDIA_RTP_PT_DYNAMIC-1), 
    5360#endif 
    5461 
     
    8491    PJMEDIA_RTP_PT_G7221_RSV1,                  /**< G722.1 reserve         */ 
    8592    PJMEDIA_RTP_PT_G7221_RSV2,                  /**< G722.1 reserve         */ 
     93 
     94    /* Caution! 
     95     * Ensure the value of the last pt above is <= 127. 
     96     */ 
    8697}; 
    8798 
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r3239 r3345  
    624624 */ 
    625625#ifndef PJMEDIA_RTP_PT_TELEPHONE_EVENTS 
    626 #   define PJMEDIA_RTP_PT_TELEPHONE_EVENTS          101 
     626#   define PJMEDIA_RTP_PT_TELEPHONE_EVENTS          96 
    627627#endif 
    628628 
     
    633633 */ 
    634634#ifndef PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR 
    635 #   define PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR      "101" 
     635#   define PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR      "96" 
    636636#endif 
    637637 
Note: See TracChangeset for help on using the changeset viewer.