Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1913 closed enhancement (fixed)

Add callback for address change notification from STUN keep alive

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

Description (last modified by ming)

From our IP Address Change wiki:
"If ICE media transport is used, and STUN is enabled on the media transport, then the media transport will automatically update its publicly mapped IP address from the STUN Binding response. The transport should send STUN Binding request periodically (approximately every 15 seconds) as NAT keep-alive mechanism, so the address change will be detected by the transport automatically during this operation."

This ticket is to provide a notification to the app when such address change happens due to the STUN keep alive operation (as indicated by the log saying: STUN mapped address found/changed: [new address here]).

The app will get notified via on_call_media_transport_state() callback
and it can inspect ext_info to verify the operation to be equal to

Change History (2)

comment:1 Changed 8 years ago by ming

  • Resolution set to fixed
  • Status changed from new to closed

In 5282:

Fixed #1913: Add callback for address change notification from STUN keep alive

comment:2 Changed 8 years ago by ming

  • Description modified (diff)
Note: See TracTickets for help on using tickets.