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 /pjmedia | |
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 'pjmedia')
-rw-r--r-- | pjmedia/include/pjmedia/config.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/pjmedia/include/pjmedia/config.h b/pjmedia/include/pjmedia/config.h index 4765ef84..0b7f542a 100644 --- a/pjmedia/include/pjmedia/config.h +++ b/pjmedia/include/pjmedia/config.h @@ -204,6 +204,19 @@ /** + * Specify whether RTCP should be advertised in SDP. This setting would + * affect whether RTCP candidate will be added in SDP when ICE is used. + * Application might want to disable RTCP advertisement in SDP to + * reduce the message size. + * + * Default: 1 (yes) + */ +#ifndef PJMEDIA_ADVERTISE_RTCP +# define PJMEDIA_ADVERTISE_RTCP 1 +#endif + + +/** * Interval to send RTCP packets, in msec */ #ifndef PJMEDIA_RTCP_INTERVAL @@ -343,10 +356,10 @@ /** * Support for sending and decoding RTCP port in SDP (RFC 3605). - * Default is yes. + * Default is equal to PJMEDIA_ADVERTISE_RTCP setting. */ #ifndef PJMEDIA_HAS_RTCP_IN_SDP -# define PJMEDIA_HAS_RTCP_IN_SDP 1 +# define PJMEDIA_HAS_RTCP_IN_SDP (PJMEDIA_ADVERTISE_RTCP) #endif |