From ba8d46d99f2952ac2831790179ec54b44b2138d2 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Tue, 19 Mar 2013 03:51:10 +0000 Subject: Re #1644: Added run-time setting 'pjsip_cfg()->follow_early_media_fork' and compile-time setting 'PJSIP_FOLLOW_EARLY_MEDIA_FORK', the default value is PJ_TRUE. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4441 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsip/sip_config.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'pjsip/include/pjsip') diff --git a/pjsip/include/pjsip/sip_config.h b/pjsip/include/pjsip/sip_config.h index 5d0464f9..b72c6d02 100644 --- a/pjsip/include/pjsip/sip_config.h +++ b/pjsip/include/pjsip/sip_config.h @@ -111,6 +111,15 @@ typedef struct pjsip_cfg_t */ pj_bool_t disable_tcp_switch; + /** + * Enable call media session to always be updated to the latest + * received early media SDP when receiving forked early media + * (multiple 183 responses with different To tag). + * + * Default is PJSIP_FOLLOW_EARLY_MEDIA_FORK. + */ + pj_bool_t follow_early_media_fork; + } endpt; /** Transaction layer settings. */ @@ -291,6 +300,21 @@ PJ_INLINE(pjsip_cfg_t*) pjsip_cfg(void) #endif +/** + * Specify whether the call media session should be updated to the latest + * received early media SDP when receiving forked early media (multiple 183 + * responses with different To tag). + * + * This option can also be controlled at run-time by the + * \a follow_early_media_fork setting in pjsip_cfg_t. + * + * Default is PJ_TRUE. + */ +#ifndef PJSIP_FOLLOW_EARLY_MEDIA_FORK +# define PJSIP_FOLLOW_EARLY_MEDIA_FORK PJ_TRUE +#endif + + /** * Accept call replace in early state when invite is not initiated * by the user agent. RFC 3891 Section 3 disallows this, however, -- cgit v1.2.3