From: Anthony Minessale Date: Wed, 22 Aug 2012 20:51:35 +0000 (-0500) Subject: make sure recovering calls start with re-invite instead of invite handler X-Git-Tag: v1.2.3^2~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8aaca1cef3228f3acdf276f55112f1df88b4e518;p=thirdparty%2Ffreeswitch.git make sure recovering calls start with re-invite instead of invite handler --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 54221aef31..dbf1dc5bb7 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -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);