mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
fix a bunch of stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7854 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
|
||||
static const switch_state_handler_table_t originate_state_handlers;
|
||||
|
||||
static switch_status_t originate_on_hold(switch_core_session_t *session)
|
||||
static switch_status_t originate_on_hold_transmit(switch_core_session_t *session)
|
||||
{
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
|
||||
@@ -42,7 +42,6 @@ static switch_status_t originate_on_hold(switch_core_session_t *session)
|
||||
switch_ivr_sleep(session, 10);
|
||||
}
|
||||
|
||||
/* clear this handler so it only works once (next time (a.k.a. Transfer) we will do the real ring and hold states) */
|
||||
switch_channel_clear_state_handler(channel, &originate_state_handlers);
|
||||
|
||||
return SWITCH_STATUS_FALSE;
|
||||
@@ -64,8 +63,8 @@ static const switch_state_handler_table_t originate_state_handlers = {
|
||||
/*.on_execute */ NULL,
|
||||
/*.on_hangup */ NULL,
|
||||
/*.on_loopback */ NULL,
|
||||
/*.on_transmit */ NULL,
|
||||
/*.on_hold */ originate_on_hold
|
||||
/*.on_transmit */ originate_on_hold_transmit,
|
||||
/*.on_hold */ originate_on_hold_transmit
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
@@ -113,6 +112,7 @@ static void *SWITCH_THREAD_FUNC collect_thread_run(switch_thread_t * thread, voi
|
||||
goto wbreak;
|
||||
}
|
||||
|
||||
switch_channel_set_state(channel, CS_TRANSMIT);
|
||||
switch_core_session_exec(collect->session, application_interface, app_data);
|
||||
|
||||
if (switch_channel_get_state(channel) < CS_HANGUP) {
|
||||
|
Reference in New Issue
Block a user