summaryrefslogtreecommitdiff
path: root/pjsip/include
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2012-09-28 06:17:11 +0000
committerNanang Izzuddin <nanang@teluu.com>2012-09-28 06:17:11 +0000
commitf9699a50372fce5b374b3e768fd433296403e894 (patch)
tree7cdc73b10af247f9ddf0261b31ec138b6d3d1d44 /pjsip/include
parent19c5ac90fbd3fe8158bc1829249f3da699b8b742 (diff)
Close #1587: Added settings to accept call replace when in early state and as UAS: accept_replace_in_early_state in pjsip_cfg_t and PJSIP_ACCEPT_REPLACE_IN_EARLY_STATE macro.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4267 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 b67859fb..3527d536 100644
--- a/pjsip/include/pjsip/sip_config.h
+++ b/pjsip/include/pjsip/sip_config.h
@@ -78,6 +78,15 @@ typedef struct pjsip_cfg_t
pj_bool_t allow_port_in_fromto_hdr;
/**
+ * 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.
+ *
+ * Default is PJSIP_ACCEPT_REPLACE_IN_EARLY_STATE.
+ */
+ pj_bool_t accept_replace_in_early_state;
+
+ /**
* Allow hash character ('#') to appear in outgoing URIs. See
* https://trac.pjsip.org/repos/ticket/1569
*/
@@ -275,6 +284,21 @@ PJ_INLINE(pjsip_cfg_t*) pjsip_cfg(void)
/**
+ * 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.
+ *
+ * This option can also be controlled at run-time by the
+ * \a accept_replace_in_early_state setting in pjsip_cfg_t.
+ *
+ * Default is 0 (no).
+ */
+#ifndef PJSIP_ACCEPT_REPLACE_IN_EARLY_STATE
+# define PJSIP_ACCEPT_REPLACE_IN_EARLY_STATE 0
+#endif
+
+
+/**
* This setting controls the threshold of the UDP packet, which if it's
* larger than this value the request will be sent with TCP. This setting
* is useful only when PJSIP_DONT_SWITCH_TO_TCP is set to 0.