]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix profile restart issue
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 21 Jul 2008 18:42:11 +0000 (18:42 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 21 Jul 2008 18:42:11 +0000 (18:42 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9126 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 38bd7da8dfc66b48bf948cfa6ec1b68e3656cbfb..88f51e742e9287736d66054f83da3e417439a586 100644 (file)
@@ -2642,7 +2642,11 @@ void sofia_glue_del_profile(sofia_profile_t *profile)
                }
 
                for (gp = profile->gateways; gp; gp = gp->next) {
-                       sofia_glue_del_gateway(gp);
+                       switch_core_hash_delete(mod_sofia_globals.gateway_hash, gp->name);
+                       switch_core_hash_delete(mod_sofia_globals.gateway_hash, gp->register_from);
+                       switch_core_hash_delete(mod_sofia_globals.gateway_hash, gp->register_contact);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "deleted gateway %s\n", gp->name);
+                       profile->gateways = NULL;
                }
        }
        switch_mutex_unlock(mod_sofia_globals.hash_mutex);