OBJS=src/esl.o src/esl_event.o src/esl_threadmutex.o src/esl_config.o
SRC=src/esl.c src/esl_event.c src/esl_threadmutex.c src/esl_config.c src/esl_oop.cpp
HEADERS=src/include/esl_config.h src/include/esl_event.h src/include/esl.h src/include/esl_threadmutex.h src/include/esl_oop.h
-//SOLINK=-shared -Xlinker -x
-SOLINK=-dynamiclib -Xlinker -x
+SOLINK=-shared -Xlinker -x
# comment the next line to disable c++ (no swig mods for you then)
OBJS += src/esl_oop.o
LOCAL_CFLAGS=-I/usr/include/python2.4
-LOCAL_LDFLAGS=-framework python
-#LOCAL_LDFLAGS=-lpython2.4
+LOCAL_LDFLAGS=-lpython2.4
all: _ESL.so
/* Python.h has to appear first */
-//#include <Python.h>
-#include <Python/Python.h>
+#include <Python.h>
/* -----------------------------------------------------------------------------
* swigrun.swg
}
if (say_cb) {
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Using es callback [tosay: %s, type: %d, method: %d]\n", tosay, type, method);
return say_cb(session, tosay, type, method, args);
}
if ((si = switch_loadable_module_get_say_interface(module_name))) {
/* should go back and proto all the say mods to const.... */
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Using SAY Interface %s\n", module_name);
status = si->say_function(session, (char *) tosay, switch_ivr_get_say_type_by_name(say_type), switch_ivr_get_say_method_by_name(say_method), args);
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid SAY Interface [%s]!\n", module_name);