FreeSWITCH API Documentation  1.7.0
Functions
State Handlers
+ Collaboration diagram for State Handlers:

Functions

int switch_core_add_state_handler (_In_ const switch_state_handler_table_t *state_handler)
 Add a global state handler. More...
 
void switch_core_remove_state_handler (_In_ const switch_state_handler_table_t *state_handler)
 Remove a global state handler. More...
 
const
switch_state_handler_table_t
switch_core_get_state_handler (_In_ int index)
 Access a state handler. More...
 

Detailed Description

Function Documentation

int switch_core_add_state_handler ( _In_ const switch_state_handler_table_t state_handler)

Add a global state handler.

Parameters
state_handlera state handler to add
Returns
the current index/priority of this handler
const switch_state_handler_table_t* switch_core_get_state_handler ( _In_ int  index)

Access a state handler.

Parameters
indexthe desired index to access
Returns
the desired state handler table or NULL when it does not exist.
void switch_core_remove_state_handler ( _In_ const switch_state_handler_table_t state_handler)

Remove a global state handler.

Parameters
state_handlerthe state handler to remove