mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-12 10:07:26 +00:00
Merge pull request #2834 from signalwire/swig41
[Build-system] Use swig 4.1
This commit is contained in:
commit
8d52772732
@ -5,7 +5,7 @@ CLASSES=org/freeswitch/esl/*
|
||||
all: esl.jar
|
||||
|
||||
esl_wrap.cpp:
|
||||
swig3.0 -module esl -java -c++ $(LOCAL_CFLAGS) -package org.freeswitch.esl -outdir org/freeswitch/esl -o esl_wrap.cpp ../ESL.i
|
||||
swig -module esl -java -c++ $(LOCAL_CFLAGS) -package org.freeswitch.esl -outdir org/freeswitch/esl -o esl_wrap.cpp ../ESL.i
|
||||
|
||||
esl_wrap.o: esl_wrap.cpp
|
||||
$(CXX) $(CXX_CFLAGS) $(LOCAL_CFLAGS) $(CXXFLAGS) $(GCC_WARNING_JUNK) $(PERL_INC) -c esl_wrap.cpp -o esl_wrap.o
|
||||
|
@ -5,7 +5,7 @@ WRAP_GCC_WARNING_SILENCE=-Wno-unused-function
|
||||
all: ESL.so
|
||||
|
||||
esl_wrap.cpp:
|
||||
swig3.0 -module ESL -lua -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
swig -module ESL -lua -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
|
||||
esl_wrap.o: esl_wrap.cpp
|
||||
$(CXX) $(CXX_CFLAGS) $(LUA_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) $(WRAP_GCC_WARNING_SILENCE) -c esl_wrap.cpp -o esl_wrap.o
|
||||
|
@ -5,7 +5,7 @@ WRAP_GCC_WARNING_SILENCE=-Wno-unused-function
|
||||
all: ESL.so
|
||||
|
||||
esl_wrap.cpp:
|
||||
swig3.0 -module ESL -csharp -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
swig -module ESL -csharp -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
|
||||
esl_wrap.o: esl_wrap.cpp
|
||||
$(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) $(WRAP_GCC_WARNING_SILENCE) -c esl_wrap.cpp -o esl_wrap.o
|
||||
|
@ -21,7 +21,7 @@ endif
|
||||
$(MAKE) -C ..
|
||||
|
||||
esl_wrap.cpp:
|
||||
swig3.0 -module ESL -shadow -perl5 -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
swig -module ESL -shadow -perl5 -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
|
||||
perlxsi.c:
|
||||
$(PERL) -MExtUtils::Embed -e xsinit -- -o perlxsi.c
|
||||
|
@ -3,7 +3,7 @@ WRAP_GCC_WARNING_SILENCE=-Wno-unused-label -Wno-unused-function
|
||||
all: ESL.so
|
||||
|
||||
esl_wrap.cpp:
|
||||
swig3.0 -module ESL -php7 -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
swig -module ESL -php7 -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
sed -e 's/ char \*type_name;/ const char \*type_name;/' -i esl_wrap.cpp
|
||||
|
||||
esl_wrap.o: esl_wrap.cpp
|
||||
|
@ -5,7 +5,7 @@ SITE_DIR=$(DESTDIR)/`$(PYTHON3) -c "from distutils.sysconfig import get_python_l
|
||||
all: _ESL.so
|
||||
|
||||
esl_wrap.cpp:
|
||||
swig3.0 -module ESL -classic -python -c++ -DMULTIPLICITY -threads -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
swig -module ESL -classic -python -c++ -DMULTIPLICITY -threads -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
|
||||
esl_wrap.o: esl_wrap.cpp
|
||||
$(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) -c esl_wrap.cpp -o esl_wrap.o
|
||||
|
@ -6,7 +6,7 @@ RUBY_GEM_DIR=$(shell $(RUBY) -e 'puts RbConfig::CONFIG["rubylibdir"]')
|
||||
all: ESL.so
|
||||
|
||||
esl_wrap.cpp:
|
||||
swig3.0 -module ESL -ruby -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
swig -module ESL -ruby -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
|
||||
esl_wrap.o: esl_wrap.cpp
|
||||
$(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) -c esl_wrap.cpp -o esl_wrap.o
|
||||
|
@ -5,7 +5,7 @@ WRAP_GCC_WARNING_SILENCE=-Wno-unused-function
|
||||
all: ESL.so
|
||||
|
||||
esl_wrap.cpp:
|
||||
swig3.0 -module ESL -tcl -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
swig -module ESL -tcl -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||
|
||||
esl_wrap.o: esl_wrap.cpp
|
||||
$(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) $(WRAP_GCC_WARNING_SILENCE) -c esl_wrap.cpp -o esl_wrap.o
|
||||
|
@ -28,7 +28,7 @@ freeswitch.jar: classes
|
||||
|
||||
reswig:
|
||||
rm -f switch_swig_wrap.cpp
|
||||
swig3.0 -java -c++ -I../../../include -package org.freeswitch.swig -outdir src/org/freeswitch/swig -o switch_swig_wrap.cpp mod_java.i
|
||||
swig -java -c++ -I../../../include -package org.freeswitch.swig -outdir src/org/freeswitch/swig -o switch_swig_wrap.cpp mod_java.i
|
||||
|
||||
install-data-local:
|
||||
cp freeswitch.jar $(DESTDIR)@scriptdir@
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -21,6 +21,19 @@ public class API {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(API obj) {
|
||||
long ptr = 0;
|
||||
if (obj != null) {
|
||||
if (!obj.swigCMemOwn)
|
||||
throw new RuntimeException("Cannot release ownership as memory is not owned");
|
||||
ptr = obj.swigCPtr;
|
||||
obj.swigCMemOwn = false;
|
||||
obj.delete();
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -21,6 +21,19 @@ public class CoreSession {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(CoreSession obj) {
|
||||
long ptr = 0;
|
||||
if (obj != null) {
|
||||
if (!obj.swigCMemOwn)
|
||||
throw new RuntimeException("Cannot release ownership as memory is not owned");
|
||||
ptr = obj.swigCPtr;
|
||||
obj.swigCMemOwn = false;
|
||||
obj.delete();
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -21,6 +21,19 @@ public class DTMF {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(DTMF obj) {
|
||||
long ptr = 0;
|
||||
if (obj != null) {
|
||||
if (!obj.swigCMemOwn)
|
||||
throw new RuntimeException("Cannot release ownership as memory is not owned");
|
||||
ptr = obj.swigCPtr;
|
||||
obj.swigCMemOwn = false;
|
||||
obj.delete();
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -21,6 +21,19 @@ public class Event {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(Event obj) {
|
||||
long ptr = 0;
|
||||
if (obj != null) {
|
||||
if (!obj.swigCMemOwn)
|
||||
throw new RuntimeException("Cannot release ownership as memory is not owned");
|
||||
ptr = obj.swigCPtr;
|
||||
obj.swigCMemOwn = false;
|
||||
obj.delete();
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -21,6 +21,19 @@ public class EventConsumer {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(EventConsumer obj) {
|
||||
long ptr = 0;
|
||||
if (obj != null) {
|
||||
if (!obj.swigCMemOwn)
|
||||
throw new RuntimeException("Cannot release ownership as memory is not owned");
|
||||
ptr = obj.swigCPtr;
|
||||
obj.swigCMemOwn = false;
|
||||
obj.delete();
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -21,6 +21,19 @@ public class IVRMenu {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(IVRMenu obj) {
|
||||
long ptr = 0;
|
||||
if (obj != null) {
|
||||
if (!obj.swigCMemOwn)
|
||||
throw new RuntimeException("Cannot release ownership as memory is not owned");
|
||||
ptr = obj.swigCPtr;
|
||||
obj.swigCMemOwn = false;
|
||||
obj.delete();
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -20,6 +20,19 @@ public class JavaSession extends CoreSession {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(JavaSession obj) {
|
||||
long ptr = 0;
|
||||
if (obj != null) {
|
||||
if (!obj.swigCMemOwn)
|
||||
throw new RuntimeException("Cannot release ownership as memory is not owned");
|
||||
ptr = obj.swigCPtr;
|
||||
obj.swigCMemOwn = false;
|
||||
obj.delete();
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_JavaVM {
|
||||
protected static long getCPtr(SWIGTYPE_p_JavaVM obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_JavaVM obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_int {
|
||||
protected static long getCPtr(SWIGTYPE_p_int obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_int obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_p_switch_event_node_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_p_switch_event_node_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_p_switch_event_node_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_call_cause_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_call_cause_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_call_cause_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_channel_state_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_channel_state_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_channel_state_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_channel_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_channel_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_channel_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_core_session_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_core_session_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_core_session_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_event_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_event_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_event_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_event_types_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_event_types_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_event_types_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_input_args_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_input_args_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_input_args_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_input_type_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_input_type_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_input_type_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_priority_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_priority_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_priority_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_queue_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_queue_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_queue_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_state_handler_table_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_state_handler_table_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_state_handler_table_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_status_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_status_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_status_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_switch_stream_handle_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_switch_stream_handle_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_switch_stream_handle_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_uint32_t {
|
||||
protected static long getCPtr(SWIGTYPE_p_uint32_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_uint32_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -22,5 +22,9 @@ public class SWIGTYPE_p_void {
|
||||
protected static long getCPtr(SWIGTYPE_p_void obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(SWIGTYPE_p_void obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -21,6 +21,19 @@ public class Stream {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(Stream obj) {
|
||||
long ptr = 0;
|
||||
if (obj != null) {
|
||||
if (!obj.swigCMemOwn)
|
||||
throw new RuntimeException("Cannot release ownership as memory is not owned");
|
||||
ptr = obj.swigCPtr;
|
||||
obj.swigCMemOwn = false;
|
||||
obj.delete();
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
@ -21,6 +21,19 @@ public class input_callback_state_t {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected static long swigRelease(input_callback_state_t obj) {
|
||||
long ptr = 0;
|
||||
if (obj != null) {
|
||||
if (!obj.swigCMemOwn)
|
||||
throw new RuntimeException("Cannot release ownership as memory is not owned");
|
||||
ptr = obj.swigCPtr;
|
||||
obj.swigCMemOwn = false;
|
||||
obj.delete();
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
@ -1,42 +1,14 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.12
|
||||
* This file was automatically generated by SWIG (https://www.swig.org).
|
||||
* Version 4.1.0
|
||||
*
|
||||
* This file is not intended to be easily readable and contains a number of
|
||||
* coding conventions designed to improve portability and efficiency. Do not make
|
||||
* changes to this file unless you know what you are doing--modify the SWIG
|
||||
* interface file instead.
|
||||
* Do not make changes to this file unless you know what you are doing - modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef SWIGJAVA
|
||||
#define SWIG_VERSION 0x040100
|
||||
#define SWIGJAVA
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
/* SwigValueWrapper is described in swig.swg */
|
||||
template<typename T> class SwigValueWrapper {
|
||||
struct SwigMovePointer {
|
||||
T *ptr;
|
||||
SwigMovePointer(T *p) : ptr(p) { }
|
||||
~SwigMovePointer() { delete ptr; }
|
||||
SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
|
||||
} pointer;
|
||||
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
||||
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
|
||||
public:
|
||||
SwigValueWrapper() : pointer(0) { }
|
||||
SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
|
||||
operator T&() const { return *pointer.ptr; }
|
||||
T *operator&() { return pointer.ptr; }
|
||||
};
|
||||
|
||||
template <typename T> T SwigValueInit() {
|
||||
return T();
|
||||
}
|
||||
#endif
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* This section contains generic SWIG labels for method/variable
|
||||
@ -163,18 +135,6 @@ template <typename T> T SwigValueInit() {
|
||||
#endif
|
||||
|
||||
|
||||
/* Fix for jlong on some versions of gcc on Windows */
|
||||
#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
|
||||
typedef long long __int64;
|
||||
#endif
|
||||
|
||||
/* Fix for jlong on 64-bit x86 Solaris */
|
||||
#if defined(__x86_64)
|
||||
# ifdef _LP64
|
||||
# undef _LP64
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <jni.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -190,7 +150,8 @@ typedef enum {
|
||||
SWIG_JavaIllegalArgumentException,
|
||||
SWIG_JavaNullPointerException,
|
||||
SWIG_JavaDirectorPureVirtual,
|
||||
SWIG_JavaUnknownError
|
||||
SWIG_JavaUnknownError,
|
||||
SWIG_JavaIllegalStateException,
|
||||
} SWIG_JavaExceptionCodes;
|
||||
|
||||
typedef struct {
|
||||
@ -211,6 +172,7 @@ static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionC
|
||||
{ SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
|
||||
{ SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
|
||||
{ SWIG_JavaUnknownError, "java/lang/UnknownError" },
|
||||
{ SWIG_JavaIllegalStateException, "java/lang/IllegalStateException" },
|
||||
{ (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
|
||||
};
|
||||
const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
|
||||
@ -227,7 +189,55 @@ static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionC
|
||||
|
||||
/* Contract support */
|
||||
|
||||
#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
|
||||
#define SWIG_contract_assert(nullreturn, expr, msg) do { if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } } while (0)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <utility>
|
||||
/* SwigValueWrapper is described in swig.swg */
|
||||
template<typename T> class SwigValueWrapper {
|
||||
struct SwigSmartPointer {
|
||||
T *ptr;
|
||||
SwigSmartPointer(T *p) : ptr(p) { }
|
||||
~SwigSmartPointer() { delete ptr; }
|
||||
SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
|
||||
void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
|
||||
} pointer;
|
||||
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
||||
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
|
||||
public:
|
||||
SwigValueWrapper() : pointer(0) { }
|
||||
SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
|
||||
#if __cplusplus >=201103L
|
||||
SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
|
||||
operator T&&() const { return std::move(*pointer.ptr); }
|
||||
#else
|
||||
operator T&() const { return *pointer.ptr; }
|
||||
#endif
|
||||
T *operator&() const { return pointer.ptr; }
|
||||
static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
|
||||
};
|
||||
|
||||
/*
|
||||
* SwigValueInit() is a generic initialisation solution as the following approach:
|
||||
*
|
||||
* T c_result = T();
|
||||
*
|
||||
* doesn't compile for all types for example:
|
||||
*
|
||||
* unsigned int c_result = unsigned int();
|
||||
*/
|
||||
template <typename T> T SwigValueInit() {
|
||||
return T();
|
||||
}
|
||||
|
||||
#if __cplusplus >=201103L
|
||||
# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
|
||||
#else
|
||||
# define SWIG_STD_MOVE(OBJ) OBJ
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#include "switch.h"
|
||||
@ -235,6 +245,9 @@ static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionC
|
||||
#include "freeswitch_java.h"
|
||||
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -922,7 +935,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1
|
||||
(void)jarg1_;
|
||||
arg1 = *(DTMF **)&jarg1;
|
||||
result = ((arg1)->duration);
|
||||
*(uint32_t **)&jresult = new uint32_t((const uint32_t &)result);
|
||||
*(uint32_t **)&jresult = new uint32_t(result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
@ -1525,7 +1538,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1e
|
||||
(void)jarg1_;
|
||||
arg1 = *(EventConsumer **)&jarg1;
|
||||
result = ((arg1)->e_event_id);
|
||||
*(switch_event_types_t **)&jresult = new switch_event_types_t((const switch_event_types_t &)result);
|
||||
*(switch_event_types_t **)&jresult = new switch_event_types_t(result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
@ -1715,7 +1728,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1n
|
||||
(void)jarg1_;
|
||||
arg1 = *(EventConsumer **)&jarg1;
|
||||
result = ((arg1)->node_index);
|
||||
*(uint32_t **)&jresult = new uint32_t((const uint32_t &)result);
|
||||
*(uint32_t **)&jresult = new uint32_t(result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
@ -1997,7 +2010,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hoo
|
||||
(void)jarg1_;
|
||||
arg1 = *(CoreSession **)&jarg1;
|
||||
result = ((arg1)->hook_state);
|
||||
*(switch_channel_state_t **)&jresult = new switch_channel_state_t((const switch_channel_state_t &)result);
|
||||
*(switch_channel_state_t **)&jresult = new switch_channel_state_t(result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
@ -2031,7 +2044,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cau
|
||||
(void)jarg1_;
|
||||
arg1 = *(CoreSession **)&jarg1;
|
||||
result = ((arg1)->cause);
|
||||
*(switch_call_cause_t **)&jresult = new switch_call_cause_t((const switch_call_cause_t &)result);
|
||||
*(switch_call_cause_t **)&jresult = new switch_call_cause_t(result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
@ -2376,7 +2389,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1pro
|
||||
if (!arg2) return 0;
|
||||
}
|
||||
result = (arg1)->process_callback_result(arg2);
|
||||
*(switch_status_t **)&jresult = new switch_status_t((const switch_status_t &)result);
|
||||
*(switch_status_t **)&jresult = new switch_status_t(result);
|
||||
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
|
||||
return jresult;
|
||||
}
|
||||
@ -3322,7 +3335,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1run
|
||||
}
|
||||
arg3 = *argp3;
|
||||
result = (arg1)->run_dtmf_callback(arg2,arg3);
|
||||
*(switch_status_t **)&jresult = new switch_status_t((const switch_status_t &)result);
|
||||
*(switch_status_t **)&jresult = new switch_status_t(result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
@ -3488,12 +3501,12 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_bridge(JNIEnv *je
|
||||
(void)jarg2_;
|
||||
arg1 = *(CoreSession **)&jarg1;
|
||||
if (!arg1) {
|
||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "CoreSession & reference is null");
|
||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "CoreSession & is null");
|
||||
return ;
|
||||
}
|
||||
arg2 = *(CoreSession **)&jarg2;
|
||||
if (!arg2) {
|
||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "CoreSession & reference is null");
|
||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "CoreSession & is null");
|
||||
return ;
|
||||
}
|
||||
bridge(*arg1,*arg2);
|
||||
@ -3509,7 +3522,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_hanguphook(JNIEn
|
||||
(void)jcls;
|
||||
arg1 = *(switch_core_session_t **)&jarg1;
|
||||
result = hanguphook(arg1);
|
||||
*(switch_status_t **)&jresult = new switch_status_t((const switch_status_t &)result);
|
||||
*(switch_status_t **)&jresult = new switch_status_t(result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
@ -3536,8 +3549,8 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_dtmf_1callback(J
|
||||
arg3 = *argp3;
|
||||
arg4 = *(void **)&jarg4;
|
||||
arg5 = (unsigned int)jarg5;
|
||||
result = dtmf_callback(arg1,arg2,arg3,arg4,arg5);
|
||||
*(switch_status_t **)&jresult = new switch_status_t((const switch_status_t &)result);
|
||||
result = dtmf_callback(arg1,arg2,SWIG_STD_MOVE(arg3),arg4,arg5);
|
||||
*(switch_status_t **)&jresult = new switch_status_t(result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
@ -3570,7 +3583,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_setOriginateState
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
arg1 = jarg1;
|
||||
setOriginateStateHandler(arg1);
|
||||
setOriginateStateHandler(SWIG_STD_MOVE(arg1));
|
||||
}
|
||||
|
||||
|
||||
@ -3723,7 +3736,7 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1run
|
||||
}
|
||||
arg3 = *argp3;
|
||||
result = (arg1)->run_dtmf_callback(arg2,arg3);
|
||||
*(switch_status_t **)&jresult = new switch_status_t((const switch_status_t &)result);
|
||||
*(switch_status_t **)&jresult = new switch_status_t(result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ swigclean: clean
|
||||
rm -f mod_lua_wrap.*
|
||||
|
||||
mod_lua_wrap.cpp: mod_lua_extra.c
|
||||
swig3.0 -lua -c++ -I../../../../src/include -oh mod_lua_wrap.h -o mod_lua_wrap.cpp freeswitch.i
|
||||
swig -lua -c++ -I../../../../src/include -oh mod_lua_wrap.h -o mod_lua_wrap.cpp freeswitch.i
|
||||
echo "#include \"mod_lua_extra.c\"" >> mod_lua_wrap.cpp
|
||||
patch -s -p0 -i hack.diff
|
||||
|
||||
|
@ -1,67 +1,6 @@
|
||||
--- mod_lua_wrap.cpp.old 2025-01-15 13:22:48.705853645 +0000
|
||||
+++ mod_lua_wrap.cpp 2025-01-15 13:23:33.161847705 +0000
|
||||
@@ -4242,7 +4242,7 @@
|
||||
}
|
||||
|
||||
result = (char *)(arg1)->read(arg2);
|
||||
- lua_pushstring(L,(const char *)result); SWIG_arg++;
|
||||
+ lua_pushlstring(L,(const char*)result, (*arg2)); SWIG_arg++;
|
||||
lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
@@ -8336,7 +8336,7 @@
|
||||
|
||||
SWIG_check_num_args("LUA::Session::Session",0,0)
|
||||
result = (LUA::Session *)new LUA::Session();
|
||||
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
|
||||
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
@@ -8363,7 +8363,7 @@
|
||||
}
|
||||
|
||||
result = (LUA::Session *)new LUA::Session(arg1,arg2);
|
||||
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
|
||||
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
@@ -8383,7 +8383,7 @@
|
||||
if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("LUA::Session::Session",1,"char *");
|
||||
arg1 = (char *)lua_tostring(L, 1);
|
||||
result = (LUA::Session *)new LUA::Session(arg1);
|
||||
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
|
||||
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
@@ -8407,7 +8407,7 @@
|
||||
}
|
||||
|
||||
result = (LUA::Session *)new LUA::Session(arg1);
|
||||
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
|
||||
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
@@ -9517,6 +9517,7 @@
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
arg3 = (char *)lua_tostring(L, 3);
|
||||
arg4 = (char *)lua_tostring(L, 4);
|
||||
+ switch_assert(arg1);
|
||||
result = (bool)(arg1)->test_reactive(arg2,arg3,arg4);
|
||||
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
@@ -9547,6 +9548,7 @@
|
||||
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
arg3 = (char *)lua_tostring(L, 3);
|
||||
+ switch_assert(arg1);
|
||||
result = (bool)(arg1)->test_reactive(arg2,arg3);
|
||||
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
@@ -9574,6 +9576,7 @@
|
||||
--- mod_lua_wrap.cpp.old 2025-07-09 10:36:02.165895047 +0000
|
||||
+++ mod_lua_wrap.cpp 2025-07-09 10:46:12.289624035 +0000
|
||||
@@ -9639,6 +9639,7 @@
|
||||
}
|
||||
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
@ -69,7 +8,7 @@
|
||||
result = (bool)(arg1)->test_reactive(arg2);
|
||||
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
@@ -9704,6 +9707,7 @@
|
||||
@@ -9769,6 +9770,7 @@
|
||||
(&arg3)->idx = 3;
|
||||
}
|
||||
}
|
||||
@ -77,7 +16,7 @@
|
||||
result = (bool)(arg1)->query(arg2,arg3);
|
||||
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
@@ -9733,6 +9737,7 @@
|
||||
@@ -9798,6 +9800,7 @@
|
||||
}
|
||||
|
||||
arg3 = (char *)lua_tostring(L, 2);
|
||||
@ -85,34 +24,31 @@
|
||||
result = (arg1)->query_rows(arg2,arg3);
|
||||
{
|
||||
SWIG_arg += result;
|
||||
@@ -9758,7 +9763,7 @@
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
|
||||
@@ -9824,6 +9827,7 @@
|
||||
SWIG_fail_ptr("Dbh_affected_rows",1,SWIGTYPE_p_LUA__Dbh);
|
||||
}
|
||||
-
|
||||
|
||||
+ switch_assert(arg1);
|
||||
result = (int)(arg1)->affected_rows();
|
||||
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
@@ -9782,7 +9787,7 @@
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
|
||||
@@ -9848,6 +9852,7 @@
|
||||
SWIG_fail_ptr("Dbh_last_error",1,SWIGTYPE_p_LUA__Dbh);
|
||||
}
|
||||
-
|
||||
|
||||
+ switch_assert(arg1);
|
||||
result = (char *)(arg1)->last_error();
|
||||
lua_pushstring(L,(const char *)result); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
@@ -9805,7 +9810,7 @@
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
|
||||
@@ -9871,6 +9876,7 @@
|
||||
SWIG_fail_ptr("Dbh_clear_error",1,SWIGTYPE_p_LUA__Dbh);
|
||||
}
|
||||
-
|
||||
|
||||
+ switch_assert(arg1);
|
||||
(arg1)->clear_error();
|
||||
|
||||
return SWIG_arg;
|
||||
@@ -9833,6 +9838,7 @@
|
||||
@@ -9898,6 +9904,7 @@
|
||||
}
|
||||
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
@ -120,7 +56,7 @@
|
||||
result = (int)(arg1)->load_extension((char const *)arg2);
|
||||
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
@@ -9933,6 +9939,7 @@
|
||||
@@ -9998,6 +10005,7 @@
|
||||
}
|
||||
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
@ -128,7 +64,7 @@
|
||||
result = (cJSON *)(arg1)->decode((char const *)arg2);
|
||||
{
|
||||
SWIG_arg += LUA::JSON::cJSON2LuaTable(L, result);
|
||||
@@ -9966,6 +9973,7 @@
|
||||
@@ -10031,6 +10039,7 @@
|
||||
(&arg2)->L = L;
|
||||
(&arg2)->idx = 2;
|
||||
}
|
||||
@ -136,7 +72,7 @@
|
||||
result = (arg1)->encode(arg2);
|
||||
lua_pushlstring(L,(&result)->data(),(&result)->size()); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
@@ -9993,6 +10001,7 @@
|
||||
@@ -10058,6 +10067,7 @@
|
||||
}
|
||||
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
@ -144,7 +80,7 @@
|
||||
result = (cJSON *)(arg1)->execute((char const *)arg2);
|
||||
{
|
||||
SWIG_arg += LUA::JSON::cJSON2LuaTable(L, result);
|
||||
@@ -10026,6 +10035,7 @@
|
||||
@@ -10091,6 +10101,7 @@
|
||||
(&arg2)->L = L;
|
||||
(&arg2)->idx = 2;
|
||||
}
|
||||
@ -152,7 +88,7 @@
|
||||
result = (cJSON *)(arg1)->execute(arg2);
|
||||
{
|
||||
SWIG_arg += LUA::JSON::cJSON2LuaTable(L, result);
|
||||
@@ -10110,6 +10120,7 @@
|
||||
@@ -10175,6 +10186,7 @@
|
||||
}
|
||||
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
@ -160,7 +96,7 @@
|
||||
result = (arg1)->execute2((char const *)arg2);
|
||||
lua_pushlstring(L,(&result)->data(),(&result)->size()); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
@@ -10140,6 +10151,7 @@
|
||||
@@ -10205,6 +10217,7 @@
|
||||
(&arg2)->L = L;
|
||||
(&arg2)->idx = 2;
|
||||
}
|
||||
@ -168,7 +104,7 @@
|
||||
result = (arg1)->execute2(arg2);
|
||||
lua_pushlstring(L,(&result)->data(),(&result)->size()); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
@@ -10220,6 +10232,7 @@
|
||||
@@ -10285,6 +10298,7 @@
|
||||
}
|
||||
|
||||
arg2 = (lua_toboolean(L, 2)!=0);
|
||||
@ -176,7 +112,7 @@
|
||||
(arg1)->encode_empty_table_as_object(arg2);
|
||||
|
||||
return SWIG_arg;
|
||||
@@ -10246,6 +10259,7 @@
|
||||
@@ -10311,6 +10325,7 @@
|
||||
}
|
||||
|
||||
arg2 = (lua_toboolean(L, 2)!=0);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -39,7 +39,8 @@ swigclean: clean
|
||||
rm -f freeswitch_wrap.cxx managed/swig.cs
|
||||
|
||||
freeswitch_wrap.cxx:
|
||||
swig3.0 -I../../../include -v -O -c++ -csharp -namespace FreeSWITCH.Native -dllimport mod_managed -DSWIG_CSHARP_NO_STRING_HELPER freeswitch.i
|
||||
swig -I../../../include -v -O -c++ -csharp -namespace FreeSWITCH.Native -dllimport mod_managed -DSWIG_CSHARP_NO_STRING_HELPER freeswitch.i
|
||||
rm -f ./managed/swig.cs
|
||||
patch -s -p0 -i managed/hack.diff
|
||||
cat *.cs > ./managed/swig.cs
|
||||
rm -f *.cs
|
||||
|
File diff suppressed because it is too large
Load Diff
11
src/mod/languages/mod_managed/managed/hack.diff
Normal file
11
src/mod/languages/mod_managed/managed/hack.diff
Normal file
@ -0,0 +1,11 @@
|
||||
--- switch_event.cs.old 2025-06-18 14:42:04.451534270 +0000
|
||||
+++ switch_event.cs 2025-06-18 14:43:13.731741625 +0000
|
||||
@@ -40,7 +40,7 @@
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
- public void Dispose() {
|
||||
+ public virtual void Dispose() {
|
||||
Dispose(true);
|
||||
global::System.GC.SuppressFinalize(this);
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -23,7 +23,7 @@ swigclean: clean
|
||||
rm -f mod_perl_wrap.* freeswitch.so freeswitch.pm
|
||||
|
||||
mod_perl_wrap.cpp:
|
||||
swig3.0 -static -shadow -perl5 -c++ -DMULTIPLICITY -I../../../../src/include -o mod_perl_wrap.cpp freeswitch.i
|
||||
swig -static -shadow -perl5 -c++ -DMULTIPLICITY -I../../../../src/include -o mod_perl_wrap.cpp freeswitch.i
|
||||
echo "#include \"mod_perl_extra.c\"" >> mod_perl_wrap.cpp
|
||||
patch -s -p0 -i hack.diff
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# This file was automatically generated by SWIG (http://www.swig.org).
|
||||
# Version 3.0.12
|
||||
# This file was automatically generated by SWIG (https://www.swig.org).
|
||||
# Version 4.1.0
|
||||
#
|
||||
# Do not make changes to this file unless you know what you are doing--modify
|
||||
# Do not make changes to this file unless you know what you are doing - modify
|
||||
# the SWIG interface file instead.
|
||||
|
||||
package freeswitch;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -20,7 +20,7 @@ swigclean: clean
|
||||
rm -f mod_python_wrap.* freeswitch.py
|
||||
|
||||
mod_python_wrap.cpp: mod_python_extra.c hack.diff
|
||||
swig3.0 -python -c++ -I../../../../src/include -oh mod_python_wrap.h -o mod_python_wrap.cpp mod_python.i
|
||||
swig -python -c++ -I../../../../src/include -oh mod_python_wrap.h -o mod_python_wrap.cpp mod_python.i
|
||||
echo "#include \"mod_python_extra.c\"" >> mod_python_wrap.cpp
|
||||
patch -s -p0 -i hack.diff
|
||||
|
||||
|
@ -1,85 +1,21 @@
|
||||
# This file was automatically generated by SWIG (http://www.swig.org).
|
||||
# Version 3.0.12
|
||||
# This file was automatically generated by SWIG (https://www.swig.org).
|
||||
# Version 4.1.0
|
||||
#
|
||||
# Do not make changes to this file unless you know what you are doing--modify
|
||||
# Do not make changes to this file unless you know what you are doing - modify
|
||||
# the SWIG interface file instead.
|
||||
|
||||
from sys import version_info as _swig_python_version_info
|
||||
if _swig_python_version_info >= (2, 7, 0):
|
||||
def swig_import_helper():
|
||||
import importlib
|
||||
pkg = __name__.rpartition('.')[0]
|
||||
mname = '.'.join((pkg, '_freeswitch')).lstrip('.')
|
||||
try:
|
||||
return importlib.import_module(mname)
|
||||
except ImportError:
|
||||
return importlib.import_module('_freeswitch')
|
||||
_freeswitch = swig_import_helper()
|
||||
del swig_import_helper
|
||||
elif _swig_python_version_info >= (2, 6, 0):
|
||||
def swig_import_helper():
|
||||
from os.path import dirname
|
||||
import imp
|
||||
fp = None
|
||||
try:
|
||||
fp, pathname, description = imp.find_module('_freeswitch', [dirname(__file__)])
|
||||
except ImportError:
|
||||
import _freeswitch
|
||||
return _freeswitch
|
||||
try:
|
||||
_mod = imp.load_module('_freeswitch', fp, pathname, description)
|
||||
finally:
|
||||
if fp is not None:
|
||||
fp.close()
|
||||
return _mod
|
||||
_freeswitch = swig_import_helper()
|
||||
del swig_import_helper
|
||||
# Import the low-level C/C++ module
|
||||
if __package__ or "." in __name__:
|
||||
from . import _freeswitch
|
||||
else:
|
||||
import _freeswitch
|
||||
del _swig_python_version_info
|
||||
|
||||
try:
|
||||
_swig_property = property
|
||||
except NameError:
|
||||
pass # Python < 2.2 doesn't have 'property'.
|
||||
|
||||
try:
|
||||
import builtins as __builtin__
|
||||
except ImportError:
|
||||
import __builtin__
|
||||
|
||||
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
|
||||
if (name == "thisown"):
|
||||
return self.this.own(value)
|
||||
if (name == "this"):
|
||||
if type(value).__name__ == 'SwigPyObject':
|
||||
self.__dict__[name] = value
|
||||
return
|
||||
method = class_type.__swig_setmethods__.get(name, None)
|
||||
if method:
|
||||
return method(self, value)
|
||||
if (not static):
|
||||
if _newclass:
|
||||
object.__setattr__(self, name, value)
|
||||
else:
|
||||
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):
|
||||
if (name == "thisown"):
|
||||
return self.this.own()
|
||||
method = class_type.__swig_getmethods__.get(name, None)
|
||||
if method:
|
||||
return method(self)
|
||||
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
|
||||
|
||||
|
||||
def _swig_repr(self):
|
||||
try:
|
||||
strthis = "proxy of " + self.this.__repr__()
|
||||
@ -87,81 +23,85 @@ def _swig_repr(self):
|
||||
strthis = ""
|
||||
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
||||
|
||||
try:
|
||||
_object = object
|
||||
_newclass = 1
|
||||
except __builtin__.Exception:
|
||||
class _object:
|
||||
pass
|
||||
_newclass = 0
|
||||
|
||||
def _swig_setattr_nondynamic_instance_variable(set):
|
||||
def set_instance_attr(self, name, value):
|
||||
if name == "this":
|
||||
set(self, name, value)
|
||||
elif name == "thisown":
|
||||
self.this.own(value)
|
||||
elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
|
||||
set(self, name, value)
|
||||
else:
|
||||
raise AttributeError("You cannot add instance attributes to %s" % self)
|
||||
return set_instance_attr
|
||||
|
||||
|
||||
def _swig_setattr_nondynamic_class_variable(set):
|
||||
def set_class_attr(cls, name, value):
|
||||
if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
|
||||
set(cls, name, value)
|
||||
else:
|
||||
raise AttributeError("You cannot add class attributes to %s" % cls)
|
||||
return set_class_attr
|
||||
|
||||
|
||||
def _swig_add_metaclass(metaclass):
|
||||
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
|
||||
def wrapper(cls):
|
||||
return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
|
||||
return wrapper
|
||||
|
||||
|
||||
class _SwigNonDynamicMeta(type):
|
||||
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
|
||||
__setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
|
||||
|
||||
|
||||
|
||||
def setGlobalVariable(var_name, var_val):
|
||||
return _freeswitch.setGlobalVariable(var_name, var_val)
|
||||
setGlobalVariable = _freeswitch.setGlobalVariable
|
||||
|
||||
def getGlobalVariable(var_name):
|
||||
return _freeswitch.getGlobalVariable(var_name)
|
||||
getGlobalVariable = _freeswitch.getGlobalVariable
|
||||
|
||||
def consoleLog(level_str, msg):
|
||||
return _freeswitch.consoleLog(level_str, msg)
|
||||
consoleLog = _freeswitch.consoleLog
|
||||
|
||||
def consoleLog2(level_str, file, func, line, msg):
|
||||
return _freeswitch.consoleLog2(level_str, file, func, line, msg)
|
||||
consoleLog2 = _freeswitch.consoleLog2
|
||||
|
||||
def consoleCleanLog(msg):
|
||||
return _freeswitch.consoleCleanLog(msg)
|
||||
consoleCleanLog = _freeswitch.consoleCleanLog
|
||||
|
||||
def running():
|
||||
return _freeswitch.running()
|
||||
running = _freeswitch.running
|
||||
|
||||
def email(to, arg2, headers=None, body=None, file=None, convert_cmd=None, convert_ext=None):
|
||||
return _freeswitch.email(to, arg2, headers, body, file, convert_cmd, convert_ext)
|
||||
email = _freeswitch.email
|
||||
class IVRMenu(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, IVRMenu, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, IVRMenu, name)
|
||||
def email(to, _from, headers=None, body=None, file=None, convert_cmd=None, convert_ext=None):
|
||||
return _freeswitch.email(to, _from, headers, body, file, convert_cmd, convert_ext)
|
||||
class IVRMenu(object):
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
||||
__repr__ = _swig_repr
|
||||
|
||||
def __init__(self, main, name, greeting_sound, short_greeting_sound, invalid_sound, exit_sound, transfer_sound, confirm_macro, confirm_key, tts_engine, tts_voice, confirm_attempts, inter_timeout, digit_len, timeout, max_failures, max_timeouts):
|
||||
this = _freeswitch.new_IVRMenu(main, name, greeting_sound, short_greeting_sound, invalid_sound, exit_sound, transfer_sound, confirm_macro, confirm_key, tts_engine, tts_voice, confirm_attempts, inter_timeout, digit_len, timeout, max_failures, max_timeouts)
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
_freeswitch.IVRMenu_swiginit(self, _freeswitch.new_IVRMenu(main, name, greeting_sound, short_greeting_sound, invalid_sound, exit_sound, transfer_sound, confirm_macro, confirm_key, tts_engine, tts_voice, confirm_attempts, inter_timeout, digit_len, timeout, max_failures, max_timeouts))
|
||||
__swig_destroy__ = _freeswitch.delete_IVRMenu
|
||||
__del__ = lambda self: None
|
||||
|
||||
def bindAction(self, action, arg, bind):
|
||||
return _freeswitch.IVRMenu_bindAction(self, action, arg, bind)
|
||||
|
||||
def execute(self, session, name):
|
||||
return _freeswitch.IVRMenu_execute(self, session, name)
|
||||
IVRMenu_swigregister = _freeswitch.IVRMenu_swigregister
|
||||
IVRMenu_swigregister(IVRMenu)
|
||||
|
||||
class API(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, API, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, API, name)
|
||||
# Register IVRMenu in _freeswitch:
|
||||
_freeswitch.IVRMenu_swigregister(IVRMenu)
|
||||
class API(object):
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
||||
__repr__ = _swig_repr
|
||||
|
||||
def __init__(self, s=None):
|
||||
this = _freeswitch.new_API(s)
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
_freeswitch.API_swiginit(self, _freeswitch.new_API(s))
|
||||
__swig_destroy__ = _freeswitch.delete_API
|
||||
__del__ = lambda self: None
|
||||
|
||||
def execute(self, command, data=None):
|
||||
return _freeswitch.API_execute(self, command, data)
|
||||
@ -171,87 +111,45 @@ class API(_object):
|
||||
|
||||
def getTime(self):
|
||||
return _freeswitch.API_getTime(self)
|
||||
API_swigregister = _freeswitch.API_swigregister
|
||||
API_swigregister(API)
|
||||
|
||||
class input_callback_state_t(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, input_callback_state_t, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, input_callback_state_t, name)
|
||||
# Register API in _freeswitch:
|
||||
_freeswitch.API_swigregister(API)
|
||||
class input_callback_state_t(object):
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
||||
__repr__ = _swig_repr
|
||||
__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)
|
||||
function = property(_freeswitch.input_callback_state_t_function_get, _freeswitch.input_callback_state_t_function_set)
|
||||
threadState = property(_freeswitch.input_callback_state_t_threadState_get, _freeswitch.input_callback_state_t_threadState_set)
|
||||
extra = property(_freeswitch.input_callback_state_t_extra_get, _freeswitch.input_callback_state_t_extra_set)
|
||||
funcargs = property(_freeswitch.input_callback_state_t_funcargs_get, _freeswitch.input_callback_state_t_funcargs_set)
|
||||
|
||||
def __init__(self):
|
||||
this = _freeswitch.new_input_callback_state_t()
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
_freeswitch.input_callback_state_t_swiginit(self, _freeswitch.new_input_callback_state_t())
|
||||
__swig_destroy__ = _freeswitch.delete_input_callback_state_t
|
||||
__del__ = lambda self: None
|
||||
input_callback_state_t_swigregister = _freeswitch.input_callback_state_t_swigregister
|
||||
input_callback_state_t_swigregister(input_callback_state_t)
|
||||
|
||||
# Register input_callback_state_t in _freeswitch:
|
||||
_freeswitch.input_callback_state_t_swigregister(input_callback_state_t)
|
||||
S_HUP = _freeswitch.S_HUP
|
||||
S_FREE = _freeswitch.S_FREE
|
||||
S_RDLOCK = _freeswitch.S_RDLOCK
|
||||
class DTMF(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, DTMF, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, DTMF, name)
|
||||
class DTMF(object):
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
||||
__repr__ = _swig_repr
|
||||
__swig_setmethods__["digit"] = _freeswitch.DTMF_digit_set
|
||||
__swig_getmethods__["digit"] = _freeswitch.DTMF_digit_get
|
||||
if _newclass:
|
||||
digit = _swig_property(_freeswitch.DTMF_digit_get, _freeswitch.DTMF_digit_set)
|
||||
__swig_setmethods__["duration"] = _freeswitch.DTMF_duration_set
|
||||
__swig_getmethods__["duration"] = _freeswitch.DTMF_duration_get
|
||||
if _newclass:
|
||||
duration = _swig_property(_freeswitch.DTMF_duration_get, _freeswitch.DTMF_duration_set)
|
||||
digit = property(_freeswitch.DTMF_digit_get, _freeswitch.DTMF_digit_set)
|
||||
duration = property(_freeswitch.DTMF_duration_get, _freeswitch.DTMF_duration_set)
|
||||
|
||||
def __init__(self, *args):
|
||||
this = _freeswitch.new_DTMF(*args)
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
_freeswitch.DTMF_swiginit(self, _freeswitch.new_DTMF(*args))
|
||||
__swig_destroy__ = _freeswitch.delete_DTMF
|
||||
__del__ = lambda self: None
|
||||
DTMF_swigregister = _freeswitch.DTMF_swigregister
|
||||
DTMF_swigregister(DTMF)
|
||||
|
||||
class Stream(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, Stream, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, Stream, name)
|
||||
# Register DTMF in _freeswitch:
|
||||
_freeswitch.DTMF_swigregister(DTMF)
|
||||
class Stream(object):
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
||||
__repr__ = _swig_repr
|
||||
|
||||
def __init__(self, *args):
|
||||
this = _freeswitch.new_Stream(*args)
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
_freeswitch.Stream_swiginit(self, _freeswitch.new_Stream(*args))
|
||||
__swig_destroy__ = _freeswitch.delete_Stream
|
||||
__del__ = lambda self: None
|
||||
|
||||
def read(self, len):
|
||||
return _freeswitch.Stream_read(self, len)
|
||||
@ -264,36 +162,19 @@ class Stream(_object):
|
||||
|
||||
def get_data(self):
|
||||
return _freeswitch.Stream_get_data(self)
|
||||
Stream_swigregister = _freeswitch.Stream_swigregister
|
||||
Stream_swigregister(Stream)
|
||||
|
||||
class Event(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, Event, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, Event, name)
|
||||
# Register Stream in _freeswitch:
|
||||
_freeswitch.Stream_swigregister(Stream)
|
||||
class Event(object):
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
||||
__repr__ = _swig_repr
|
||||
__swig_setmethods__["event"] = _freeswitch.Event_event_set
|
||||
__swig_getmethods__["event"] = _freeswitch.Event_event_get
|
||||
if _newclass:
|
||||
event = _swig_property(_freeswitch.Event_event_get, _freeswitch.Event_event_set)
|
||||
__swig_setmethods__["serialized_string"] = _freeswitch.Event_serialized_string_set
|
||||
__swig_getmethods__["serialized_string"] = _freeswitch.Event_serialized_string_get
|
||||
if _newclass:
|
||||
serialized_string = _swig_property(_freeswitch.Event_serialized_string_get, _freeswitch.Event_serialized_string_set)
|
||||
__swig_setmethods__["mine"] = _freeswitch.Event_mine_set
|
||||
__swig_getmethods__["mine"] = _freeswitch.Event_mine_get
|
||||
if _newclass:
|
||||
mine = _swig_property(_freeswitch.Event_mine_get, _freeswitch.Event_mine_set)
|
||||
event = property(_freeswitch.Event_event_get, _freeswitch.Event_event_set)
|
||||
serialized_string = property(_freeswitch.Event_serialized_string_get, _freeswitch.Event_serialized_string_set)
|
||||
mine = property(_freeswitch.Event_mine_get, _freeswitch.Event_mine_set)
|
||||
|
||||
def __init__(self, *args):
|
||||
this = _freeswitch.new_Event(*args)
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
_freeswitch.Event_swiginit(self, _freeswitch.new_Event(*args))
|
||||
__swig_destroy__ = _freeswitch.delete_Event
|
||||
__del__ = lambda self: None
|
||||
|
||||
def chat_execute(self, app, data=None):
|
||||
return _freeswitch.Event_chat_execute(self, app, data)
|
||||
@ -330,52 +211,23 @@ class Event(_object):
|
||||
|
||||
def merge(self, to_merge):
|
||||
return _freeswitch.Event_merge(self, to_merge)
|
||||
Event_swigregister = _freeswitch.Event_swigregister
|
||||
Event_swigregister(Event)
|
||||
|
||||
class EventConsumer(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, EventConsumer, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, EventConsumer, name)
|
||||
# Register Event in _freeswitch:
|
||||
_freeswitch.Event_swigregister(Event)
|
||||
class EventConsumer(object):
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
||||
__repr__ = _swig_repr
|
||||
__swig_setmethods__["events"] = _freeswitch.EventConsumer_events_set
|
||||
__swig_getmethods__["events"] = _freeswitch.EventConsumer_events_get
|
||||
if _newclass:
|
||||
events = _swig_property(_freeswitch.EventConsumer_events_get, _freeswitch.EventConsumer_events_set)
|
||||
__swig_setmethods__["e_event_id"] = _freeswitch.EventConsumer_e_event_id_set
|
||||
__swig_getmethods__["e_event_id"] = _freeswitch.EventConsumer_e_event_id_get
|
||||
if _newclass:
|
||||
e_event_id = _swig_property(_freeswitch.EventConsumer_e_event_id_get, _freeswitch.EventConsumer_e_event_id_set)
|
||||
__swig_setmethods__["e_callback"] = _freeswitch.EventConsumer_e_callback_set
|
||||
__swig_getmethods__["e_callback"] = _freeswitch.EventConsumer_e_callback_get
|
||||
if _newclass:
|
||||
e_callback = _swig_property(_freeswitch.EventConsumer_e_callback_get, _freeswitch.EventConsumer_e_callback_set)
|
||||
__swig_setmethods__["e_subclass_name"] = _freeswitch.EventConsumer_e_subclass_name_set
|
||||
__swig_getmethods__["e_subclass_name"] = _freeswitch.EventConsumer_e_subclass_name_get
|
||||
if _newclass:
|
||||
e_subclass_name = _swig_property(_freeswitch.EventConsumer_e_subclass_name_get, _freeswitch.EventConsumer_e_subclass_name_set)
|
||||
__swig_setmethods__["e_cb_arg"] = _freeswitch.EventConsumer_e_cb_arg_set
|
||||
__swig_getmethods__["e_cb_arg"] = _freeswitch.EventConsumer_e_cb_arg_get
|
||||
if _newclass:
|
||||
e_cb_arg = _swig_property(_freeswitch.EventConsumer_e_cb_arg_get, _freeswitch.EventConsumer_e_cb_arg_set)
|
||||
__swig_setmethods__["enodes"] = _freeswitch.EventConsumer_enodes_set
|
||||
__swig_getmethods__["enodes"] = _freeswitch.EventConsumer_enodes_get
|
||||
if _newclass:
|
||||
enodes = _swig_property(_freeswitch.EventConsumer_enodes_get, _freeswitch.EventConsumer_enodes_set)
|
||||
__swig_setmethods__["node_index"] = _freeswitch.EventConsumer_node_index_set
|
||||
__swig_getmethods__["node_index"] = _freeswitch.EventConsumer_node_index_get
|
||||
if _newclass:
|
||||
node_index = _swig_property(_freeswitch.EventConsumer_node_index_get, _freeswitch.EventConsumer_node_index_set)
|
||||
events = property(_freeswitch.EventConsumer_events_get, _freeswitch.EventConsumer_events_set)
|
||||
e_event_id = property(_freeswitch.EventConsumer_e_event_id_get, _freeswitch.EventConsumer_e_event_id_set)
|
||||
e_callback = property(_freeswitch.EventConsumer_e_callback_get, _freeswitch.EventConsumer_e_callback_set)
|
||||
e_subclass_name = property(_freeswitch.EventConsumer_e_subclass_name_get, _freeswitch.EventConsumer_e_subclass_name_set)
|
||||
e_cb_arg = property(_freeswitch.EventConsumer_e_cb_arg_get, _freeswitch.EventConsumer_e_cb_arg_set)
|
||||
enodes = property(_freeswitch.EventConsumer_enodes_get, _freeswitch.EventConsumer_enodes_set)
|
||||
node_index = property(_freeswitch.EventConsumer_node_index_get, _freeswitch.EventConsumer_node_index_set)
|
||||
|
||||
def __init__(self, *args):
|
||||
this = _freeswitch.new_EventConsumer(*args)
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
_freeswitch.EventConsumer_swiginit(self, _freeswitch.new_EventConsumer(*args))
|
||||
__swig_destroy__ = _freeswitch.delete_EventConsumer
|
||||
__del__ = lambda self: None
|
||||
|
||||
def bind(self, *args):
|
||||
return _freeswitch.EventConsumer_bind(self, *args)
|
||||
@ -385,60 +237,26 @@ class EventConsumer(_object):
|
||||
|
||||
def cleanup(self):
|
||||
return _freeswitch.EventConsumer_cleanup(self)
|
||||
EventConsumer_swigregister = _freeswitch.EventConsumer_swigregister
|
||||
EventConsumer_swigregister(EventConsumer)
|
||||
|
||||
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)
|
||||
# Register EventConsumer in _freeswitch:
|
||||
_freeswitch.EventConsumer_swigregister(EventConsumer)
|
||||
class CoreSession(object):
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
raise AttributeError("No constructor defined - class is abstract")
|
||||
__repr__ = _swig_repr
|
||||
__swig_destroy__ = _freeswitch.delete_CoreSession
|
||||
__del__ = lambda self: None
|
||||
__swig_setmethods__["session"] = _freeswitch.CoreSession_session_set
|
||||
__swig_getmethods__["session"] = _freeswitch.CoreSession_session_get
|
||||
if _newclass:
|
||||
session = _swig_property(_freeswitch.CoreSession_session_get, _freeswitch.CoreSession_session_set)
|
||||
__swig_setmethods__["channel"] = _freeswitch.CoreSession_channel_set
|
||||
__swig_getmethods__["channel"] = _freeswitch.CoreSession_channel_get
|
||||
if _newclass:
|
||||
channel = _swig_property(_freeswitch.CoreSession_channel_get, _freeswitch.CoreSession_channel_set)
|
||||
__swig_setmethods__["flags"] = _freeswitch.CoreSession_flags_set
|
||||
__swig_getmethods__["flags"] = _freeswitch.CoreSession_flags_get
|
||||
if _newclass:
|
||||
flags = _swig_property(_freeswitch.CoreSession_flags_get, _freeswitch.CoreSession_flags_set)
|
||||
__swig_setmethods__["allocated"] = _freeswitch.CoreSession_allocated_set
|
||||
__swig_getmethods__["allocated"] = _freeswitch.CoreSession_allocated_get
|
||||
if _newclass:
|
||||
allocated = _swig_property(_freeswitch.CoreSession_allocated_get, _freeswitch.CoreSession_allocated_set)
|
||||
__swig_setmethods__["cb_state"] = _freeswitch.CoreSession_cb_state_set
|
||||
__swig_getmethods__["cb_state"] = _freeswitch.CoreSession_cb_state_get
|
||||
if _newclass:
|
||||
cb_state = _swig_property(_freeswitch.CoreSession_cb_state_get, _freeswitch.CoreSession_cb_state_set)
|
||||
__swig_setmethods__["hook_state"] = _freeswitch.CoreSession_hook_state_set
|
||||
__swig_getmethods__["hook_state"] = _freeswitch.CoreSession_hook_state_get
|
||||
if _newclass:
|
||||
hook_state = _swig_property(_freeswitch.CoreSession_hook_state_get, _freeswitch.CoreSession_hook_state_set)
|
||||
__swig_setmethods__["cause"] = _freeswitch.CoreSession_cause_set
|
||||
__swig_getmethods__["cause"] = _freeswitch.CoreSession_cause_get
|
||||
if _newclass:
|
||||
cause = _swig_property(_freeswitch.CoreSession_cause_get, _freeswitch.CoreSession_cause_set)
|
||||
__swig_setmethods__["uuid"] = _freeswitch.CoreSession_uuid_set
|
||||
__swig_getmethods__["uuid"] = _freeswitch.CoreSession_uuid_get
|
||||
if _newclass:
|
||||
uuid = _swig_property(_freeswitch.CoreSession_uuid_get, _freeswitch.CoreSession_uuid_set)
|
||||
__swig_setmethods__["tts_name"] = _freeswitch.CoreSession_tts_name_set
|
||||
__swig_getmethods__["tts_name"] = _freeswitch.CoreSession_tts_name_get
|
||||
if _newclass:
|
||||
tts_name = _swig_property(_freeswitch.CoreSession_tts_name_get, _freeswitch.CoreSession_tts_name_set)
|
||||
__swig_setmethods__["voice_name"] = _freeswitch.CoreSession_voice_name_set
|
||||
__swig_getmethods__["voice_name"] = _freeswitch.CoreSession_voice_name_get
|
||||
if _newclass:
|
||||
voice_name = _swig_property(_freeswitch.CoreSession_voice_name_get, _freeswitch.CoreSession_voice_name_set)
|
||||
session = property(_freeswitch.CoreSession_session_get, _freeswitch.CoreSession_session_set)
|
||||
channel = property(_freeswitch.CoreSession_channel_get, _freeswitch.CoreSession_channel_set)
|
||||
flags = property(_freeswitch.CoreSession_flags_get, _freeswitch.CoreSession_flags_set)
|
||||
allocated = property(_freeswitch.CoreSession_allocated_get, _freeswitch.CoreSession_allocated_set)
|
||||
cb_state = property(_freeswitch.CoreSession_cb_state_get, _freeswitch.CoreSession_cb_state_set)
|
||||
hook_state = property(_freeswitch.CoreSession_hook_state_get, _freeswitch.CoreSession_hook_state_set)
|
||||
cause = property(_freeswitch.CoreSession_cause_get, _freeswitch.CoreSession_cause_set)
|
||||
uuid = property(_freeswitch.CoreSession_uuid_get, _freeswitch.CoreSession_uuid_set)
|
||||
tts_name = property(_freeswitch.CoreSession_tts_name_get, _freeswitch.CoreSession_tts_name_set)
|
||||
voice_name = property(_freeswitch.CoreSession_voice_name_get, _freeswitch.CoreSession_voice_name_set)
|
||||
|
||||
def insertFile(self, file, insert_file, sample_point):
|
||||
return _freeswitch.CoreSession_insertFile(self, file, insert_file, sample_point)
|
||||
@ -595,56 +413,37 @@ class CoreSession(_object):
|
||||
|
||||
def consoleLog2(self, level_str, file, func, line, msg):
|
||||
return _freeswitch.CoreSession_consoleLog2(self, level_str, file, func, line, msg)
|
||||
CoreSession_swigregister = _freeswitch.CoreSession_swigregister
|
||||
CoreSession_swigregister(CoreSession)
|
||||
|
||||
# Register CoreSession in _freeswitch:
|
||||
_freeswitch.CoreSession_swigregister(CoreSession)
|
||||
|
||||
def console_log(level_str, msg):
|
||||
return _freeswitch.console_log(level_str, msg)
|
||||
console_log = _freeswitch.console_log
|
||||
|
||||
def console_log2(level_str, file, func, line, msg):
|
||||
return _freeswitch.console_log2(level_str, file, func, line, msg)
|
||||
console_log2 = _freeswitch.console_log2
|
||||
|
||||
def console_clean_log(msg):
|
||||
return _freeswitch.console_clean_log(msg)
|
||||
console_clean_log = _freeswitch.console_clean_log
|
||||
|
||||
def msleep(ms):
|
||||
return _freeswitch.msleep(ms)
|
||||
msleep = _freeswitch.msleep
|
||||
|
||||
def bridge(session_a, session_b):
|
||||
return _freeswitch.bridge(session_a, session_b)
|
||||
bridge = _freeswitch.bridge
|
||||
|
||||
def hanguphook(session):
|
||||
return _freeswitch.hanguphook(session)
|
||||
hanguphook = _freeswitch.hanguphook
|
||||
|
||||
def dtmf_callback(session, input, itype, buf, buflen):
|
||||
return _freeswitch.dtmf_callback(session, input, itype, buf, buflen)
|
||||
dtmf_callback = _freeswitch.dtmf_callback
|
||||
class Session(CoreSession):
|
||||
__swig_setmethods__ = {}
|
||||
for _s in [CoreSession]:
|
||||
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, Session, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
for _s in [CoreSession]:
|
||||
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, Session, name)
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
||||
__repr__ = _swig_repr
|
||||
|
||||
def __init__(self, *args):
|
||||
this = _freeswitch.new_Session(*args)
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
_freeswitch.Session_swiginit(self, _freeswitch.new_Session(*args))
|
||||
__swig_destroy__ = _freeswitch.delete_Session
|
||||
__del__ = lambda self: None
|
||||
|
||||
def begin_allow_threads(self):
|
||||
return _freeswitch.Session_begin_allow_threads(self)
|
||||
@ -672,31 +471,17 @@ class Session(CoreSession):
|
||||
|
||||
def ready(self):
|
||||
return _freeswitch.Session_ready(self)
|
||||
__swig_setmethods__["cb_function"] = _freeswitch.Session_cb_function_set
|
||||
__swig_getmethods__["cb_function"] = _freeswitch.Session_cb_function_get
|
||||
if _newclass:
|
||||
cb_function = _swig_property(_freeswitch.Session_cb_function_get, _freeswitch.Session_cb_function_set)
|
||||
__swig_setmethods__["cb_arg"] = _freeswitch.Session_cb_arg_set
|
||||
__swig_getmethods__["cb_arg"] = _freeswitch.Session_cb_arg_get
|
||||
if _newclass:
|
||||
cb_arg = _swig_property(_freeswitch.Session_cb_arg_get, _freeswitch.Session_cb_arg_set)
|
||||
__swig_setmethods__["hangup_func"] = _freeswitch.Session_hangup_func_set
|
||||
__swig_getmethods__["hangup_func"] = _freeswitch.Session_hangup_func_get
|
||||
if _newclass:
|
||||
hangup_func = _swig_property(_freeswitch.Session_hangup_func_get, _freeswitch.Session_hangup_func_set)
|
||||
__swig_setmethods__["hangup_func_arg"] = _freeswitch.Session_hangup_func_arg_set
|
||||
__swig_getmethods__["hangup_func_arg"] = _freeswitch.Session_hangup_func_arg_get
|
||||
if _newclass:
|
||||
hangup_func_arg = _swig_property(_freeswitch.Session_hangup_func_arg_get, _freeswitch.Session_hangup_func_arg_set)
|
||||
cb_function = property(_freeswitch.Session_cb_function_get, _freeswitch.Session_cb_function_set)
|
||||
cb_arg = property(_freeswitch.Session_cb_arg_get, _freeswitch.Session_cb_arg_set)
|
||||
hangup_func = property(_freeswitch.Session_hangup_func_get, _freeswitch.Session_hangup_func_set)
|
||||
hangup_func_arg = property(_freeswitch.Session_hangup_func_arg_get, _freeswitch.Session_hangup_func_arg_set)
|
||||
|
||||
def setPython(self, state):
|
||||
return _freeswitch.Session_setPython(self, state)
|
||||
|
||||
def setSelf(self, state):
|
||||
return _freeswitch.Session_setSelf(self, state)
|
||||
Session_swigregister = _freeswitch.Session_swigregister
|
||||
Session_swigregister(Session)
|
||||
|
||||
# This file is compatible with both classic and new-style classes.
|
||||
|
||||
# Register Session in _freeswitch:
|
||||
_freeswitch.Session_swigregister(Session)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- mod_python_wrap.cpp.old 2015-06-16 12:56:23.868000000 -0500
|
||||
+++ mod_python_wrap.cpp 2015-06-16 12:56:32.268000000 -0500
|
||||
@@ -3500,7 +3500,9 @@ SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
|
||||
--- mod_python_wrap.cpp.old 2024-11-08 21:22:49.064934340 +0000
|
||||
+++ mod_python_wrap.cpp 2024-11-12 13:45:20.822756877 +0000
|
||||
@@ -3492,7 +3492,9 @@
|
||||
if (csize <= size) {
|
||||
if (val) {
|
||||
if (csize) memcpy(val, cptr, csize*sizeof(char));
|
||||
@ -10,16 +10,16 @@
|
||||
}
|
||||
if (alloc == SWIG_NEWOBJ) {
|
||||
delete[] cptr;
|
||||
@@ -4677,7 +4677,7 @@ SWIGINTERN PyObject *_wrap_DTMF_digit_set(PyObject *SWIGUNUSEDPARM(self), PyObje
|
||||
@@ -4689,7 +4691,7 @@
|
||||
char arg2 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
- char val2 ;
|
||||
+ char val2 = '\0';
|
||||
int ecode2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
@@ -4787,7 +4787,7 @@ SWIGINTERN PyObject *_wrap_new_DTMF(PyObject *SWIGUNUSEDPARM(self), PyObject *ar
|
||||
PyObject *swig_obj[2] ;
|
||||
|
||||
@@ -4799,7 +4801,7 @@
|
||||
PyObject *resultobj = 0;
|
||||
char arg1 ;
|
||||
uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION ;
|
||||
@ -28,7 +28,7 @@
|
||||
int ecode1 = 0 ;
|
||||
void *argp2 ;
|
||||
int res2 = 0 ;
|
||||
@@ -6198,7 +6198,9 @@
|
||||
@@ -6371,7 +6373,9 @@
|
||||
}
|
||||
arg3 = static_cast< int >(val3);
|
||||
}
|
||||
@ -38,31 +38,16 @@
|
||||
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN | 0 );
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -9264,20 +9266,20 @@
|
||||
}
|
||||
@@ -9779,7 +9783,7 @@
|
||||
|
||||
|
||||
-SWIGINTERN PyObject *_wrap_new_Session__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
+SWIGINTERN PyObject *_wrap_new_Session__SWIG_0(PyObject *self, PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
PYTHON::Session *result = 0 ;
|
||||
|
||||
if (!PyArg_ParseTuple(args,(char *)":new_Session")) SWIG_fail;
|
||||
if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
|
||||
result = (PYTHON::Session *)new PYTHON::Session();
|
||||
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PYTHON__Session, SWIG_POINTER_NEW | 0 );
|
||||
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PYTHON__Session, SWIG_POINTER_NEW | 0 ); result->setPython(self);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
-SWIGINTERN PyObject *_wrap_new_Session__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
+SWIGINTERN PyObject *_wrap_new_Session__SWIG_1(PyObject *self, PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
char *arg1 = (char *) 0 ;
|
||||
CoreSession *arg2 = (CoreSession *) 0 ;
|
||||
@@ -9302,7 +9304,7 @@
|
||||
@@ -9809,7 +9813,7 @@
|
||||
}
|
||||
arg2 = reinterpret_cast< CoreSession * >(argp2);
|
||||
result = (PYTHON::Session *)new PYTHON::Session(arg1,arg2);
|
||||
@ -71,16 +56,7 @@
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -9311,7 +9313,7 @@
|
||||
}
|
||||
|
||||
|
||||
-SWIGINTERN PyObject *_wrap_new_Session__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
+SWIGINTERN PyObject *_wrap_new_Session__SWIG_2(PyObject *self, PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
char *arg1 = (char *) 0 ;
|
||||
int res1 ;
|
||||
@@ -9327,7 +9329,7 @@
|
||||
@@ -9833,7 +9837,7 @@
|
||||
}
|
||||
arg1 = reinterpret_cast< char * >(buf1);
|
||||
result = (PYTHON::Session *)new PYTHON::Session(arg1);
|
||||
@ -89,16 +65,7 @@
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -9336,7 +9338,7 @@
|
||||
}
|
||||
|
||||
|
||||
-SWIGINTERN PyObject *_wrap_new_Session__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
+SWIGINTERN PyObject *_wrap_new_Session__SWIG_3(PyObject *self, PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
@@ -9351,7 +9353,7 @@
|
||||
@@ -9856,7 +9860,7 @@
|
||||
}
|
||||
arg1 = reinterpret_cast< switch_core_session_t * >(argp1);
|
||||
result = (PYTHON::Session *)new PYTHON::Session(arg1);
|
||||
@ -107,11 +74,11 @@
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -10492,6 +10492,7 @@ SWIGINTERN PyObject *_wrap_Session_setSelf(PyObject *SWIGUNUSEDPARM(self), PyObj
|
||||
@@ -10520,6 +10524,7 @@
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_setSelf" "', argument " "1"" of type '" "PYTHON::Session *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< PYTHON::Session * >(argp1);
|
||||
+ if (!arg1) SWIG_exception_fail(SWIG_ValueError, "in method '" "Session_setSelf" "', argument " "1"" is NULL");
|
||||
arg2 = obj1;
|
||||
arg2 = swig_obj[1];
|
||||
(arg1)->setSelf(arg2);
|
||||
resultobj = SWIG_Py_Void();
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user