mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-10 06:11:53 +00:00
merge changes to mod_python from jkr888 branch. Thanks Johny.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3781 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# This file was created automatically by SWIG.
|
||||
# This file was created automatically by SWIG 1.3.27.
|
||||
# Don't modify this file, modify the SWIG interface instead.
|
||||
# This file is compatible with both classic and new-style classes.
|
||||
|
||||
import _freeswitch
|
||||
|
||||
def _swig_setattr(self,class_type,name,value):
|
||||
# This file is compatible with both classic and new-style classes.
|
||||
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
|
||||
if (name == "this"):
|
||||
if isinstance(value, class_type):
|
||||
self.__dict__[name] = value.this
|
||||
@@ -13,7 +13,13 @@ def _swig_setattr(self,class_type,name,value):
|
||||
return
|
||||
method = class_type.__swig_setmethods__.get(name,None)
|
||||
if method: return method(self,value)
|
||||
self.__dict__[name] = value
|
||||
if (not static) or hasattr(self,name) or (name == "thisown"):
|
||||
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)
|
||||
|
||||
def _swig_getattr(self,class_type,name):
|
||||
method = class_type.__swig_getmethods__.get(name,None)
|
||||
@@ -31,55 +37,45 @@ del types
|
||||
|
||||
|
||||
|
||||
fs_core_set_globals = _freeswitch.fs_core_set_globals
|
||||
PythonDTMFCallback = _freeswitch.PythonDTMFCallback
|
||||
class SessionContainer(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SessionContainer, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SessionContainer, name)
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ SessionContainer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args):
|
||||
_swig_setattr(self, SessionContainer, 'this', _freeswitch.new_SessionContainer(*args))
|
||||
_swig_setattr(self, SessionContainer, 'thisown', 1)
|
||||
def __del__(self, destroy=_freeswitch.delete_SessionContainer):
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
fs_core_init = _freeswitch.fs_core_init
|
||||
def console_log(*args): return _freeswitch.SessionContainer_console_log(*args)
|
||||
def console_clean_log(*args): return _freeswitch.SessionContainer_console_clean_log(*args)
|
||||
def answer(*args): return _freeswitch.SessionContainer_answer(*args)
|
||||
def pre_answer(*args): return _freeswitch.SessionContainer_pre_answer(*args)
|
||||
def hangup(*args): return _freeswitch.SessionContainer_hangup(*args)
|
||||
def set_variable(*args): return _freeswitch.SessionContainer_set_variable(*args)
|
||||
def get_variable(*args): return _freeswitch.SessionContainer_get_variable(*args)
|
||||
def set_state(*args): return _freeswitch.SessionContainer_set_state(*args)
|
||||
def play_file(*args): return _freeswitch.SessionContainer_play_file(*args)
|
||||
def set_dtmf_callback(*args): return _freeswitch.SessionContainer_set_dtmf_callback(*args)
|
||||
def speak_text(*args): return _freeswitch.SessionContainer_speak_text(*args)
|
||||
def set_tts_parms(*args): return _freeswitch.SessionContainer_set_tts_parms(*args)
|
||||
def get_digits(*args): return _freeswitch.SessionContainer_get_digits(*args)
|
||||
def transfer(*args): return _freeswitch.SessionContainer_transfer(*args)
|
||||
def play_and_get_digits(*args): return _freeswitch.SessionContainer_play_and_get_digits(*args)
|
||||
|
||||
fs_core_destroy = _freeswitch.fs_core_destroy
|
||||
class SessionContainerPtr(SessionContainer):
|
||||
def __init__(self, this):
|
||||
_swig_setattr(self, SessionContainer, 'this', this)
|
||||
if not hasattr(self,"thisown"): _swig_setattr(self, SessionContainer, 'thisown', 0)
|
||||
self.__class__ = SessionContainer
|
||||
_freeswitch.SessionContainer_swigregister(SessionContainerPtr)
|
||||
cvar = _freeswitch.cvar
|
||||
|
||||
fs_loadable_module_init = _freeswitch.fs_loadable_module_init
|
||||
|
||||
fs_loadable_module_shutdown = _freeswitch.fs_loadable_module_shutdown
|
||||
|
||||
fs_console_loop = _freeswitch.fs_console_loop
|
||||
|
||||
fs_consol_log = _freeswitch.fs_consol_log
|
||||
|
||||
fs_consol_clean = _freeswitch.fs_consol_clean
|
||||
|
||||
fs_core_session_locate = _freeswitch.fs_core_session_locate
|
||||
|
||||
fs_channel_answer = _freeswitch.fs_channel_answer
|
||||
|
||||
fs_channel_pre_answer = _freeswitch.fs_channel_pre_answer
|
||||
|
||||
fs_channel_hangup = _freeswitch.fs_channel_hangup
|
||||
|
||||
fs_channel_set_variable = _freeswitch.fs_channel_set_variable
|
||||
|
||||
fs_channel_get_variable = _freeswitch.fs_channel_get_variable
|
||||
|
||||
fs_channel_set_state = _freeswitch.fs_channel_set_state
|
||||
|
||||
fs_ivr_play_file = _freeswitch.fs_ivr_play_file
|
||||
|
||||
fs_switch_ivr_record_file = _freeswitch.fs_switch_ivr_record_file
|
||||
|
||||
fs_switch_ivr_sleep = _freeswitch.fs_switch_ivr_sleep
|
||||
|
||||
fs_ivr_play_file2 = _freeswitch.fs_ivr_play_file2
|
||||
|
||||
fs_switch_ivr_collect_digits_callback = _freeswitch.fs_switch_ivr_collect_digits_callback
|
||||
|
||||
fs_switch_ivr_collect_digits_count = _freeswitch.fs_switch_ivr_collect_digits_count
|
||||
|
||||
fs_switch_ivr_originate = _freeswitch.fs_switch_ivr_originate
|
||||
|
||||
fs_switch_ivr_session_transfer = _freeswitch.fs_switch_ivr_session_transfer
|
||||
|
||||
fs_switch_ivr_speak_text = _freeswitch.fs_switch_ivr_speak_text
|
||||
|
||||
fs_switch_channel_get_variable = _freeswitch.fs_switch_channel_get_variable
|
||||
|
||||
fs_switch_channel_set_variable = _freeswitch.fs_switch_channel_set_variable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user