]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add workaround back in
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 2 Apr 2009 19:57:03 +0000 (19:57 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 2 Apr 2009 19:57:03 +0000 (19:57 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12895 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index b1900e5111f75bf0692050c6f97bd9d2d61730f7..dcbc93c5dd3c3c883f73f9ee8e4e27486dff78dc 100644 (file)
@@ -2636,6 +2636,11 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
                        }
                }
 
+        /* dirty hack to avoid race condition in the library */
+        if (status == 200 || status == 183) {
+            switch_yield(100);// printf("Avoiding Segfault!!!\n");
+        }
+
                if (switch_channel_test_flag(channel, CF_PROXY_MODE) || switch_channel_test_flag(channel, CF_PROXY_MEDIA)) {
 
                        if (!sofia_test_flag(tech_pvt, TFLAG_SENT_UPDATE)) {