From: Anthony Minessale Date: Tue, 26 Oct 2010 16:52:28 +0000 (-0500) Subject: pass ring_ready like we do with pre_answer X-Git-Tag: v1.2-rc1~265^2~11^2~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d087d457efb756c886ef779fa49df19d9fb07fa;p=thirdparty%2Ffreeswitch.git pass ring_ready like we do with pre_answer --- diff --git a/src/mod/endpoints/mod_loopback/mod_loopback.c b/src/mod/endpoints/mod_loopback/mod_loopback.c index 1733557e0a..07f6d74dcf 100644 --- a/src/mod/endpoints/mod_loopback/mod_loopback.c +++ b/src/mod/endpoints/mod_loopback/mod_loopback.c @@ -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);