Ignore:
Timestamp:
Jun 26, 2007 8:59:49 AM (17 years ago)
Author:
bennylp
Message:

Ticket #342: added configuration to control whether SDP rtpmap should be included for static payload types (default still yes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/endpoint.c

    r1327 r1391  
    4646static int error_subsys_registered; 
    4747 
     48/* Config to control rtpmap inclusion for static payload types */ 
     49pj_bool_t pjmedia_add_rtpmap_for_static_pt =  
     50            PJMEDIA_ADD_RTPMAP_FOR_STATIC_PT; 
     51 
    4852 
    4953/** 
     
    395399        } 
    396400 
    397         pjmedia_sdp_rtpmap_to_attr(pool, &rtpmap, &attr); 
    398         m->attr[m->attr_count++] = attr; 
     401        if (codec_info->pt >= 96 || pjmedia_add_rtpmap_for_static_pt) { 
     402            pjmedia_sdp_rtpmap_to_attr(pool, &rtpmap, &attr); 
     403            m->attr[m->attr_count++] = attr; 
     404        } 
    399405 
    400406        /* Add fmtp mode where applicable */ 
Note: See TracChangeset for help on using the changeset viewer.