summaryrefslogtreecommitdiff
path: root/pjsip/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-09-27 14:07:07 +0000
committerBenny Prijono <bennylp@teluu.com>2007-09-27 14:07:07 +0000
commit4f82e697a033306f77f467f77c0e8b405844fcfb (patch)
tree25474666328032157daf79c79c4b0763d8b3ef41 /pjsip/include
parent6b8d251db07c478f233cbe2393ff9add63873c6f (diff)
Ticket #381: auto-update the IP address in Contact according to the address/port received in REGISTER response
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1454 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index f493de5d..870ea8d5 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -1847,6 +1847,19 @@ 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.
+ *
+ * Default: 1 (yes)
+ */
+ pj_bool_t auto_update_nat;
+
} pjsua_acc_config;