diff --git a/src/mod/endpoints/mod_exosip/mod_exosip.c b/src/mod/endpoints/mod_exosip/mod_exosip.c index cd8f1856cc..e1e4cb32b9 100644 --- a/src/mod/endpoints/mod_exosip/mod_exosip.c +++ b/src/mod/endpoints/mod_exosip/mod_exosip.c @@ -37,7 +37,7 @@ #include #include #include -#define ENABLE_TRACE + static const char modname[] = "mod_exosip"; #define STRLEN 15 @@ -953,8 +953,6 @@ SWITCH_MOD_DECLARE(switch_status) switch_module_load(const switch_loadable_modul /* NOTE: **interface is **_interface because the common lib redefines interface to struct in some situations */ - osip_trace_initialize(10, stdout); - if (switch_core_new_memory_pool(&module_pool) != SWITCH_STATUS_SUCCESS) { switch_console_printf(SWITCH_CHANNEL_CONSOLE, "OH OH no pool\n"); return SWITCH_STATUS_TERM; @@ -1555,6 +1553,10 @@ SWITCH_MOD_DECLARE(switch_status) switch_module_runtime(void) config_exosip(0); + if (globals.debug) { + osip_trace_initialize(globals.debug, stdout); + } + if (eXosip_init()) { switch_console_printf(SWITCH_CHANNEL_CONSOLE, "eXosip_init initialization failed!\n"); return SWITCH_STATUS_TERM;