]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix backwards call in mod_loopback
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 19 Jan 2009 18:39:44 +0000 (18:39 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 19 Jan 2009 18:39:44 +0000 (18:39 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11288 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_loopback/mod_loopback.c

index 9dbdaac4fec3bc6366dfc77d067ef2d1b1058b8e..639f6a1ae2ac35f6023ba8cef3d55ee0652f7a40 100644 (file)
@@ -248,7 +248,7 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
                switch_set_flag_locked(tech_pvt, TFLAG_LINKED);
                switch_set_flag_locked(b_tech_pvt, TFLAG_LINKED);
                switch_set_flag_locked(b_tech_pvt, TFLAG_OUTBOUND);
-       
+               
                switch_channel_set_flag(channel, CF_ACCEPT_CNG);        
                //switch_ivr_transfer_variable(session, tech_pvt->other_session, "process_cdr");
                switch_ivr_transfer_variable(session, tech_pvt->other_session, NULL);
@@ -610,14 +610,14 @@ static switch_status_t channel_receive_message(switch_core_session_t *session, s
        case SWITCH_MESSAGE_INDICATE_ANSWER:
                if (tech_pvt->other_channel) {
                        if (switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) {
-                               switch_channel_answer(tech_pvt->other_channel);
+                               switch_channel_mark_answered(tech_pvt->other_channel);
                        }
                }
                break;
        case SWITCH_MESSAGE_INDICATE_PROGRESS:
                if (tech_pvt->other_channel) {
                        if (switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) {
-                               switch_channel_pre_answer(tech_pvt->other_channel);
+                               switch_channel_mark_pre_answered(tech_pvt->other_channel);
                        }
                }
                break;