Changeset 1393


Ignore:
Timestamp:
Jun 26, 2007 10:13:13 AM (17 years ago)
Author:
bennylp
Message:

Ticket #342: added option to disable RTCP advertisement in SDP (and ICE) to reduce SIP message size

Location:
pjproject/trunk
Files:
2 edited

Legend:

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

    r1391 r1393  
    205205 
    206206/** 
     207 * Specify whether RTCP should be advertised in SDP. This setting would 
     208 * affect whether RTCP candidate will be added in SDP when ICE is used. 
     209 * Application might want to disable RTCP advertisement in SDP to 
     210 * reduce the message size. 
     211 * 
     212 * Default: 1 (yes) 
     213 */ 
     214#ifndef PJMEDIA_ADVERTISE_RTCP 
     215#   define PJMEDIA_ADVERTISE_RTCP               1 
     216#endif 
     217 
     218 
     219/** 
    207220 * Interval to send RTCP packets, in msec 
    208221 */ 
     
    344357/** 
    345358 * Support for sending and decoding RTCP port in SDP (RFC 3605). 
    346  * Default is yes. 
     359 * Default is equal to PJMEDIA_ADVERTISE_RTCP setting. 
    347360 */ 
    348361#ifndef PJMEDIA_HAS_RTCP_IN_SDP 
    349 #   define PJMEDIA_HAS_RTCP_IN_SDP              1 
     362#   define PJMEDIA_HAS_RTCP_IN_SDP              (PJMEDIA_ADVERTISE_RTCP) 
    350363#endif 
    351364 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r1266 r1393  
    558558        pj_ice_strans_comp comp; 
    559559        int next_port; 
    560  
    561         status = pjmedia_ice_create(pjsua_var.med_endpt, NULL, 2, 
     560#if PJMEDIA_ADVERTISE_RTCP 
     561        enum { COMP_CNT=2 }; 
     562#else 
     563        enum { COMP_CNT=1 }; 
     564#endif 
     565 
     566        status = pjmedia_ice_create(pjsua_var.med_endpt, NULL, COMP_CNT, 
    562567                                    &pjsua_var.stun_cfg,  
    563568                                    &pjsua_var.calls[i].med_tp); 
Note: See TracChangeset for help on using the changeset viewer.