diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2012-08-09 09:16:31 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2012-08-09 09:16:31 +0000 |
commit | c922e8d8f2dc448791cabaf08eca3facddbd1881 (patch) | |
tree | f7136d6dec9a72d9ec9e83505663ee2a3ed6b191 /pjsip | |
parent | bb8aad5e9fd0c6ab5f5129a82936c47c667cf7f8 (diff) |
Re #1562: Added compile-time setting to enable/disable "c=" line in SDP session level. The default is disabled.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4225 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 8 | ||||
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_media.c | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index fdc35c7c..9b5032a0 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -5302,6 +5302,14 @@ PJ_DECL(pj_status_t) pjsua_im_typing(pjsua_acc_id acc_id, /** + * Enable/disable "c=" line in SDP session level. Set to zero to disable it. + */ +#ifndef PJSUA_SDP_SESS_HAS_CONN +# define PJSUA_SDP_SESS_HAS_CONN 0 +#endif + + +/** * This structure describes media configuration, which will be specified * when calling #pjsua_init(). Application MUST initialize this structure * by calling #pjsua_media_config_default(). diff --git a/pjsip/src/pjsua-lib/pjsua_media.c b/pjsip/src/pjsua-lib/pjsua_media.c index 4bd80337..9dc944dd 100644 --- a/pjsip/src/pjsua-lib/pjsua_media.c +++ b/pjsip/src/pjsua-lib/pjsua_media.c @@ -1940,12 +1940,14 @@ pj_status_t pjsua_media_channel_create_sdp(pjsua_call_id call_id, return status; } +#if PJSUA_SDP_SESS_HAS_CONN /* Copy c= line of the first media to session level, * if there's none. */ if (sdp->conn == NULL) { sdp->conn = pjmedia_sdp_conn_clone(pool, m->conn); } +#endif /* Find media bandwidth info */ |