summaryrefslogtreecommitdiff
path: root/pjsip/include
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2013-03-19 03:51:10 +0000
committerNanang Izzuddin <nanang@teluu.com>2013-03-19 03:51:10 +0000
commitba8d46d99f2952ac2831790179ec54b44b2138d2 (patch)
treee54693d89c9fde79668e34470c79df570ff2787c /pjsip/include
parent458b2a58d18f7e548cfed653dc6f18c318790232 (diff)
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
Diffstat (limited to 'pjsip/include')
-rw-r--r--pjsip/include/pjsip/sip_config.h24
1 files changed, 24 insertions, 0 deletions
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. */
@@ -292,6 +301,21 @@ PJ_INLINE(pjsip_cfg_t*) pjsip_cfg(void)
/**
+ * 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,
* for better interoperability reason, this might be ignored.