mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
improve bridge code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1251 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -253,6 +253,13 @@ SWITCH_DECLARE(switch_status) switch_channel_pre_answer(switch_channel *channel)
|
||||
*/
|
||||
SWITCH_DECLARE(int) switch_channel_add_state_handler(switch_channel *channel, const switch_state_handler_table *state_handler);
|
||||
|
||||
/*!
|
||||
\brief clear a state handler table from a given channel
|
||||
\param channel channel from which to clear the state handler table
|
||||
\param state_handler table of state handler functions
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_channel_clear_state_handler(switch_channel *channel, const switch_state_handler_table *state_handler);
|
||||
|
||||
/*!
|
||||
\brief Retrieve an state handler tablefrom a given channel at given index level
|
||||
\param channel channel from which to retrieve the state handler table
|
||||
|
||||
@@ -323,7 +323,8 @@ CF_OUTBOUND = (1 << 1) - Channel is an outbound channel
|
||||
CF_EARLY_MEDIA = (1 << 2) - Channel is ready for audio before answer
|
||||
CF_ORIGINATOR = (1 << 3) - Channel is an originator
|
||||
CF_TRANSFER = (1 << 4) - Channel is being transfered
|
||||
CF_ACCEPT_CNG = (1 << 5) - Channel will accept CNG frames
|
||||
CF_ACCEPT_CNG = (1 << 5) - Channel will accept CNG frames
|
||||
CF_LOCK_THREAD = (1 << 6) - Prevent the channel thread from exiting while this flag is set
|
||||
</pre>
|
||||
*/
|
||||
|
||||
@@ -333,7 +334,8 @@ typedef enum {
|
||||
CF_EARLY_MEDIA = (1 << 2),
|
||||
CF_ORIGINATOR = (1 << 3),
|
||||
CF_TRANSFER = (1 << 4),
|
||||
CF_ACCEPT_CNG = (1 << 5)
|
||||
CF_ACCEPT_CNG = (1 << 5),
|
||||
CF_LOCK_THREAD = (1 << 6)
|
||||
} switch_channel_flag;
|
||||
|
||||
|
||||
@@ -357,11 +359,14 @@ typedef enum {
|
||||
\brief Signals to send to channels
|
||||
<pre>
|
||||
SWITCH_SIG_KILL - Kill the channel
|
||||
SWITCH_SIG_XFER - Stop the current io but leave it viable
|
||||
</pre>
|
||||
*/
|
||||
|
||||
typedef enum {
|
||||
SWITCH_SIG_KILL
|
||||
SWITCH_SIG_NONE,
|
||||
SWITCH_SIG_KILL,
|
||||
SWITCH_SIG_XFER
|
||||
} switch_signal;
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user