From 4f82e697a033306f77f467f77c0e8b405844fcfb Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 27 Sep 2007 14:07:07 +0000 Subject: 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 --- pjsip/include/pjsua-lib/pjsua.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'pjsip/include') 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; -- cgit v1.2.3