]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11998: [Core] Fix improper json_api module unload
authorAndrey Volk <andywolk@gmail.com>
Mon, 12 Aug 2019 17:00:20 +0000 (21:00 +0400)
committerAndrey Volk <andywolk@gmail.com>
Mon, 12 Aug 2019 17:00:20 +0000 (21:00 +0400)
src/switch_loadable_module.c

index f0aadae139a02c9903c995d65cd82857992910f3..fcacf28dc903ca63d15b470e8e2b2b89c168cacc 100644 (file)
@@ -1360,7 +1360,7 @@ static switch_status_t switch_loadable_module_unprocess(switch_loadable_module_t
 
 
                                if (switch_event_create(&event, SWITCH_EVENT_MODULE_UNLOAD) == SWITCH_STATUS_SUCCESS) {
-                                       switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "type", "api");
+                                       switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "type", "json_api");
                                        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, "syntax", switch_str_nil(ptr->syntax));