Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

switch_core_event_hook.h File Reference


Data Structures

struct  switch_io_event_hook_outgoing_channel
 Node in which to store custom receive message callback hooks. More...
struct  switch_io_event_hook_receive_message
 Node in which to store custom receive message callback hooks. More...
struct  switch_io_event_hook_receive_event
 Node in which to store custom receive message callback hooks. More...
struct  switch_io_event_hook_read_frame
 Node in which to store custom read frame channel callback hooks. More...
struct  switch_io_event_hook_video_read_frame
 Node in which to store custom read frame channel callback hooks. More...
struct  switch_io_event_hook_write_frame
 Node in which to store custom write_frame channel callback hooks. More...
struct  switch_io_event_hook_video_write_frame
 Node in which to store custom video_write_frame channel callback hooks. More...
struct  switch_io_event_hook_kill_channel
 Node in which to store custom kill channel callback hooks. More...
struct  switch_io_event_hook_send_dtmf
 Node in which to store custom send dtmf channel callback hooks. More...
struct  switch_io_event_hook_recv_dtmf
 Node in which to store custom recv dtmf channel callback hooks. More...
struct  switch_io_event_hook_state_change
 Node in which to store state change callback hooks. More...
struct  switch_io_event_hook_resurrect_session
struct  switch_io_event_hooks
 A table of lists of io_event_hooks to store the event hooks associated with a session. More...

Defines

#define NEW_HOOK_DECL_ADD_P(_NAME)
#define NEW_HOOK_DECL_REM_P(_NAME)
#define NEW_HOOK_DECL(_NAME)

Typedefs

typedef switch_io_event_hook_outgoing_channel switch_io_event_hook_outgoing_channel_t
typedef switch_io_event_hook_receive_message switch_io_event_hook_receive_message_t
typedef switch_io_event_hook_receive_event switch_io_event_hook_receive_event_t
typedef switch_io_event_hook_read_frame switch_io_event_hook_read_frame_t
typedef switch_io_event_hook_video_read_frame switch_io_event_hook_video_read_frame_t
typedef switch_io_event_hook_write_frame switch_io_event_hook_write_frame_t
typedef switch_io_event_hook_video_write_frame switch_io_event_hook_video_write_frame_t
typedef switch_io_event_hook_kill_channel switch_io_event_hook_kill_channel_t
typedef switch_io_event_hook_send_dtmf switch_io_event_hook_send_dtmf_t
typedef switch_io_event_hook_recv_dtmf switch_io_event_hook_recv_dtmf_t
typedef switch_io_event_hook_state_change switch_io_event_hook_state_change_t
typedef switch_io_event_hook_resurrect_session switch_io_event_hook_resurrect_session_t
typedef switch_status_t(* switch_outgoing_channel_hook_t )(switch_core_session_t *, switch_event_t *, switch_caller_profile_t *, switch_core_session_t *, switch_originate_flag_t)
typedef switch_status_t(* switch_receive_message_hook_t )(switch_core_session_t *, switch_core_session_message_t *)
typedef switch_status_t(* switch_receive_event_hook_t )(switch_core_session_t *, switch_event_t *)
typedef switch_status_t(* switch_read_frame_hook_t )(switch_core_session_t *, switch_frame_t **, switch_io_flag_t, int)
typedef switch_status_t(* switch_video_read_frame_hook_t )(switch_core_session_t *, switch_frame_t **, switch_io_flag_t, int)
typedef switch_status_t(* switch_write_frame_hook_t )(switch_core_session_t *, switch_frame_t *, switch_io_flag_t, int)
typedef switch_status_t(* switch_video_write_frame_hook_t )(switch_core_session_t *, switch_frame_t *, switch_io_flag_t, int)
typedef switch_status_t(* switch_kill_channel_hook_t )(switch_core_session_t *, int)
typedef switch_status_t(* switch_send_dtmf_hook_t )(switch_core_session_t *, const switch_dtmf_t *, switch_dtmf_direction_t direction)
typedef switch_status_t(* switch_recv_dtmf_hook_t )(switch_core_session_t *, const switch_dtmf_t *, switch_dtmf_direction_t direction)
typedef switch_status_t(* switch_state_change_hook_t )(switch_core_session_t *)
typedef switch_call_cause_t(* switch_resurrect_session_hook_t )(switch_core_session_t **, switch_memory_pool_t **, void *)

Functions

switch_io_event_hooks_t switch_core_session_get_event_hooks (switch_core_session_t *session)
switch_status_t switch_core_event_hook_add_outgoing_channel (switch_core_session_t *session, switch_outgoing_channel_hook_t outgoing_channel)
switch_status_t switch_core_event_hook_add_receive_message (switch_core_session_t *session, switch_receive_message_hook_t receive_message)
switch_status_t switch_core_event_hook_add_receive_event (switch_core_session_t *session, switch_receive_event_hook_t receive_event)
switch_status_t switch_core_event_hook_add_state_change (switch_core_session_t *session, switch_state_change_hook_t state_change)
switch_status_t switch_core_event_hook_add_read_frame (switch_core_session_t *session, switch_read_frame_hook_t read_frame)
switch_status_t switch_core_event_hook_add_write_frame (switch_core_session_t *session, switch_write_frame_hook_t write_frame)
switch_status_t switch_core_event_hook_add_video_read_frame (switch_core_session_t *session, switch_video_read_frame_hook_t video_read_frame)
switch_status_t switch_core_event_hook_add_video_write_frame (switch_core_session_t *session, switch_video_write_frame_hook_t video_write_frame)
switch_status_t switch_core_event_hook_add_kill_channel (switch_core_session_t *session, switch_kill_channel_hook_t kill_channel)
switch_status_t switch_core_event_hook_add_send_dtmf (switch_core_session_t *session, switch_send_dtmf_hook_t send_dtmf)
switch_status_t switch_core_event_hook_add_recv_dtmf (switch_core_session_t *session, switch_recv_dtmf_hook_t recv_dtmf)
switch_status_t switch_core_event_hook_add_resurrect_session (switch_core_session_t *session, switch_resurrect_session_hook_t resurrect_session)
switch_status_t switch_core_event_hook_remove_outgoing_channel (switch_core_session_t *session, switch_outgoing_channel_hook_t outgoing_channel)
switch_status_t switch_core_event_hook_remove_receive_message (switch_core_session_t *session, switch_receive_message_hook_t receive_message)
switch_status_t switch_core_event_hook_remove_receive_event (switch_core_session_t *session, switch_receive_event_hook_t receive_event)
switch_status_t switch_core_event_hook_remove_state_change (switch_core_session_t *session, switch_state_change_hook_t state_change)
switch_status_t switch_core_event_hook_remove_read_frame (switch_core_session_t *session, switch_read_frame_hook_t read_frame)
switch_status_t switch_core_event_hook_remove_write_frame (switch_core_session_t *session, switch_write_frame_hook_t write_frame)
switch_status_t switch_core_event_hook_remove_video_read_frame (switch_core_session_t *session, switch_video_read_frame_hook_t video_read_frame)
switch_status_t switch_core_event_hook_remove_video_write_frame (switch_core_session_t *session, switch_video_write_frame_hook_t video_write_frame)
switch_status_t switch_core_event_hook_remove_kill_channel (switch_core_session_t *session, switch_kill_channel_hook_t kill_channel)
switch_status_t switch_core_event_hook_remove_send_dtmf (switch_core_session_t *session, switch_send_dtmf_hook_t send_dtmf)
switch_status_t switch_core_event_hook_remove_recv_dtmf (switch_core_session_t *session, switch_recv_dtmf_hook_t recv_dtmf)
switch_status_t switch_core_event_hook_remove_resurrect_session (switch_core_session_t *session, switch_resurrect_session_hook_t resurrect_session)

Variables

typedefSWITCH_BEGIN_EXTERN_C
struct switch_io_event_hooks 
switch_io_event_hooks_t


Define Documentation

#define NEW_HOOK_DECL _NAME   ) 
 

#define NEW_HOOK_DECL_ADD_P _NAME   ) 
 

Value:

SWITCH_DECLARE(switch_status_t) switch_core_event_hook_add_##_NAME \
                                                                                                                           (switch_core_session_t *session, switch_##_NAME##_hook_t _NAME)

#define NEW_HOOK_DECL_REM_P _NAME   ) 
 

Value:

SWITCH_DECLARE(switch_status_t) switch_core_event_hook_remove_##_NAME \
                                                                                                                                   (switch_core_session_t *session, switch_##_NAME##_hook_t _NAME)


Typedef Documentation

typedef struct switch_io_event_hook_kill_channel switch_io_event_hook_kill_channel_t
 

typedef struct switch_io_event_hook_outgoing_channel switch_io_event_hook_outgoing_channel_t
 

typedef struct switch_io_event_hook_read_frame switch_io_event_hook_read_frame_t
 

typedef struct switch_io_event_hook_receive_event switch_io_event_hook_receive_event_t
 

typedef struct switch_io_event_hook_receive_message switch_io_event_hook_receive_message_t
 

typedef struct switch_io_event_hook_recv_dtmf switch_io_event_hook_recv_dtmf_t
 

typedef struct switch_io_event_hook_resurrect_session switch_io_event_hook_resurrect_session_t
 

typedef struct switch_io_event_hook_send_dtmf switch_io_event_hook_send_dtmf_t
 

typedef struct switch_io_event_hook_state_change switch_io_event_hook_state_change_t
 

typedef struct switch_io_event_hook_video_read_frame switch_io_event_hook_video_read_frame_t
 

typedef struct switch_io_event_hook_video_write_frame switch_io_event_hook_video_write_frame_t
 

typedef struct switch_io_event_hook_write_frame switch_io_event_hook_write_frame_t
 

typedef switch_status_t(* switch_kill_channel_hook_t)(switch_core_session_t *, int)
 

typedef switch_status_t(* switch_outgoing_channel_hook_t)(switch_core_session_t *, switch_event_t *, switch_caller_profile_t *, switch_core_session_t *, switch_originate_flag_t)
 

typedef switch_status_t(* switch_read_frame_hook_t)(switch_core_session_t *, switch_frame_t **, switch_io_flag_t, int)
 

typedef switch_status_t(* switch_receive_event_hook_t)(switch_core_session_t *, switch_event_t *)
 

typedef switch_status_t(* switch_receive_message_hook_t)(switch_core_session_t *, switch_core_session_message_t *)
 

typedef switch_status_t(* switch_recv_dtmf_hook_t)(switch_core_session_t *, const switch_dtmf_t *, switch_dtmf_direction_t direction)
 

typedef switch_call_cause_t(* switch_resurrect_session_hook_t)(switch_core_session_t **, switch_memory_pool_t **, void *)
 

typedef switch_status_t(* switch_send_dtmf_hook_t)(switch_core_session_t *, const switch_dtmf_t *, switch_dtmf_direction_t direction)
 

typedef switch_status_t(* switch_state_change_hook_t)(switch_core_session_t *)
 

typedef switch_status_t(* switch_video_read_frame_hook_t)(switch_core_session_t *, switch_frame_t **, switch_io_flag_t, int)
 

typedef switch_status_t(* switch_video_write_frame_hook_t)(switch_core_session_t *, switch_frame_t *, switch_io_flag_t, int)
 

typedef switch_status_t(* switch_write_frame_hook_t)(switch_core_session_t *, switch_frame_t *, switch_io_flag_t, int)
 


Function Documentation

switch_status_t switch_core_event_hook_add_kill_channel switch_core_session_t session,
switch_kill_channel_hook_t  kill_channel
 

switch_status_t switch_core_event_hook_add_outgoing_channel switch_core_session_t session,
switch_outgoing_channel_hook_t  outgoing_channel
 

switch_status_t switch_core_event_hook_add_read_frame switch_core_session_t session,
switch_read_frame_hook_t  read_frame
 

switch_status_t switch_core_event_hook_add_receive_event switch_core_session_t session,
switch_receive_event_hook_t  receive_event
 

switch_status_t switch_core_event_hook_add_receive_message switch_core_session_t session,
switch_receive_message_hook_t  receive_message
 

switch_status_t switch_core_event_hook_add_recv_dtmf switch_core_session_t session,
switch_recv_dtmf_hook_t  recv_dtmf
 

switch_status_t switch_core_event_hook_add_resurrect_session switch_core_session_t session,
switch_resurrect_session_hook_t  resurrect_session
 

switch_status_t switch_core_event_hook_add_send_dtmf switch_core_session_t session,
switch_send_dtmf_hook_t  send_dtmf
 

switch_status_t switch_core_event_hook_add_state_change switch_core_session_t session,
switch_state_change_hook_t  state_change
 

switch_status_t switch_core_event_hook_add_video_read_frame switch_core_session_t session,
switch_video_read_frame_hook_t  video_read_frame
 

switch_status_t switch_core_event_hook_add_video_write_frame switch_core_session_t session,
switch_video_write_frame_hook_t  video_write_frame
 

switch_status_t switch_core_event_hook_add_write_frame switch_core_session_t session,
switch_write_frame_hook_t  write_frame
 

switch_status_t switch_core_event_hook_remove_kill_channel switch_core_session_t session,
switch_kill_channel_hook_t  kill_channel
 

switch_status_t switch_core_event_hook_remove_outgoing_channel switch_core_session_t session,
switch_outgoing_channel_hook_t  outgoing_channel
 

switch_status_t switch_core_event_hook_remove_read_frame switch_core_session_t session,
switch_read_frame_hook_t  read_frame
 

switch_status_t switch_core_event_hook_remove_receive_event switch_core_session_t session,
switch_receive_event_hook_t  receive_event
 

switch_status_t switch_core_event_hook_remove_receive_message switch_core_session_t session,
switch_receive_message_hook_t  receive_message
 

switch_status_t switch_core_event_hook_remove_recv_dtmf switch_core_session_t session,
switch_recv_dtmf_hook_t  recv_dtmf
 

switch_status_t switch_core_event_hook_remove_resurrect_session switch_core_session_t session,
switch_resurrect_session_hook_t  resurrect_session
 

switch_status_t switch_core_event_hook_remove_send_dtmf switch_core_session_t session,
switch_send_dtmf_hook_t  send_dtmf
 

switch_status_t switch_core_event_hook_remove_state_change switch_core_session_t session,
switch_state_change_hook_t  state_change
 

switch_status_t switch_core_event_hook_remove_video_read_frame switch_core_session_t session,
switch_video_read_frame_hook_t  video_read_frame
 

switch_status_t switch_core_event_hook_remove_video_write_frame switch_core_session_t session,
switch_video_write_frame_hook_t  video_write_frame
 

switch_status_t switch_core_event_hook_remove_write_frame switch_core_session_t session,
switch_write_frame_hook_t  write_frame
 

switch_io_event_hooks_t switch_core_session_get_event_hooks switch_core_session_t session  ) 
 


Variable Documentation

typedefSWITCH_BEGIN_EXTERN_C struct switch_io_event_hooks switch_io_event_hooks_t
 


Generated on Mon May 26 22:06:51 2008 for FreeSWITCH by  doxygen 1.3.9.1