pjsua_im_send method

int pjsua_im_send(
  1. int acc_id,
  2. Pointer<pj_str_t> to,
  3. Pointer<pj_str_t> mime_type,
  4. Pointer<pj_str_t> content,
  5. Pointer<pjsua_msg_data> msg_data,
  6. Pointer<Void> user_data,
)

Send instant messaging outside dialog, using the specified account for route set and authentication.

@param acc_id Account ID to be used to send the request. @param to Remote URI. @param mime_type Optional MIME type. If NULL, then "text/plain" is assumed. @param content The message content. Can be NULL if msg_data specifies body and/or multipart. @param msg_data Optional list of headers etc to be included in outgoing request. The body descriptor in the msg_data is ignored if parameter 'content' is set. @param user_data Optional user data, which will be given back when the IM callback is called.

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

Implementation

int pjsua_im_send(
  int acc_id,
  ffi.Pointer<pj_str_t> to,
  ffi.Pointer<pj_str_t> mime_type,
  ffi.Pointer<pj_str_t> content,
  ffi.Pointer<pjsua_msg_data> msg_data,
  ffi.Pointer<ffi.Void> user_data,
) {
  return _pjsua_im_send(
    acc_id,
    to,
    mime_type,
    content,
    msg_data,
    user_data,
  );
}