]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4079 new patch, please test
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 13 Aug 2012 18:48:06 +0000 (13:48 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 13 Aug 2012 18:48:06 +0000 (13:48 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 08f06866255373e1a0fd343a9174662b7df3e1f4..17abe773e977af9c870c25997630dbd3c82c0e44 100644 (file)
@@ -969,6 +969,7 @@ static void our_sofia_event_callback(nua_event_t event,
        int locked = 0;
        int check_destroy = 1;
 
+#if 0
        if (sofia_private && sofia_private->is_call && sofia_private->de) {
                sofia_dispatch_event_t *qde = sofia_private->de;
                sofia_private->de = NULL;
@@ -980,6 +981,7 @@ static void our_sofia_event_callback(nua_event_t event,
                        sofia_process_dispatch_event(&qde);
                }
        }
+#endif
 
        profile->last_sip_event = switch_time_now();
 
@@ -1704,8 +1706,9 @@ void sofia_event_callback(nua_event_t event,
                memset(sofia_private, 0, sizeof(*sofia_private));
                sofia_private->is_call++;
                sofia_private->is_static++;
-               sofia_private->de = de;
+               //sofia_private->de = de;
                nua_handle_bind(nh, sofia_private);
+               sofia_process_dispatch_event(&de);
                return;
        }