2007-06-15 20:37:28 +00:00
|
|
|
# This file was automatically generated by SWIG (http://www.swig.org).
|
|
|
|
# Version 1.3.31
|
|
|
|
#
|
2006-09-10 23:20:44 +00:00
|
|
|
# Don't modify this file, modify the SWIG interface instead.
|
2006-12-23 16:40:37 +00:00
|
|
|
# This file is compatible with both classic and new-style classes.
|
2006-09-10 23:20:44 +00:00
|
|
|
|
|
|
|
import _freeswitch
|
2007-06-01 18:50:34 +00:00
|
|
|
import new
|
|
|
|
new_instancemethod = new.instancemethod
|
2007-06-15 20:37:28 +00:00
|
|
|
try:
|
|
|
|
_swig_property = property
|
|
|
|
except NameError:
|
|
|
|
pass # Python < 2.2 doesn't have 'property'.
|
2007-06-01 18:50:34 +00:00
|
|
|
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
|
|
|
|
if (name == "thisown"): return self.this.own(value)
|
2006-09-10 23:20:44 +00:00
|
|
|
if (name == "this"):
|
2007-06-01 18:50:34 +00:00
|
|
|
if type(value).__name__ == 'PySwigObject':
|
|
|
|
self.__dict__[name] = value
|
2006-09-10 23:20:44 +00:00
|
|
|
return
|
|
|
|
method = class_type.__swig_setmethods__.get(name,None)
|
|
|
|
if method: return method(self,value)
|
2007-06-01 18:50:34 +00:00
|
|
|
if (not static) or hasattr(self,name):
|
|
|
|
self.__dict__[name] = value
|
|
|
|
else:
|
|
|
|
raise AttributeError("You cannot add attributes to %s" % self)
|
|
|
|
|
|
|
|
def _swig_setattr(self,class_type,name,value):
|
|
|
|
return _swig_setattr_nondynamic(self,class_type,name,value,0)
|
2006-09-10 23:20:44 +00:00
|
|
|
|
|
|
|
def _swig_getattr(self,class_type,name):
|
2007-06-01 18:50:34 +00:00
|
|
|
if (name == "thisown"): return self.this.own()
|
2006-09-10 23:20:44 +00:00
|
|
|
method = class_type.__swig_getmethods__.get(name,None)
|
|
|
|
if method: return method(self)
|
|
|
|
raise AttributeError,name
|
|
|
|
|
2007-06-01 18:50:34 +00:00
|
|
|
def _swig_repr(self):
|
|
|
|
try: strthis = "proxy of " + self.this.__repr__()
|
|
|
|
except: strthis = ""
|
|
|
|
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
|
|
|
|
2006-09-10 23:20:44 +00:00
|
|
|
import types
|
|
|
|
try:
|
|
|
|
_object = types.ObjectType
|
|
|
|
_newclass = 1
|
|
|
|
except AttributeError:
|
|
|
|
class _object : pass
|
|
|
|
_newclass = 0
|
|
|
|
del types
|
|
|
|
|
|
|
|
|
2007-05-07 21:27:42 +00:00
|
|
|
console_log = _freeswitch.console_log
|
|
|
|
console_clean_log = _freeswitch.console_clean_log
|
2007-05-07 21:49:11 +00:00
|
|
|
api_execute = _freeswitch.api_execute
|
|
|
|
api_reply_delete = _freeswitch.api_reply_delete
|
2007-06-01 18:50:34 +00:00
|
|
|
process_callback_result = _freeswitch.process_callback_result
|
2007-06-20 08:56:34 +00:00
|
|
|
class input_callback_state_t(_object):
|
2007-06-15 17:25:41 +00:00
|
|
|
__swig_setmethods__ = {}
|
2007-06-20 08:56:34 +00:00
|
|
|
__setattr__ = lambda self, name, value: _swig_setattr(self, input_callback_state_t, name, value)
|
2007-06-15 17:25:41 +00:00
|
|
|
__swig_getmethods__ = {}
|
2007-06-20 08:56:34 +00:00
|
|
|
__getattr__ = lambda self, name: _swig_getattr(self, input_callback_state_t, name)
|
2007-06-15 17:25:41 +00:00
|
|
|
__repr__ = _swig_repr
|
2007-06-20 08:56:34 +00:00
|
|
|
__swig_setmethods__["function"] = _freeswitch.input_callback_state_t_function_set
|
|
|
|
__swig_getmethods__["function"] = _freeswitch.input_callback_state_t_function_get
|
|
|
|
if _newclass:function = _swig_property(_freeswitch.input_callback_state_t_function_get, _freeswitch.input_callback_state_t_function_set)
|
|
|
|
__swig_setmethods__["threadState"] = _freeswitch.input_callback_state_t_threadState_set
|
|
|
|
__swig_getmethods__["threadState"] = _freeswitch.input_callback_state_t_threadState_get
|
|
|
|
if _newclass:threadState = _swig_property(_freeswitch.input_callback_state_t_threadState_get, _freeswitch.input_callback_state_t_threadState_set)
|
|
|
|
__swig_setmethods__["extra"] = _freeswitch.input_callback_state_t_extra_set
|
|
|
|
__swig_getmethods__["extra"] = _freeswitch.input_callback_state_t_extra_get
|
|
|
|
if _newclass:extra = _swig_property(_freeswitch.input_callback_state_t_extra_get, _freeswitch.input_callback_state_t_extra_set)
|
|
|
|
__swig_setmethods__["funcargs"] = _freeswitch.input_callback_state_t_funcargs_set
|
|
|
|
__swig_getmethods__["funcargs"] = _freeswitch.input_callback_state_t_funcargs_get
|
|
|
|
if _newclass:funcargs = _swig_property(_freeswitch.input_callback_state_t_funcargs_get, _freeswitch.input_callback_state_t_funcargs_set)
|
2007-06-15 17:25:41 +00:00
|
|
|
def __init__(self, *args):
|
2007-06-20 08:56:34 +00:00
|
|
|
this = _freeswitch.new_input_callback_state_t(*args)
|
2007-06-15 17:25:41 +00:00
|
|
|
try: self.this.append(this)
|
|
|
|
except: self.this = this
|
2007-06-20 08:56:34 +00:00
|
|
|
__swig_destroy__ = _freeswitch.delete_input_callback_state_t
|
2007-06-15 17:25:41 +00:00
|
|
|
__del__ = lambda self : None;
|
2007-06-20 08:56:34 +00:00
|
|
|
input_callback_state_t_swigregister = _freeswitch.input_callback_state_t_swigregister
|
|
|
|
input_callback_state_t_swigregister(input_callback_state_t)
|
2007-06-15 17:25:41 +00:00
|
|
|
|
2007-06-01 18:50:34 +00:00
|
|
|
class CoreSession(_object):
|
|
|
|
__swig_setmethods__ = {}
|
|
|
|
__setattr__ = lambda self, name, value: _swig_setattr(self, CoreSession, name, value)
|
|
|
|
__swig_getmethods__ = {}
|
|
|
|
__getattr__ = lambda self, name: _swig_getattr(self, CoreSession, name)
|
|
|
|
__repr__ = _swig_repr
|
|
|
|
def __init__(self, *args):
|
|
|
|
this = _freeswitch.new_CoreSession(*args)
|
|
|
|
try: self.this.append(this)
|
|
|
|
except: self.this = this
|
|
|
|
__swig_destroy__ = _freeswitch.delete_CoreSession
|
|
|
|
__del__ = lambda self : None;
|
|
|
|
__swig_setmethods__["session"] = _freeswitch.CoreSession_session_set
|
|
|
|
__swig_getmethods__["session"] = _freeswitch.CoreSession_session_get
|
2007-06-15 20:37:28 +00:00
|
|
|
if _newclass:session = _swig_property(_freeswitch.CoreSession_session_get, _freeswitch.CoreSession_session_set)
|
2007-06-01 18:50:34 +00:00
|
|
|
__swig_setmethods__["channel"] = _freeswitch.CoreSession_channel_set
|
|
|
|
__swig_getmethods__["channel"] = _freeswitch.CoreSession_channel_get
|
2007-06-15 20:37:28 +00:00
|
|
|
if _newclass:channel = _swig_property(_freeswitch.CoreSession_channel_get, _freeswitch.CoreSession_channel_set)
|
2007-06-15 17:25:41 +00:00
|
|
|
__swig_setmethods__["cb_state"] = _freeswitch.CoreSession_cb_state_set
|
|
|
|
__swig_getmethods__["cb_state"] = _freeswitch.CoreSession_cb_state_get
|
2007-06-15 20:37:28 +00:00
|
|
|
if _newclass:cb_state = _swig_property(_freeswitch.CoreSession_cb_state_get, _freeswitch.CoreSession_cb_state_set)
|
2007-06-01 18:50:34 +00:00
|
|
|
def answer(*args): return _freeswitch.CoreSession_answer(*args)
|
|
|
|
def preAnswer(*args): return _freeswitch.CoreSession_preAnswer(*args)
|
|
|
|
def hangup(*args): return _freeswitch.CoreSession_hangup(*args)
|
|
|
|
def setVariable(*args): return _freeswitch.CoreSession_setVariable(*args)
|
|
|
|
def getVariable(*args): return _freeswitch.CoreSession_getVariable(*args)
|
2007-06-20 08:56:34 +00:00
|
|
|
def setCallerData(*args): return _freeswitch.CoreSession_setCallerData(*args)
|
|
|
|
def originate(*args): return _freeswitch.CoreSession_originate(*args)
|
2007-06-01 18:50:34 +00:00
|
|
|
def playFile(*args): return _freeswitch.CoreSession_playFile(*args)
|
|
|
|
def setDTMFCallback(*args): return _freeswitch.CoreSession_setDTMFCallback(*args)
|
2007-06-15 17:25:41 +00:00
|
|
|
def speak(*args): return _freeswitch.CoreSession_speak(*args)
|
2007-06-01 18:50:34 +00:00
|
|
|
def set_tts_parms(*args): return _freeswitch.CoreSession_set_tts_parms(*args)
|
|
|
|
def getDigits(*args): return _freeswitch.CoreSession_getDigits(*args)
|
|
|
|
def transfer(*args): return _freeswitch.CoreSession_transfer(*args)
|
|
|
|
def playAndGetDigits(*args): return _freeswitch.CoreSession_playAndGetDigits(*args)
|
|
|
|
def streamfile(*args): return _freeswitch.CoreSession_streamfile(*args)
|
2007-06-15 17:25:41 +00:00
|
|
|
def ready(*args): return _freeswitch.CoreSession_ready(*args)
|
2007-06-01 18:50:34 +00:00
|
|
|
def execute(*args): return _freeswitch.CoreSession_execute(*args)
|
|
|
|
def begin_allow_threads(*args): return _freeswitch.CoreSession_begin_allow_threads(*args)
|
|
|
|
def end_allow_threads(*args): return _freeswitch.CoreSession_end_allow_threads(*args)
|
2007-06-20 08:56:34 +00:00
|
|
|
def get_uuid(*args): return _freeswitch.CoreSession_get_uuid(*args)
|
|
|
|
def get_cb_args(*args): return _freeswitch.CoreSession_get_cb_args(*args)
|
2007-06-01 18:50:34 +00:00
|
|
|
CoreSession_swigregister = _freeswitch.CoreSession_swigregister
|
|
|
|
CoreSession_swigregister(CoreSession)
|
|
|
|
|
2007-06-20 08:56:34 +00:00
|
|
|
bridge = _freeswitch.bridge
|
2007-06-01 18:50:34 +00:00
|
|
|
PythonDTMFCallback = _freeswitch.PythonDTMFCallback
|
|
|
|
class PySession(CoreSession):
|
2006-12-21 17:11:43 +00:00
|
|
|
__swig_setmethods__ = {}
|
2007-06-15 20:37:28 +00:00
|
|
|
for _s in [CoreSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
|
2007-06-01 18:50:34 +00:00
|
|
|
__setattr__ = lambda self, name, value: _swig_setattr(self, PySession, name, value)
|
2006-12-21 17:11:43 +00:00
|
|
|
__swig_getmethods__ = {}
|
2007-06-15 20:37:28 +00:00
|
|
|
for _s in [CoreSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
|
2007-06-01 18:50:34 +00:00
|
|
|
__getattr__ = lambda self, name: _swig_getattr(self, PySession, name)
|
|
|
|
__repr__ = _swig_repr
|
|
|
|
def __init__(self, *args):
|
|
|
|
this = _freeswitch.new_PySession(*args)
|
|
|
|
try: self.this.append(this)
|
|
|
|
except: self.this = this
|
|
|
|
__swig_destroy__ = _freeswitch.delete_PySession
|
|
|
|
__del__ = lambda self : None;
|
2007-06-15 17:25:41 +00:00
|
|
|
def setDTMFCallback(*args): return _freeswitch.PySession_setDTMFCallback(*args)
|
2007-06-01 18:50:34 +00:00
|
|
|
def begin_allow_threads(*args): return _freeswitch.PySession_begin_allow_threads(*args)
|
|
|
|
def end_allow_threads(*args): return _freeswitch.PySession_end_allow_threads(*args)
|
|
|
|
PySession_swigregister = _freeswitch.PySession_swigregister
|
|
|
|
PySession_swigregister(PySession)
|
2006-12-21 17:11:43 +00:00
|
|
|
|
2006-11-09 05:34:42 +00:00
|
|
|
|
2006-09-10 23:20:44 +00:00
|
|
|
|