提交 f57d0a84 authored 作者: Andy Newlands's avatar Andy Newlands 提交者: Mike Jerris

FS-9412 [switch_loadable_module.c] Make MODULE_UNLOAD event report module name…

FS-9412 [switch_loadable_module.c] Make MODULE_UNLOAD event report module name (key) and file (filename), similar to event MODULE_LOAD

Add key and filename for symetry with SWITCH_EVENT_MODULE_LOAD, for api_interface, and to make it simpler to know which module is unloaded

FS-9412 #resolve
上级 c1939fe7
...@@ -1124,6 +1124,8 @@ static switch_status_t switch_loadable_module_unprocess(switch_loadable_module_t ...@@ -1124,6 +1124,8 @@ static switch_status_t switch_loadable_module_unprocess(switch_loadable_module_t
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "name", ptr->interface_name); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "name", ptr->interface_name);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "description", switch_str_nil(ptr->desc)); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "description", switch_str_nil(ptr->desc));
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "syntax", switch_str_nil(ptr->syntax)); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "syntax", switch_str_nil(ptr->syntax));
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "key", old_module->key);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "filename", old_module->filename);
switch_event_fire(&event); switch_event_fire(&event);
removed++; removed++;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论