pjsua_handle_ip_change method
Inform the stack that IP address change event was detected. The stack will:
- Restart the listener (this step is configurable via \a pjsua_ip_change_param.restart_listener).
- Shutdown the transport used by account registration (this step is configurable via \a pjsua_acc_config.ip_change_cfg.shutdown_tp).
- Update contact URI by sending re-Registration (this step is configurable via a\ pjsua_acc_config.allow_contact_rewrite and a\ pjsua_acc_config.contact_rewrite_method)
- Hangup active calls (this step is configurable via a\ pjsua_acc_config.ip_change_cfg.hangup_calls) or continue the call by sending re-INVITE (configurable via \a pjsua_acc_config.ip_change_cfg.reinvite_flags).
@param param The IP change parameter, have a look at #pjsua_ip_change_param.
@return PJ_SUCCESS on success, other on error.
Implementation
int pjsua_handle_ip_change(
ffi.Pointer<pjsua_ip_change_param> param,
) {
return _pjsua_handle_ip_change(
param,
);
}