]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
pass ring_ready like we do with pre_answer
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 26 Oct 2010 16:52:28 +0000 (11:52 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 26 Oct 2010 16:52:28 +0000 (11:52 -0500)
src/mod/endpoints/mod_loopback/mod_loopback.c

index 1733557e0a89b8c2753c0a856d531d51ef777703..07f6d74dcf465bb33049e941417a44bd654b5c64 100644 (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);