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

Freeswitch SVN anthm at freeswitch.org
Mon Sep 22 16:50:14 EDT 2008


Author: anthm
Date: Mon Sep 22 16:50:13 2008
New Revision: 9618

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

Log:
Avoiding Segfault

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Mon Sep 22 16:50:13 2008
@@ -2024,6 +2024,11 @@
 			}
 		}
 
+		/* dirty hack to avoid race condition in the library */
+		if (status == 200 || status == 183) {
+			switch_yield(1);// printf("Avoiding Segfault!!!\n");
+		}
+
 		if (switch_channel_test_flag(channel, CF_PROXY_MODE) || switch_channel_test_flag(channel, CF_PROXY_MEDIA)) {
 
 			if (!switch_test_flag(tech_pvt, TFLAG_SENT_UPDATE)) {



More information about the Freeswitch-svn mailing list