[Freeswitch-trunk] [commit] r12535 - freeswitch/trunk/src

FreeSWITCH SVN brian at freeswitch.org
Mon Mar 9 09:36:57 PDT 2009


Author: brian
Date: Mon Mar  9 11:36:56 2009
New Revision: 12535

Log:
 fix MODENDP-196

Modified:
   freeswitch/trunk/src/switch_loadable_module.c

Modified: freeswitch/trunk/src/switch_loadable_module.c
==============================================================================
--- freeswitch/trunk/src/switch_loadable_module.c	(original)
+++ freeswitch/trunk/src/switch_loadable_module.c	Mon Mar  9 11:36:56 2009
@@ -433,6 +433,11 @@
                 }
 
 				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Deleting Endpoint '%s'\n", ptr->interface_name);
+				if (switch_event_create(&event, SWITCH_EVENT_MODULE_UNLOAD) == SWITCH_STATUS_SUCCESS) {
+					switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "type", "endpoint");
+					switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "name", ptr->interface_name);
+					switch_event_fire(&event);
+				}
 				switch_core_hash_delete(loadable_modules.endpoint_hash, ptr->interface_name);
 			}
 		}



More information about the Freeswitch-trunk mailing list