Merge pull request #160 from lazedo/kazoo-hostname

[mod_kazoo] missing call to kz_set_hostname
This commit is contained in:
Andrey Volk 2019-12-04 02:19:42 +04:00 committed by GitHub
commit 4de6afc9d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,7 @@ switch_status_t kazoo_ei_config(switch_xml_t cfg) {
kazoo_globals.receive_msg_preallocate = 2000;
kazoo_globals.event_stream_preallocate = KZ_DEFAULT_STREAM_PRE_ALLOCATE;
kazoo_globals.send_msg_batch = 10;
kazoo_globals.event_stream_framing = 4;
kazoo_globals.event_stream_framing = 2;
kazoo_globals.port = 0;
kazoo_globals.io_fault_tolerance = 10;
kazoo_globals.json_encoding = ERLANG_TUPLE;

View File

@ -42,6 +42,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_kazoo_load) {
memset(&kazoo_globals, 0, sizeof(kazoo_globals));
kazoo_globals.pool = pool;
kz_set_hostname();
if(kazoo_load_config() != SWITCH_STATUS_SUCCESS) {
// TODO: what would we need to clean up here?
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Improper configuration!\n");