Ticket #1982 (closed enhancement: fixed)

Opened 7 weeks ago

Last modified 7 weeks ago

Add option to reinitialize call media transports

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

Description

The ticket will add pjsua_call_flag PJSUA_CALL_REINIT_MEDIA, which will deinitialize and recreate media, including media transport. It is useful in IP address change situation, if the media transport address (or address family) changes, for example during IPv4/IPv6 network handover.

To use this feature, call the API pjsua_call_reinvite()/reinvite2(), or pjsua_call_update()/update2(). The only drawback of using this option is that if the re-INVITE/UPDATE fails, the old media will not be reverted.

Change History

comment:1 Changed 7 weeks ago by ming

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

In 5490:

Fixed #1982: Add option to reinitialize call media transports

comment:2 Changed 7 weeks ago by ming

In 5491:

Re #1982: Add the new call flag for PJSUA2 swig

comment:3 Changed 7 weeks ago by ming

In 5492:

Re #1982: Cleanup call setting flags even if callbacks on_call_tx/rx_offer() not implemented
Otherwise this could cause media to be unintentionally reinitialized on re-INVITEs/updates.
Refer to ticket #1793.

Note: See TracTickets for help on using tickets.