[Freeswitch-svn] [commit] r5011 - freeswitch/trunk/src/mod/endpoints/mod_dingaling

Freeswitch SVN anthm at freeswitch.org
Tue Apr 24 10:23:07 EDT 2007


Author: anthm
Date: Tue Apr 24 10:23:06 2007
New Revision: 5011

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

Log:
update

Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c	Tue Apr 24 10:23:06 2007
@@ -1497,6 +1497,10 @@
 	tech_pvt = switch_core_session_get_private(session);
 	assert(tech_pvt != NULL);
 
+	if (!switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) {
+		switch_set_flag_locked(tech_pvt, TFLAG_ANSWER);
+	}
+
 	return SWITCH_STATUS_SUCCESS;
 }
 
@@ -2619,7 +2623,7 @@
 				tech_pvt->codec_index = -1;
 				tech_pvt->profile = profile;
 				tech_pvt->local_port = switch_rtp_request_port();
-				switch_set_flag_locked(tech_pvt, TFLAG_ANSWER);
+				//switch_set_flag_locked(tech_pvt, TFLAG_ANSWER);
 				tech_pvt->recip = switch_core_session_strdup(session, from);
 				if (!(exten = ldl_session_get_value(dlsession, "dnis"))) {
 					exten = profile->exten;



More information about the Freeswitch-svn mailing list