Ticket #1982 (closed enhancement: fixed)
Add option to reinitialize call media transports
|Reported by:||ming||Owned by:||bennylp|
|Backport to 1.x milestone:||Backported:||no|
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.