pjsua_call_send_request method

int pjsua_call_send_request(
  1. int call_id,
  2. Pointer<pj_str_t> method,
  3. Pointer<pjsua_msg_data> msg_data
)

Send arbitrary request with the call. This is useful for example to send INFO request. Note that application should not use this function to send requests which would change the invite session's state, such as re-INVITE, UPDATE, PRACK, and BYE.

@param call_id Call identification. @param method SIP method of the request. @param msg_data Optional message body and/or list of headers to be included in outgoing request.

@return PJ_SUCCESS on success, or the appropriate error code.

Implementation

int pjsua_call_send_request(
  int call_id,
  ffi.Pointer<pj_str_t> method,
  ffi.Pointer<pjsua_msg_data> msg_data,
) {
  return _pjsua_call_send_request(
    call_id,
    method,
    msg_data,
  );
}