pjsua_handle_ip_change method

int pjsua_handle_ip_change(
  1. Pointer<pjsua_ip_change_param> param
)

Inform the stack that IP address change event was detected. The stack will:

  1. Restart the listener (this step is configurable via \a pjsua_ip_change_param.restart_listener).
  2. Shutdown the transport used by account registration (this step is configurable via \a pjsua_acc_config.ip_change_cfg.shutdown_tp).
  3. 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)
  4. 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,
  );
}