pass ring_ready like we do with pre_answer

This commit is contained in:
Anthony Minessale 2010-10-26 11:52:28 -05:00
parent 1f0b951019
commit 9d087d457e
1 changed files with 5 additions and 0 deletions

View File

@ -736,6 +736,11 @@ static switch_status_t channel_receive_message(switch_core_session_t *session, s
switch_channel_mark_pre_answered(tech_pvt->other_channel);
}
break;
case SWITCH_MESSAGE_INDICATE_RINGING:
if (tech_pvt->other_channel && !switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) {
switch_channel_mark_ring_ready(tech_pvt->other_channel);
}
break;
case SWITCH_MESSAGE_INDICATE_BRIDGE:
{
switch_set_flag_locked(tech_pvt, TFLAG_BRIDGE);