]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
only do this when we are a SCA call
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 28 Jul 2010 19:18:49 +0000 (14:18 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 28 Jul 2010 19:18:49 +0000 (14:18 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index e4736690b730d352f549b153ca34259177510f7c..ae1e78698f33c5c48bea54174c29cae1428947cc 100644 (file)
@@ -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;