Merge pull request #160 from lazedo/kazoo-hostname
[mod_kazoo] missing call to kz_set_hostname
This commit is contained in:
commit
4de6afc9d6
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue