summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsip/sip_config.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-05-17 12:45:00 +0000
committerBenny Prijono <bennylp@teluu.com>2008-05-17 12:45:00 +0000
commit472248b19890714c6befb93b12106a69ea0382a1 (patch)
tree0de964bbabc80840bfba431511c14bce5c6e75af /pjsip/include/pjsip/sip_config.h
parent973f06d4e3bc295be5bf96618e8c463dcfadc672 (diff)
Ticket #534: Client register/registration support for various registrar brokenness
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1959 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip/sip_config.h')
-rw-r--r--pjsip/include/pjsip/sip_config.h47
1 files changed, 44 insertions, 3 deletions
diff --git a/pjsip/include/pjsip/sip_config.h b/pjsip/include/pjsip/sip_config.h
index ded28ebd..a63e2250 100644
--- a/pjsip/include/pjsip/sip_config.h
+++ b/pjsip/include/pjsip/sip_config.h
@@ -108,7 +108,7 @@ typedef struct pjsip_cfg_t
struct {
/**
* Specify whether client registration should check for its
- * registered contact in Contact header of successful REGISTE
+ * registered contact in Contact header of successful REGISTER
* response to determine whether registration has been successful.
* This setting may be disabled if non-compliant registrar is unable
* to return correct Contact header.
@@ -117,6 +117,17 @@ typedef struct pjsip_cfg_t
*/
pj_bool_t check_contact;
+ /**
+ * Specify whether client registration should add "x-uid" extension
+ * parameter in all Contact URIs that it registers to assist the
+ * matching of Contact URIs in the 200/OK REGISTER response, in
+ * case the registrar is unable to return exact Contact URI in the
+ * 200/OK response.
+ *
+ * Default is PJSIP_REGISTER_CLIENT_ADD_XUID_PARAM.
+ */
+ pj_bool_t add_xuid_param;
+
} regc;
} pjsip_cfg_t;
@@ -713,7 +724,17 @@ PJ_INLINE(pjsip_cfg_t*) pjsip_cfg(void)
# define PJSIP_HAS_DIGEST_AKA_AUTH 0
#endif
-PJ_END_DECL
+
+/**
+ * Specify the number of seconds to refresh the client registration
+ * before the registration expires.
+ *
+ * Default: 5 seconds
+ */
+#ifndef PJSIP_REGISTER_CLIENT_DELAY_BEFORE_REFRESH
+# define PJSIP_REGISTER_CLIENT_DELAY_BEFORE_REFRESH 5
+#endif
+
/**
* Specify whether client registration should check for its registered
@@ -721,7 +742,8 @@ PJ_END_DECL
* whether registration has been successful. This setting may be disabled
* if non-compliant registrar is unable to return correct Contact header.
*
- * This setting can be changed in run-time with using pjsip_cfg().
+ * This setting can be changed in run-time by settting \a regc.check_contact
+ * field of pjsip_cfg().
*
* Default is 1
*/
@@ -731,6 +753,25 @@ PJ_END_DECL
/**
+ * Specify whether client registration should add "x-uid" extension
+ * parameter in all Contact URIs that it registers to assist the
+ * matching of Contact URIs in the 200/OK REGISTER response, in
+ * case the registrar is unable to return exact Contact URI in the
+ * 200/OK response.
+ *
+ * This setting can be changed in run-time by setting
+ * \a regc.add_xuid_param field of pjsip_cfg().
+ *
+ * Default is 0.
+ */
+#ifndef PJSIP_REGISTER_CLIENT_ADD_XUID_PARAM
+# define PJSIP_REGISTER_CLIENT_ADD_XUID_PARAM 0
+#endif
+
+
+PJ_END_DECL
+
+/**
* @}
*/