Ignore:
Timestamp:
Nov 13, 2019 8:09:34 AM (14 months ago)
Author:
nanang
Message:

Close #1297:

  • Updated PJMEDIA endpoint to rearrange dynamic payload type allocation in generating SDP for audio, the allocation arranged in pjmedia_audio_pt enumeation is no longer used.
  • Updated PJMEDIA_RTP_PT_TELEPHONE_EVENTS default value to 120, so lower PT values will be used by audio codecs.
File:
1 edited

Legend:

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

    r5791 r6105  
    4242 * this library. Also see the header file <pjmedia/codec.h> for list 
    4343 * of static payload types. 
     44 * 
     45 * These enumeration is for older audio codecs only, newer audio codec using 
     46 * dynamic payload type can simply assign PJMEDIA_RTP_PT_DYNAMIC in its 
     47 * payload type (i.e: pjmedia_codec_info.pt). Endpoint will automatically 
     48 * rearrange dynamic payload types in SDP generation. 
    4449 */ 
    4550enum pjmedia_audio_pt 
    4651{ 
    4752    /* According to IANA specifications, dynamic payload types are to be in 
    48      * the range 96-127 (inclusive). This enum is structured to place the 
    49      * values of the payload types specified below into that range. 
     53     * the range 96-127 (inclusive), but this enum allows the value to be 
     54     * outside that range, later endpoint will rearrange dynamic payload types 
     55     * in SDP generation to be inside the 96-127 range and not equal to 
     56     * PJMEDIA_RTP_PT_TELEPHONE_EVENTS. 
    5057     * 
    5158     * PJMEDIA_RTP_PT_DYNAMIC is defined in <pjmedia/codec.h>. It is defined 
    5259     * to be 96. 
    53      * 
    54      * PJMEDIA_RTP_PT_TELEPHONE_EVENTS is defined in <pjmedia/config.h>. 
    55      * The default value is 96. 
    5660     */ 
    57 #if PJMEDIA_RTP_PT_TELEPHONE_EVENTS 
    58     PJMEDIA_RTP_PT_START = PJMEDIA_RTP_PT_TELEPHONE_EVENTS, 
    59 #else 
    6061    PJMEDIA_RTP_PT_START = (PJMEDIA_RTP_PT_DYNAMIC-1), 
    61 #endif 
    6262 
    6363    PJMEDIA_RTP_PT_SPEEX_NB,                    /**< Speex narrowband/8KHz  */ 
     
    109109    PJMEDIA_RTP_PT_L16_48KHZ_STEREO,            /**< L16 @ 48KHz, stereo    */ 
    110110#endif 
    111  
    112     /* Caution! 
    113      * Ensure the value of the last pt above is <= 127. 
    114      */ 
    115111}; 
    116112 
Note: See TracChangeset for help on using the changeset viewer.