提交 636519ba authored 作者: Traun Leyden's avatar Traun Leyden

reswig against 8241 and fix bugs with changed number of args to playAndGetDigits…

reswig against 8241 and fix bugs with changed number of args to playAndGetDigits (note: exising scripts will need to be fixed to pass ONE less argument - see wiki for new syntax).  also, comment out hangup hook handler that was causing seg fault, that needs to be redone.  registering hangup hooks inscripts will no longer have any effect.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8244 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 7718ccc1
# This file was automatically generated by SWIG (http://www.swig.org). # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.35 # Version 1.3.31
# #
# Don't modify this file, modify the SWIG interface instead. # Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes. # This file is compatible with both classic and new-style classes.
...@@ -152,7 +152,7 @@ class CoreSession(_object): ...@@ -152,7 +152,7 @@ class CoreSession(_object):
__setattr__ = lambda self, name, value: _swig_setattr(self, CoreSession, name, value) __setattr__ = lambda self, name, value: _swig_setattr(self, CoreSession, name, value)
__swig_getmethods__ = {} __swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CoreSession, name) __getattr__ = lambda self, name: _swig_getattr(self, CoreSession, name)
def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr __repr__ = _swig_repr
__swig_destroy__ = _freeswitch.delete_CoreSession __swig_destroy__ = _freeswitch.delete_CoreSession
__del__ = lambda self : None; __del__ = lambda self : None;
...@@ -215,8 +215,6 @@ hanguphook = _freeswitch.hanguphook ...@@ -215,8 +215,6 @@ hanguphook = _freeswitch.hanguphook
dtmf_callback = _freeswitch.dtmf_callback dtmf_callback = _freeswitch.dtmf_callback
S_SWAPPED_IN = _freeswitch.S_SWAPPED_IN S_SWAPPED_IN = _freeswitch.S_SWAPPED_IN
S_SWAPPED_OUT = _freeswitch.S_SWAPPED_OUT S_SWAPPED_OUT = _freeswitch.S_SWAPPED_OUT
api_execute = _freeswitch.api_execute
api_reply_delete = _freeswitch.api_reply_delete
class PySession(CoreSession): class PySession(CoreSession):
__swig_setmethods__ = {} __swig_setmethods__ = {}
for _s in [CoreSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) for _s in [CoreSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
......
...@@ -55,13 +55,17 @@ void PySession::check_hangup_hook() { ...@@ -55,13 +55,17 @@ void PySession::check_hangup_hook() {
char *resultStr; char *resultStr;
bool did_swap_in = false; bool did_swap_in = false;
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "check_hangup_hook called\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "check_hangup_hook has been DISABLED, please do not use hangup hooks in python code until further notice!\n");
if (!session) { if (!session) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "No valid session\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "No valid session\n");
return; return;
} }
return;
/*! NEEDS TO BE FIXED:
// The did_swap_in boolean was added to fix the following problem: // The did_swap_in boolean was added to fix the following problem:
// Design flaw - we swap in threadstate based on the assumption that thread state // Design flaw - we swap in threadstate based on the assumption that thread state
// is currently _swapped out_ when this hangup hook is called. However, nothing known to // is currently _swapped out_ when this hangup hook is called. However, nothing known to
...@@ -101,7 +105,7 @@ void PySession::check_hangup_hook() { ...@@ -101,7 +105,7 @@ void PySession::check_hangup_hook() {
} }
Py_XDECREF(result); Py_XDECREF(result);
*/
} }
switch_status_t PySession::run_dtmf_callback(void *input, switch_status_t PySession::run_dtmf_callback(void *input,
......
...@@ -21,8 +21,6 @@ typedef enum { ...@@ -21,8 +21,6 @@ typedef enum {
void console_log(char *level_str, char *msg); void console_log(char *level_str, char *msg);
void console_clean_log(char *msg); void console_clean_log(char *msg);
char *api_execute(char *cmd, char *arg);
void api_reply_delete(char *reply);
class PySession : public CoreSession { class PySession : public CoreSession {
private: private:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论