pjsua_cancel_stun_resolution method
Cancel pending STUN resolution which match the specified token.
@param token The token to match. This token was given to #pjsua_resolve_stun_servers() @param notify_cb Boolean to control whether the callback should be called for cancelled resolutions. When the callback is called, the status in the result will be set as PJ_ECANCELLED.
@return PJ_SUCCESS if there is at least one pending STUN resolution cancelled, or PJ_ENOTFOUND if there is no matching one, or other error.
Implementation
int pjsua_cancel_stun_resolution(
ffi.Pointer<ffi.Void> token,
int notify_cb,
) {
return _pjsua_cancel_stun_resolution(
token,
notify_cb,
);
}