Ticket #337 (closed enhancement: fixed)

Opened 10 years ago

Last modified 10 years ago

Ability to restart PJSIP UDP transport

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

Description

Some applications want to be able to:

  • temporarily shutdown the transport (and the underlying socket), for example when network connectivity is lost
  • restart the transport, for example when the underlying socket is in "bad" state
  • just change the IP address of the transport, for example when the STUN mapped address has changed.

Add support to cover the above use cases.

Change History

comment:1 Changed 10 years ago by bennylp

  • Status changed from new to closed
  • Resolution set to fixed
  • Summary changed from Ability to restart PJSIP transport to Ability to restart PJSIP UDP transport

Committed in r1382:

  • added pjsip_udp_transport_pause() and pjsip_udp_transport_restart() to pause and restart UDP transport
  • added a simple test file to test the pause/restart functionality.

comment:2 Changed 10 years ago by bennylp

In r1386:

  • Fixed memory and possibly handle leak when UDP transport is restarted

comment:3 Changed 10 years ago by bennylp

Note: for Symbian, the fix in r1386 above would need ticket #343 to be applied.

Note: See TracTickets for help on using tickets.