mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
change CS_DONE to CS_DESTROY and add state handler for destroy and tear down critical parts of the channel from this method which is not called until it's impossible for anything to be referencing the channel (after final write lock and before destroying the pool)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12986 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -56,7 +56,8 @@ typedef enum {
|
||||
SWITCH_SHN_ON_HIBERNATE,
|
||||
SWITCH_SHN_ON_RESET,
|
||||
SWITCH_SHN_ON_PARK,
|
||||
SWITCH_SHN_ON_REPORTING
|
||||
SWITCH_SHN_ON_REPORTING,
|
||||
SWITCH_SHN_ON_DESTROY
|
||||
} switch_state_handler_name_t;
|
||||
|
||||
struct switch_state_handler_table {
|
||||
@@ -82,6 +83,8 @@ struct switch_state_handler_table {
|
||||
switch_state_handler_t on_park;
|
||||
/*! executed when the state changes to reporting */
|
||||
switch_state_handler_t on_reporting;
|
||||
/*! executed when the state changes to destroy */
|
||||
switch_state_handler_t on_destroy;
|
||||
void *padding[10];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user