[Freeswitch-svn] [commit] r10434 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN brian at freeswitch.org
Mon Nov 17 17:23:48 PST 2008


Author: brian
Date: Mon Nov 17 20:23:48 2008
New Revision: 10434

Log:
update

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

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Mon Nov 17 20:23:48 2008
@@ -451,10 +451,15 @@
 			
 			/* Unlock the session signal to allow the ack to make it in */
 			// Maybe we should timeout?
+			switch_mutex_unlock(tech_pvt->sofia_mutex);
 			
 			while(switch_channel_ready(channel) && !switch_test_flag(tech_pvt, TFLAG_3PCC_HAS_ACK)) {
 				switch_cond_next();
 			}
+			
+			/*  Regain lock on sofia */
+			switch_mutex_lock(tech_pvt->sofia_mutex);
+			
 			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "3PCC-PROXY, Done waiting for ACK\n");
 		}
 



More information about the Freeswitch-svn mailing list