Changeset 4240


Ignore:
Timestamp:
Aug 31, 2012 9:03:36 AM (7 years ago)
Author:
ming
Message:

Fixed #1577: Add pjmedia setting to include SDP bandwidth modifier "TIAS" (RFC3890)

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r4197 r4240  
    686686 
    687687/** 
     688 * This macro controls whether pjmedia should include SDP 
     689 * bandwidth modifier "TIAS" (RFC3890). 
     690 * 
     691 * Note that there is also a run-time variable to turn this setting 
     692 * on or off, defined in endpoint.c. To access this variable, use 
     693 * the following construct 
     694 * 
     695 \verbatim 
     696    extern pj_bool_t pjmedia_add_bandwidth_tias_in_sdp; 
     697 
     698    // Do not enable bandwidth information inclusion in sdp 
     699    pjmedia_add_bandwidth_tias_in_sdp = PJ_FALSE; 
     700 \endverbatim 
     701 * 
     702 * Default: 1 (yes) 
     703 */ 
     704#ifndef PJMEDIA_ADD_BANDWIDTH_TIAS_IN_SDP 
     705#   define PJMEDIA_ADD_BANDWIDTH_TIAS_IN_SDP    1 
     706#endif 
     707 
     708 
     709/** 
    688710 * This macro controls whether pjmedia should include SDP rtpmap  
    689711 * attribute for static payload types. SDP rtpmap for static 
  • pjproject/trunk/pjmedia/src/pjmedia/endpoint.c

    r3999 r4240  
    5050            PJMEDIA_ADD_RTPMAP_FOR_STATIC_PT; 
    5151 
     52/* Config to control use of RFC3890 TIAS */ 
     53pj_bool_t pjmedia_add_bandwidth_tias_in_sdp = 
     54            PJMEDIA_ADD_BANDWIDTH_TIAS_IN_SDP; 
     55 
    5256 
    5357 
     
    552556     * (RFC3890). 
    553557     */ 
    554     if (max_bitrate) { 
     558    if (max_bitrate && pjmedia_add_bandwidth_tias_in_sdp) { 
    555559        const pj_str_t STR_BANDW_MODIFIER = { "TIAS", 4 }; 
    556560        pjmedia_sdp_bandw *b; 
     
    716720     * (RFC3890). 
    717721     */ 
    718     if (max_bitrate) { 
     722    if (max_bitrate && pjmedia_add_bandwidth_tias_in_sdp) { 
    719723        const pj_str_t STR_BANDW_MODIFIER = { "TIAS", 4 }; 
    720724        pjmedia_sdp_bandw *b; 
Note: See TracChangeset for help on using the changeset viewer.