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

Freeswitch SVN anthm at freeswitch.org
Wed Oct 25 14:49:35 EDT 2006


Author: anthm
Date: Wed Oct 25 14:49:34 2006
New Revision: 3205

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	Wed Oct 25 14:49:34 2006
@@ -1283,7 +1283,6 @@
 
 
 	if (switch_test_flag(tech_pvt, TFLAG_BYE)) {
-		//terminate_session(&session,  __LINE__, SWITCH_CAUSE_NORMAL_CLEARING);
 		return SWITCH_STATUS_FALSE;
 	}
 
@@ -1299,6 +1298,7 @@
 	samples = frames * tech_pvt->read_codec.implementation->samples_per_frame;
 
 	if (switch_rtp_write_frame(tech_pvt->rtp_session, frame, samples) < 0) {
+		terminate_session(&session,  __LINE__, SWITCH_CAUSE_NORMAL_CLEARING);
 		return SWITCH_STATUS_FALSE;
 	}
 	tech_pvt->timestamp_send += (int) samples;



More information about the Freeswitch-svn mailing list