mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-05 20:01:55 +00:00
merge fix for MODLANG-33 and MODLANG-34.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5374 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -26,26 +26,17 @@ void console_clean_log(char *msg);
|
||||
char *api_execute(char *cmd, char *arg);
|
||||
void api_reply_delete(char *reply);
|
||||
|
||||
struct input_callback_state {
|
||||
PyObject *function;
|
||||
PyThreadState *threadState;
|
||||
void *extra;
|
||||
char *funcargs;
|
||||
};
|
||||
|
||||
class PySession : public CoreSession {
|
||||
private:
|
||||
PyObject *dtmfCallbackFunction;
|
||||
PyThreadState *threadState;
|
||||
void *threadState;
|
||||
public:
|
||||
PySession(char *uuid) : CoreSession(uuid) {};
|
||||
PySession(switch_core_session_t *session) : CoreSession(session) {};
|
||||
~PySession();
|
||||
int streamfile(char *file, PyObject *pyfunc, char *funcargs, int starting_sample_count);
|
||||
void begin_allow_threads();
|
||||
void end_allow_threads();
|
||||
PySession(char *uuid) : CoreSession(uuid) {}
|
||||
PySession(switch_core_session_t *session) : CoreSession(session) {}
|
||||
~PySession();
|
||||
void setDTMFCallback(PyObject *pyfunc, char *funcargs);
|
||||
void begin_allow_threads();
|
||||
void end_allow_threads();
|
||||
|
||||
protected:
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user