mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-05 11:51:52 +00:00
implement flushEvents() flushDigits() setAutoHangup() and setHangupHook(). reworked dtmfhandler and some aspects relating to threadstate. folded in memory pool thing from mishehu. added more asserts to switch_core_file (coordinated w/ anthony on this)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5442 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -14,12 +14,10 @@ extern "C" {
|
||||
|
||||
|
||||
|
||||
switch_status_t PythonDTMFCallback(switch_core_session *session,
|
||||
void *input,
|
||||
switch_input_type_t itype,
|
||||
void *buf,
|
||||
unsigned int buflen);
|
||||
|
||||
typedef enum {
|
||||
S_SWAPPED_IN = (1 << 0),
|
||||
S_SWAPPED_OUT = (1 << 1)
|
||||
} swap_state_t;
|
||||
|
||||
void console_log(char *level_str, char *msg);
|
||||
void console_clean_log(char *msg);
|
||||
@@ -29,14 +27,21 @@ void api_reply_delete(char *reply);
|
||||
class PySession : public CoreSession {
|
||||
private:
|
||||
void *threadState;
|
||||
int swapstate;
|
||||
public:
|
||||
PySession();
|
||||
PySession(char *uuid);
|
||||
PySession(switch_core_session_t *session);
|
||||
~PySession();
|
||||
void setDTMFCallback(PyObject *pyfunc, char *funcargs);
|
||||
void begin_allow_threads();
|
||||
void end_allow_threads();
|
||||
void setHangupHook(PyObject *pyfunc);
|
||||
void check_hangup_hook();
|
||||
void hangup(char *cause);
|
||||
bool begin_allow_threads();
|
||||
bool end_allow_threads();
|
||||
|
||||
switch_status_t run_dtmf_callback(void *input,
|
||||
switch_input_type_t itype);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user