git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8125 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-04-18 15:39:49 +00:00
parent c4357b4246
commit 56f6d7f17a

View File

@ -583,7 +583,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_signal_bridge(switch_core_session_t *
switch_channel_t *peer_channel = switch_core_session_get_channel(peer_session); switch_channel_t *peer_channel = switch_core_session_get_channel(peer_session);
switch_event_t *event; switch_event_t *event;
if (!switch_channel_ready(peer_channel)) { if (switch_channel_get_state(peer_channel) >= CS_HANGUP) {
switch_channel_hangup(caller_channel, switch_channel_get_cause(peer_channel)); switch_channel_hangup(caller_channel, switch_channel_get_cause(peer_channel));
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
} }