pjsua_update_stun_servers method

int pjsua_update_stun_servers(
  1. int count,
  2. Pointer<pj_str_t> srv,
  3. int wait
)

Update the STUN servers list. The #pjsua_init() must have been called before calling this function.

@param count Number of STUN server entries. @param srv Array of STUN server entries to try. Please see the \a stun_srv field in the #pjsua_config documentation about the format of this entry. @param wait Specify non-zero to make the function block until it gets the result. In this case, the function will block while the resolution is being done, and the callback will be called before this function returns.

@return If \a wait parameter is non-zero, this will return PJ_SUCCESS if one usable STUN server is found. Otherwise it will always return PJ_SUCCESS, and application will be notified about the result in the callback on_stun_resolution_complete().

Implementation

int pjsua_update_stun_servers(
  int count,
  ffi.Pointer<pj_str_t> srv,
  int wait,
) {
  return _pjsua_update_stun_servers(
    count,
    srv,
    wait,
  );
}