pjsua_call_remote_has_cap method

int pjsua_call_remote_has_cap(
  1. int call_id,
  2. int htype,
  3. Pointer<pj_str_t> hname,
  4. Pointer<pj_str_t> token,
)

Check if remote peer support the specified capability.

@param call_id Call identification. @param htype The header type to be checked, which value may be:

  • PJSIP_H_ACCEPT
  • PJSIP_H_ALLOW
  • PJSIP_H_SUPPORTED @param hname If htype specifies PJSIP_H_OTHER, then the header name must be supplied in this argument. Otherwise the value must be set to NULL. @param token The capability token to check. For example, if \a htype is PJSIP_H_ALLOW, then \a token specifies the method names; if \a htype is PJSIP_H_SUPPORTED, then \a token specifies the extension names such as "100rel".

@return PJSIP_DIALOG_CAP_SUPPORTED if the specified capability is explicitly supported, see pjsip_dialog_cap_status for more info.

Implementation

int pjsua_call_remote_has_cap(
  int call_id,
  int htype,
  ffi.Pointer<pj_str_t> hname,
  ffi.Pointer<pj_str_t> token,
) {
  return _pjsua_call_remote_has_cap(
    call_id,
    htype,
    hname,
    token,
  );
}