pjsua_call_set_hold2 method

int pjsua_call_set_hold2(
  1. int call_id,
  2. int options,
  3. Pointer<pjsua_msg_data> msg_data
)

Put the specified call on hold. This will send re-INVITE with the appropriate SDP to inform remote that the call is being put on hold. The final status of the request itself will be reported on the \a on_call_media_state() callback, which inform the application that the media state of the call has changed.

@param call_id Call identification. @param options Bitmask of pjsua_call_flag constants. Currently, only the flag PJSUA_CALL_UPDATE_CONTACT can be used. @param msg_data Optional message components to be sent with the request.

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

Implementation

int pjsua_call_set_hold2(
  int call_id,
  int options,
  ffi.Pointer<pjsua_msg_data> msg_data,
) {
  return _pjsua_call_set_hold2(
    call_id,
    options,
    msg_data,
  );
}