summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsua-lib
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-03-22 09:33:52 +0000
committerBenny Prijono <bennylp@teluu.com>2008-03-22 09:33:52 +0000
commitda44e0034481d224276af1c2dfcb3b2383a8547e (patch)
tree7d79bf64100de5063bc7b92490569ce6ed662f41 /pjsip/include/pjsua-lib
parent855bcda8119a227e45d3cc897b53db98ca334c7a (diff)
Ticket #515 (Update Contact header in REGISTER for TCP/TLS transport)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1889 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib')
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h17
-rw-r--r--pjsip/include/pjsua-lib/pjsua_internal.h1
2 files changed, 10 insertions, 8 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index a095954a..e6f6e2de 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -2026,17 +2026,18 @@ typedef struct pjsua_acc_config
pjsua_transport_id transport_id;
/**
- * This option is useful for keeping the UDP transport address up to
- * date with the NAT public mapped address. When this option is
- * enabled and STUN is configured, the library will keep track of
- * the public IP address from the response of REGISTER request. Once
- * it detects that the address has changed, it will unregister current
- * Contact, update the UDP transport address, and register a new
- * Contact to the registrar.
+ * This option is used to update the UDP transport address and the Contact
+ * header of REGISTER request. When this option is enabled, the library
+ * will keep track of the public IP address from the response of REGISTER
+ * request. Once it detects that the address has changed, it will
+ * unregister current Contact, update the Contact with transport address
+ * learned from Via header, and register a new Contact to the registrar.
+ * This will also update the public name of UDP transport if STUN is
+ * configured.
*
* Default: 1 (yes)
*/
- pj_bool_t auto_update_nat;
+ pj_bool_t allow_contact_rewrite;
/**
* Set the interval for periodic keep-alive transmission for this account.
diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h
index fb317e58..df981ed8 100644
--- a/pjsip/include/pjsua-lib/pjsua_internal.h
+++ b/pjsip/include/pjsua-lib/pjsua_internal.h
@@ -84,6 +84,7 @@ typedef struct pjsua_acc
int index; /**< Index in accounts array. */
pj_str_t display; /**< Display name, if any. */
pj_str_t user_part; /**< User part of local URI. */
+ pj_str_t contact; /**< Our Contact URI for REGISTER */
pj_str_t srv_domain; /**< Host part of reg server. */
int srv_port; /**< Port number of reg server. */