]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4621 --resolve everyone will want this patch omfg
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 18 Sep 2012 01:02:14 +0000 (20:02 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 18 Sep 2012 01:02:14 +0000 (20:02 -0500)
src/mod/endpoints/mod_sofia/sofia.c
src/mod/endpoints/mod_sofia/sofia_glue.c

index 0f3d478f696191a9ad368e5e02967a81ff57a5e6..d1cdb2068cb8473650c2dd658b9eb3d8460f0bfc 100644 (file)
@@ -1210,7 +1210,7 @@ static void our_sofia_event_callback(nua_event_t event,
                break;
        case nua_i_invite:
                if (session && sofia_private) {
-                       if (sofia_private->is_call > 1) {
+                       if (sofia_private->is_call > 1 || switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
                                sofia_handle_sip_i_reinvite(session, nua, profile, nh, sofia_private, sip, de, tags);
                        } else {
                                sofia_private->is_call++;
index 464af9410b145d1602752b8713c6ad6f9a6ffce3..4c0ae8de1fd32e23476557a041c3632b9ea65c62 100644 (file)
@@ -2526,7 +2526,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
                }
 
                memset(sofia_private, 0, sizeof(*sofia_private));
-               sofia_private->is_call++;
+               sofia_private->is_call = 2;
                sofia_private->is_static++;
 
                if (switch_channel_test_flag(tech_pvt->channel, CF_RECOVERING)) {