[Freeswitch-svn] [commit] r11288 - freeswitch/trunk/src/mod/endpoints/mod_loopback

FreeSWITCH SVN anthm at freeswitch.org
Mon Jan 19 10:39:44 PST 2009


Author: anthm
Date: Mon Jan 19 12:39:44 2009
New Revision: 11288

Log:
fix backwards call in mod_loopback

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c	Mon Jan 19 12:39:44 2009
@@ -248,7 +248,7 @@
 		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 @@
 	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;



More information about the Freeswitch-svn mailing list