From 13e4af650e11d764fe3725694ffb20ca96f46463 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 22 Mar 2006 21:08:23 +0000 Subject: [PATCH] tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@902 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_exosip/mod_exosip.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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;