pjsua_acc_create_request method

int pjsua_acc_create_request(
  1. int acc_id,
  2. Pointer<pjsip_method> method,
  3. Pointer<pj_str_t> target,
  4. Pointer<Pointer<pjsip_tx_data>> p_tdata,
)

Create arbitrary requests using the account. Application should only use this function to create auxiliary requests outside dialog, such as OPTIONS, and use the call or presence API to create dialog related requests.

@param acc_id The account ID. @param method The SIP method of the request. @param target Target URI. @param p_tdata Pointer to receive the request.

@return PJ_SUCCESS or the error code.

Implementation

int pjsua_acc_create_request(
  int acc_id,
  ffi.Pointer<pjsip_method> method,
  ffi.Pointer<pj_str_t> target,
  ffi.Pointer<ffi.Pointer<pjsip_tx_data>> p_tdata,
) {
  return _pjsua_acc_create_request(
    acc_id,
    method,
    target,
    p_tdata,
  );
}