]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 22 Mar 2006 21:08:23 +0000 (21:08 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 22 Mar 2006 21:08:23 +0000 (21:08 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@902 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_exosip/mod_exosip.c

index cd8f1856cc1bde1b0c4af9ad7572e01c1b4f8189..e1e4cb32b9309095243acf1d1d042acf24ecaac8 100644 (file)
@@ -37,7 +37,7 @@
 #include <osip2/osip_mt.h>
 #include <osip_rfc3264.h>
 #include <osipparser2/osip_port.h>
-#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;