[Freeswitch-svn] [commit] r9126 -	freeswitch/trunk/src/mod/endpoints/mod_sofia
    Freeswitch SVN 
    anthm at freeswitch.org
       
    Mon Jul 21 14:42:12 EDT 2008
    
    
  
Author: anthm
Date: Mon Jul 21 14:42:11 2008
New Revision: 9126
Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
Log:
fix profile restart issue
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	Mon Jul 21 14:42:11 2008
@@ -2642,7 +2642,11 @@
 		}
 
 		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);
    
    
More information about the Freeswitch-svn
mailing list