Ticket #381 (closed enhancement: fixed)

Opened 10 years ago

Last modified 9 years ago

Auto-update IP address/port in Contact header according to the IP address/port received in REGISTER response

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-0.8.0
Component: pjsua-lib Version: trunk
Keywords: Cc: Ravin Suri
Backport to 1.x milestone: Backported:

Description


Change History

comment:1 Changed 10 years ago by bennylp

  • Status changed from new to closed
  • Type changed from defect to enhancement
  • Resolution set to fixed
  • Summary changed from Handle the case when NAT binding has changed the SIP mapped port to Auto-update IP address/port in Contact header according to the IP address/port received in REGISTER response

Implemented in r1454:

  • There is a new setting pjsua_acc_config.auto_update_nat to control this feature. Default is 1 (on).
  • 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.

comment:2 Changed 9 years ago by bennylp

FYI this was modified by ticket #515

Note: See TracTickets for help on using tickets.