pjsua_call_send_im method
Send instant messaging inside INVITE session.
@param call_id Call identification. @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_call_send_im(
int call_id,
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_call_send_im(
call_id,
mime_type,
content,
msg_data,
user_data,
);
}