git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@902 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-03-22 21:08:23 +00:00
parent f27b9f5b9f
commit 13e4af650e
1 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@
#include <osip2/osip_mt.h> #include <osip2/osip_mt.h>
#include <osip_rfc3264.h> #include <osip_rfc3264.h>
#include <osipparser2/osip_port.h> #include <osipparser2/osip_port.h>
#define ENABLE_TRACE
static const char modname[] = "mod_exosip"; static const char modname[] = "mod_exosip";
#define STRLEN 15 #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 */ /* 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) { if (switch_core_new_memory_pool(&module_pool) != SWITCH_STATUS_SUCCESS) {
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "OH OH no pool\n"); switch_console_printf(SWITCH_CHANNEL_CONSOLE, "OH OH no pool\n");
return SWITCH_STATUS_TERM; return SWITCH_STATUS_TERM;
@ -1555,6 +1553,10 @@ SWITCH_MOD_DECLARE(switch_status) switch_module_runtime(void)
config_exosip(0); config_exosip(0);
if (globals.debug) {
osip_trace_initialize(globals.debug, stdout);
}
if (eXosip_init()) { if (eXosip_init()) {
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "eXosip_init initialization failed!\n"); switch_console_printf(SWITCH_CHANNEL_CONSOLE, "eXosip_init initialization failed!\n");
return SWITCH_STATUS_TERM; return SWITCH_STATUS_TERM;