Merge pull request #1044 in FS/freeswitch from ~PERRO/freeswitch:feature/FS-9412 to master
* commit 'd243c166f1826fbb4297a2a1e5be9de9f1dc572a': FS-9412 [switch_loadable_module.c] Make MODULE_UNLOAD event report module name (key) and file (filename), similar to event MODULE_LOAD
This commit is contained in:
commit
175ad35bb0
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue