mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
add park_state
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6771 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -719,6 +719,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
|
||||
switch_input_args_t *args);
|
||||
SWITCH_DECLARE(void) switch_ivr_delay_echo(switch_core_session_t *session, uint32_t delay_ms);
|
||||
SWITCH_DECLARE(void) switch_ivr_intercept_session(switch_core_session_t *session, const char *uuid);
|
||||
SWITCH_DECLARE(void) switch_ivr_park_session(switch_core_session_t *session);
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
@@ -53,6 +53,7 @@ typedef enum {
|
||||
SWITCH_SHN_ON_HANGUP,
|
||||
SWITCH_SHN_ON_LOOPBACK,
|
||||
SWITCH_SHN_ON_TRANSMIT,
|
||||
SWITCH_SHN_ON_PARK,
|
||||
SWITCH_SHN_ON_HOLD,
|
||||
SWITCH_SHN_ON_HIBERNATE,
|
||||
SWITCH_SHN_ON_RESET
|
||||
@@ -71,6 +72,8 @@ struct switch_state_handler_table {
|
||||
switch_state_handler_t on_loopback;
|
||||
/*! executed when the state changes to transmit */
|
||||
switch_state_handler_t on_transmit;
|
||||
/*! executed when the state changes to park */
|
||||
switch_state_handler_t on_park;
|
||||
/*! executed when the state changes to hold */
|
||||
switch_state_handler_t on_hold;
|
||||
/*! executed when the state changes to hibernate */
|
||||
|
||||
@@ -560,6 +560,7 @@ CS_RING - Channel is looking for a dialplan
|
||||
CS_TRANSMIT - Channel is in a passive transmit state
|
||||
CS_EXECUTE - Channel is executing it's dialplan
|
||||
CS_LOOPBACK - Channel is in loopback
|
||||
CS_PARK - Channel is parked
|
||||
CS_HOLD - Channel is on hold
|
||||
CS_HIBERNATE - Channel is in a sleep state
|
||||
CS_RESET - Channel is in a reset state
|
||||
@@ -574,6 +575,7 @@ typedef enum {
|
||||
CS_TRANSMIT,
|
||||
CS_EXECUTE,
|
||||
CS_LOOPBACK,
|
||||
CS_PARK,
|
||||
CS_HOLD,
|
||||
CS_HIBERNATE,
|
||||
CS_RESET,
|
||||
|
||||
Reference in New Issue
Block a user