]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make sure recovering calls start with re-invite instead of invite handler
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 22 Aug 2012 20:51:35 +0000 (15:51 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 22 Aug 2012 21:27:07 +0000 (16:27 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 54221aef31604a51854caee994c390ad710defe2..dbf1dc5bb7d56b227ab9dfc5e9105f8e5ba7ec2e 100644 (file)
@@ -2506,6 +2506,10 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
                sofia_private->is_call++;
                sofia_private->is_static++;
 
+               if (sofia_test_flag(tech_pvt, TFLAG_RECOVERING)) {
+                       sofia_private->is_call++;
+               }
+
                tech_pvt->sofia_private = sofia_private;
                switch_copy_string(tech_pvt->sofia_private->uuid, switch_core_session_get_uuid(session), sizeof(tech_pvt->sofia_private->uuid));
                nua_handle_bind(tech_pvt->nh, tech_pvt->sofia_private);