diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-06-26 10:13:13 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-06-26 10:13:13 +0000 |
commit | 64a2dec7043051da0ea7fc2dbf6e98f478c82852 (patch) | |
tree | d8937267193eb9af272c80c4693a4203d0b2861b /pjsip | |
parent | a28755aa6e146a74d305fb2ff2a7e20241fc13fc (diff) |
Ticket #342: added option to disable RTCP advertisement in SDP (and ICE) to reduce SIP message size
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1393 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_media.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_media.c b/pjsip/src/pjsua-lib/pjsua_media.c index 2c5b31b2..129e3aa7 100644 --- a/pjsip/src/pjsua-lib/pjsua_media.c +++ b/pjsip/src/pjsua-lib/pjsua_media.c @@ -557,8 +557,13 @@ static pj_status_t create_ice_media_transports(pjsua_transport_config *cfg) for (i=0; i<pjsua_var.ua_cfg.max_calls; ++i) { pj_ice_strans_comp comp; int next_port; +#if PJMEDIA_ADVERTISE_RTCP + enum { COMP_CNT=2 }; +#else + enum { COMP_CNT=1 }; +#endif - status = pjmedia_ice_create(pjsua_var.med_endpt, NULL, 2, + status = pjmedia_ice_create(pjsua_var.med_endpt, NULL, COMP_CNT, &pjsua_var.stun_cfg, &pjsua_var.calls[i].med_tp); if (status != PJ_SUCCESS) { |