Function switch_core_media_bug_add

Source
pub unsafe extern "C" fn switch_core_media_bug_add(
    session: *mut switch_core_session_t,
    function: *const c_char,
    target: *const c_char,
    callback: switch_media_bug_callback_t,
    user_data: *mut c_void,
    stop_time: time_t,
    flags: switch_media_bug_flag_t,
    new_bug: *mut *mut switch_media_bug_t,
) -> switch_status_t
Expand description

\brief Add a media bug to the session \param session the session to add the bug to \param function user defined module/function/reason identifying this bug \param target user defined identification of the target of the bug \param callback a callback for events \param user_data arbitrary user data \param stop_time absolute time at which the bug is automatically removed (or 0) \param flags flags to choose the stream \param new_bug pointer to assign new bug to \return SWITCH_STATUS_SUCCESS if the operation was a success