From: Anthony Minessale Date: Wed, 28 Jul 2010 19:18:49 +0000 (-0500) Subject: only do this when we are a SCA call X-Git-Tag: v1.2-rc1~526^2~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d328478949ec67baf97457f6b1d3d02d015a39b;p=thirdparty%2Ffreeswitch.git only do this when we are a SCA call --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index e4736690b7..ae1e78698f 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -6593,10 +6593,10 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_ int do_conf = 0; const char *c_app = NULL; const char *c_data = NULL; - + uuid = switch_core_session_strdup(b_session, uuid); - if ((c_session = switch_core_session_locate(uuid))) { + if (call_info && (c_session = switch_core_session_locate(uuid))) { switch_channel_t *c_channel = switch_core_session_get_channel(c_session); private_object_t *c_tech_pvt = NULL;