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:
Anthony Minessale
2010-03-02 01:11:15 +00:00
parent 85587aa6b9
commit cc39f9e4bc
12 changed files with 82 additions and 17 deletions
+2
View File
@@ -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;
};
+2
View File
@@ -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);
+2
View File
@@ -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;