mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
add events for bug start and stop
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16858 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -177,6 +177,8 @@ struct switch_media_bug {
|
||||
int16_t tmp[SWITCH_RECOMMENDED_BUFFER_SIZE];
|
||||
time_t stop_time;
|
||||
switch_thread_id_t thread_id;
|
||||
char *function;
|
||||
char *target;
|
||||
struct switch_media_bug *next;
|
||||
};
|
||||
|
||||
|
||||
@@ -147,6 +147,8 @@ SWITCH_DECLARE(void) switch_core_session_disable_heartbeat(switch_core_session_t
|
||||
\return SWITCH_STATUS_SUCCESS if the operation was a success
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_media_bug_add(_In_ switch_core_session_t *session,
|
||||
_In_ const char *function,
|
||||
_In_ const char *target,
|
||||
_In_ switch_media_bug_callback_t callback,
|
||||
_In_opt_ void *user_data,
|
||||
_In_ time_t stop_time, _In_ switch_media_bug_flag_t flags, _Out_ switch_media_bug_t **new_bug);
|
||||
|
||||
@@ -1350,6 +1350,8 @@ typedef enum {
|
||||
SWITCH_EVENT_CALL_UPDATE,
|
||||
SWITCH_EVENT_FAILURE,
|
||||
SWITCH_EVENT_SOCKET_DATA,
|
||||
SWITCH_EVENT_MEDIA_BUG_START,
|
||||
SWITCH_EVENT_MEDIA_BUG_STOP,
|
||||
SWITCH_EVENT_ALL
|
||||
} switch_event_types_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user