reswig
This commit is contained in:
parent
a46cb42cdd
commit
70f21b8287
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,8 +9,8 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class API {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected API(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,8 +9,8 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class CoreSession {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected CoreSession(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,8 +9,8 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class DTMF {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected DTMF(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,8 +9,8 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class Event {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected Event(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,8 +9,8 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class EventConsumer {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected EventConsumer(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,8 +9,8 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class IVRMenu {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected IVRMenu(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,7 +9,7 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class JavaSession extends CoreSession {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected JavaSession(long cPtr, boolean cMemoryOwn) {
|
||||
super(freeswitchJNI.JavaSession_SWIGUpcast(cPtr), cMemoryOwn);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_JavaVM {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_JavaVM(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_JavaVM(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_int {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_int(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_int(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_p_switch_event_node_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_p_switch_event_node_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_p_switch_event_node_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_call_cause_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_call_cause_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_call_cause_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_channel_state_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_channel_state_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_channel_state_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_channel_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_channel_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_channel_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_core_session_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_core_session_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_core_session_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_event_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_event_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_event_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_event_types_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_event_types_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_event_types_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_input_args_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_input_args_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_input_args_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_input_type_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_input_type_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_input_type_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_priority_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_priority_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_priority_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_queue_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_queue_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_queue_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_state_handler_table_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_state_handler_table_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_state_handler_table_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_status_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_status_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_status_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_switch_stream_handle_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_switch_stream_handle_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_switch_stream_handle_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_uint32_t {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_uint32_t(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_uint32_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,9 +9,9 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_void {
|
||||
private long swigCPtr;
|
||||
private transient long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_void(long cPtr, boolean futureUse) {
|
||||
protected SWIGTYPE_p_void(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,8 +9,8 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class Stream {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected Stream(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,8 +9,8 @@
|
|||
package org.freeswitch.swig;
|
||||
|
||||
public class input_callback_state_t {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
private transient long swigCPtr;
|
||||
protected transient boolean swigCMemOwn;
|
||||
|
||||
protected input_callback_state_t(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* 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
|
||||
|
@ -8,7 +8,11 @@
|
|||
* interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef SWIGJAVA
|
||||
#define SWIGJAVA
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -101,9 +105,11 @@ template <typename T> T SwigValueInit() {
|
|||
#endif
|
||||
|
||||
/* exporting methods */
|
||||
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
||||
# ifndef GCC_HASCLASSVISIBILITY
|
||||
# define GCC_HASCLASSVISIBILITY
|
||||
#if defined(__GNUC__)
|
||||
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
||||
# ifndef GCC_HASCLASSVISIBILITY
|
||||
# define GCC_HASCLASSVISIBILITY
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
@ -142,6 +148,19 @@ template <typename T> T SwigValueInit() {
|
|||
# define _SCL_SECURE_NO_DEPRECATE
|
||||
#endif
|
||||
|
||||
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
|
||||
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
|
||||
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
|
||||
#endif
|
||||
|
||||
/* Intel's compiler complains if a variable which was never initialised is
|
||||
* cast to void, which is a common idiom which we use to indicate that we
|
||||
* are aware a variable isn't used. So we just silence that warning.
|
||||
* See: https://github.com/swig/swig/issues/192 for more discussion.
|
||||
*/
|
||||
#ifdef __INTEL_COMPILER
|
||||
# pragma warning disable 592
|
||||
#endif
|
||||
|
||||
|
||||
/* Fix for jlong on some versions of gcc on Windows */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* 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
|
||||
|
@ -8,7 +8,11 @@
|
|||
* interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef SWIGLUA
|
||||
#define SWIGLUA
|
||||
#endif
|
||||
|
||||
#define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA
|
||||
#define SWIG_LUA_MODULE_GLOBAL
|
||||
|
||||
|
@ -103,9 +107,11 @@ template <typename T> T SwigValueInit() {
|
|||
#endif
|
||||
|
||||
/* exporting methods */
|
||||
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
||||
# ifndef GCC_HASCLASSVISIBILITY
|
||||
# define GCC_HASCLASSVISIBILITY
|
||||
#if defined(__GNUC__)
|
||||
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
||||
# ifndef GCC_HASCLASSVISIBILITY
|
||||
# define GCC_HASCLASSVISIBILITY
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
@ -144,6 +150,19 @@ template <typename T> T SwigValueInit() {
|
|||
# define _SCL_SECURE_NO_DEPRECATE
|
||||
#endif
|
||||
|
||||
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
|
||||
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
|
||||
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
|
||||
#endif
|
||||
|
||||
/* Intel's compiler complains if a variable which was never initialised is
|
||||
* cast to void, which is a common idiom which we use to indicate that we
|
||||
* are aware a variable isn't used. So we just silence that warning.
|
||||
* See: https://github.com/swig/swig/issues/192 for more discussion.
|
||||
*/
|
||||
#ifdef __INTEL_COMPILER
|
||||
# pragma warning disable 592
|
||||
#endif
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* swigrun.swg
|
||||
|
@ -642,16 +661,16 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|||
char d = *(c++);
|
||||
unsigned char uu;
|
||||
if ((d >= '0') && (d <= '9'))
|
||||
uu = ((d - '0') << 4);
|
||||
uu = (unsigned char)((d - '0') << 4);
|
||||
else if ((d >= 'a') && (d <= 'f'))
|
||||
uu = ((d - ('a'-10)) << 4);
|
||||
uu = (unsigned char)((d - ('a'-10)) << 4);
|
||||
else
|
||||
return (char *) 0;
|
||||
d = *(c++);
|
||||
if ((d >= '0') && (d <= '9'))
|
||||
uu |= (d - '0');
|
||||
uu |= (unsigned char)(d - '0');
|
||||
else if ((d >= 'a') && (d <= 'f'))
|
||||
uu |= (d - ('a'-10));
|
||||
uu |= (unsigned char)(d - ('a'-10));
|
||||
else
|
||||
return (char *) 0;
|
||||
*u = uu;
|
||||
|
@ -1526,6 +1545,44 @@ SWIGINTERN int SWIG_Lua_iterate_bases(lua_State *L, swig_type_info * SWIGUNUSED
|
|||
return result;
|
||||
}
|
||||
|
||||
/* The class.get method helper, performs the lookup of class attributes.
|
||||
* It returns an error code. Number of function return values is passed inside 'ret'.
|
||||
* first_arg is not used in this function because function always has 2 arguments.
|
||||
*/
|
||||
SWIGINTERN int SWIG_Lua_class_do_get_item(lua_State *L, swig_type_info *type, int SWIGUNUSED first_arg, int *ret)
|
||||
{
|
||||
/* there should be 2 params passed in
|
||||
(1) userdata (not the meta table)
|
||||
(2) string name of the attribute
|
||||
*/
|
||||
int bases_search_result;
|
||||
int substack_start = lua_gettop(L)-2;
|
||||
assert(first_arg == substack_start+1);
|
||||
lua_checkstack(L,5);
|
||||
assert(lua_isuserdata(L,-2)); /* just in case */
|
||||
lua_getmetatable(L,-2); /* get the meta table */
|
||||
assert(lua_istable(L,-1)); /* just in case */
|
||||
/* NEW: looks for the __getitem() fn
|
||||
this is a user provided get fn */
|
||||
SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */
|
||||
if (lua_iscfunction(L,-1)) /* if its there */
|
||||
{ /* found it so call the fn & return its value */
|
||||
lua_pushvalue(L,substack_start+1); /* the userdata */
|
||||
lua_pushvalue(L,substack_start+2); /* the parameter */
|
||||
lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */
|
||||
lua_remove(L,-2); /* stack tidy, remove metatable */
|
||||
if(ret) *ret = 1;
|
||||
return SWIG_OK;
|
||||
}
|
||||
lua_pop(L,1);
|
||||
/* Remove the metatable */
|
||||
lua_pop(L,1);
|
||||
/* Search in base classes */
|
||||
bases_search_result = SWIG_Lua_iterate_bases(L,type,substack_start+1,SWIG_Lua_class_do_get_item,ret);
|
||||
return bases_search_result; /* sorry not known */
|
||||
}
|
||||
|
||||
|
||||
/* The class.get method helper, performs the lookup of class attributes.
|
||||
* It returns an error code. Number of function return values is passed inside 'ret'.
|
||||
* first_arg is not used in this function because function always has 2 arguments.
|
||||
|
@ -1573,19 +1630,6 @@ SWIGINTERN int SWIG_Lua_class_do_get(lua_State *L, swig_type_info *type, int SW
|
|||
return SWIG_OK;
|
||||
}
|
||||
lua_pop(L,1); /* remove whatever was there */
|
||||
/* NEW: looks for the __getitem() fn
|
||||
this is a user provided get fn */
|
||||
SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */
|
||||
if (lua_iscfunction(L,-1)) /* if its there */
|
||||
{ /* found it so call the fn & return its value */
|
||||
lua_pushvalue(L,substack_start+1); /* the userdata */
|
||||
lua_pushvalue(L,substack_start+2); /* the parameter */
|
||||
lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */
|
||||
lua_remove(L,-2); /* stack tidy, remove metatable */
|
||||
if(ret) *ret = 1;
|
||||
return SWIG_OK;
|
||||
}
|
||||
lua_pop(L,1);
|
||||
/* Remove the metatable */
|
||||
lua_pop(L,1);
|
||||
/* Search in base classes */
|
||||
|
@ -1612,6 +1656,10 @@ SWIGINTERN int SWIG_Lua_class_get(lua_State *L)
|
|||
if(result == SWIG_OK)
|
||||
return ret;
|
||||
|
||||
result = SWIG_Lua_class_do_get_item(L,type,1,&ret);
|
||||
if(result == SWIG_OK)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1881,7 +1929,7 @@ SWIGINTERN void SWIG_Lua_init_base_class(lua_State *L,swig_lua_class *clss)
|
|||
|
||||
#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
|
||||
/* Merges two tables */
|
||||
SWIGINTERN int SWIG_Lua_merge_tables_by_index(lua_State *L, int target, int source)
|
||||
SWIGINTERN void SWIG_Lua_merge_tables_by_index(lua_State *L, int target, int source)
|
||||
{
|
||||
/* iterating */
|
||||
lua_pushnil(L);
|
||||
|
@ -1897,7 +1945,7 @@ SWIGINTERN int SWIG_Lua_merge_tables_by_index(lua_State *L, int target, int sour
|
|||
}
|
||||
|
||||
/* Merges two tables with given name. original - index of target metatable, base - index of source metatable */
|
||||
SWIGINTERN int SWIG_Lua_merge_tables(lua_State *L, const char* name, int original, int base)
|
||||
SWIGINTERN void SWIG_Lua_merge_tables(lua_State *L, const char* name, int original, int base)
|
||||
{
|
||||
/* push original[name], then base[name] */
|
||||
lua_pushstring(L,name);
|
||||
|
@ -1912,7 +1960,7 @@ SWIGINTERN int SWIG_Lua_merge_tables(lua_State *L, const char* name, int origina
|
|||
}
|
||||
|
||||
/* Function takes all symbols from base and adds it to derived class. It's just a helper. */
|
||||
SWIGINTERN int SWIG_Lua_class_squash_base(lua_State *L, swig_lua_class *base_cls)
|
||||
SWIGINTERN void SWIG_Lua_class_squash_base(lua_State *L, swig_lua_class *base_cls)
|
||||
{
|
||||
/* There is one parameter - original, i.e. 'derived' class metatable */
|
||||
assert(lua_istable(L,-1));
|
||||
|
@ -1926,7 +1974,7 @@ SWIGINTERN int SWIG_Lua_class_squash_base(lua_State *L, swig_lua_class *base_cls
|
|||
}
|
||||
|
||||
/* Function squashes all symbols from 'clss' bases into itself */
|
||||
SWIGINTERN int SWIG_Lua_class_squash_bases(lua_State *L, swig_lua_class *clss)
|
||||
SWIGINTERN void SWIG_Lua_class_squash_bases(lua_State *L, swig_lua_class *clss)
|
||||
{
|
||||
int i;
|
||||
SWIG_Lua_get_class_metatable(L,clss->fqname);
|
||||
|
@ -2551,7 +2599,7 @@ SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) {
|
|||
switch(constants[i].type) {
|
||||
case SWIG_LUA_INT:
|
||||
lua_pushstring(L,constants[i].name);
|
||||
lua_pushnumber(L,(lua_Number)constants[i].lvalue);
|
||||
lua_pushinteger(L,(lua_Number)constants[i].lvalue);
|
||||
lua_rawset(L,-3);
|
||||
break;
|
||||
case SWIG_LUA_FLOAT:
|
||||
|
@ -2561,7 +2609,10 @@ SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) {
|
|||
break;
|
||||
case SWIG_LUA_CHAR:
|
||||
lua_pushstring(L,constants[i].name);
|
||||
lua_pushfstring(L,"%c",(char)constants[i].lvalue);
|
||||
{
|
||||
char c = constants[i].lvalue;
|
||||
lua_pushlstring(L,&c,1);
|
||||
}
|
||||
lua_rawset(L,-3);
|
||||
break;
|
||||
case SWIG_LUA_STRING:
|
||||
|
@ -3684,7 +3735,7 @@ static int _wrap_DTMF_digit_get(lua_State* L) {
|
|||
}
|
||||
|
||||
result = (char) ((arg1)->digit);
|
||||
lua_pushfstring(L,"%c",result); SWIG_arg++;
|
||||
lua_pushlstring(L, &result, 1); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
@ -9688,7 +9739,7 @@ SWIGRUNTIME void
|
|||
SWIG_InitializeModule(void *clientdata) {
|
||||
size_t i;
|
||||
swig_module_info *module_head, *iter;
|
||||
int found, init;
|
||||
int init;
|
||||
|
||||
/* check to see if the circular list has been setup, if not, set it up */
|
||||
if (swig_module.next==0) {
|
||||
|
@ -9707,22 +9758,18 @@ SWIG_InitializeModule(void *clientdata) {
|
|||
/* This is the first module loaded for this interpreter */
|
||||
/* so set the swig module into the interpreter */
|
||||
SWIG_SetModule(clientdata, &swig_module);
|
||||
module_head = &swig_module;
|
||||
} else {
|
||||
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
|
||||
found=0;
|
||||
iter=module_head;
|
||||
do {
|
||||
if (iter==&swig_module) {
|
||||
found=1;
|
||||
break;
|
||||
/* Our module is already in the list, so there's nothing more to do. */
|
||||
return;
|
||||
}
|
||||
iter=iter->next;
|
||||
} while (iter!= module_head);
|
||||
|
||||
/* if the is found in the list, then all is done and we may leave */
|
||||
if (found) return;
|
||||
/* otherwise we must add out module into the list */
|
||||
/* otherwise we must add our module into the list */
|
||||
swig_module.next = module_head->next;
|
||||
module_head->next = &swig_module;
|
||||
}
|
||||
|
|
|
@ -34833,20 +34833,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_pass_callee_id(void * jarg1, vo
|
|||
}
|
||||
|
||||
|
||||
SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_var_false(void * jarg1, char * jarg2) {
|
||||
int jresult ;
|
||||
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
int result;
|
||||
|
||||
arg1 = (switch_channel_t *)jarg1;
|
||||
arg2 = (char *)jarg2;
|
||||
result = (int)switch_channel_var_false(arg1,(char const *)arg2);
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_var_true(void * jarg1, char * jarg2) {
|
||||
int jresult ;
|
||||
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
|
||||
|
@ -41953,35 +41939,6 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_name_get(void *
|
|||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_alias_set(void * jarg1, char * jarg2) {
|
||||
switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
|
||||
arg1 = (switch_srtp_crypto_suite_s *)jarg1;
|
||||
arg2 = (char *)jarg2;
|
||||
{
|
||||
if (arg2) {
|
||||
arg1->alias = (char const *) (new char[strlen((const char *)arg2)+1]);
|
||||
strcpy((char *)arg1->alias, (const char *)arg2);
|
||||
} else {
|
||||
arg1->alias = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_alias_get(void * jarg1) {
|
||||
char * jresult ;
|
||||
switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ;
|
||||
char *result = 0 ;
|
||||
|
||||
arg1 = (switch_srtp_crypto_suite_s *)jarg1;
|
||||
result = (char *) ((arg1)->alias);
|
||||
jresult = SWIG_csharp_string_callback((const char *)result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_type_set(void * jarg1, int jarg2) {
|
||||
switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ;
|
||||
switch_rtp_crypto_key_type_t arg2 ;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
# This file was automatically generated by SWIG (http://www.swig.org).
|
||||
# Version 3.0.2
|
||||
# Version 3.0.10
|
||||
#
|
||||
# Do not make changes to this file unless you know what you are doing--modify
|
||||
# the SWIG interface file instead.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* 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
|
||||
|
@ -8,7 +8,11 @@
|
|||
* interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef SWIGPERL
|
||||
#define SWIGPERL
|
||||
#endif
|
||||
|
||||
#define SWIG_CASTRANK_MODE
|
||||
|
||||
|
||||
|
@ -102,9 +106,11 @@ template <typename T> T SwigValueInit() {
|
|||
#endif
|
||||
|
||||
/* exporting methods */
|
||||
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
||||
# ifndef GCC_HASCLASSVISIBILITY
|
||||
# define GCC_HASCLASSVISIBILITY
|
||||
#if defined(__GNUC__)
|
||||
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
||||
# ifndef GCC_HASCLASSVISIBILITY
|
||||
# define GCC_HASCLASSVISIBILITY
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
@ -143,6 +149,19 @@ template <typename T> T SwigValueInit() {
|
|||
# define _SCL_SECURE_NO_DEPRECATE
|
||||
#endif
|
||||
|
||||
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
|
||||
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
|
||||
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
|
||||
#endif
|
||||
|
||||
/* Intel's compiler complains if a variable which was never initialised is
|
||||
* cast to void, which is a common idiom which we use to indicate that we
|
||||
* are aware a variable isn't used. So we just silence that warning.
|
||||
* See: https://github.com/swig/swig/issues/192 for more discussion.
|
||||
*/
|
||||
#ifdef __INTEL_COMPILER
|
||||
# pragma warning disable 592
|
||||
#endif
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* swigrun.swg
|
||||
|
@ -641,16 +660,16 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|||
char d = *(c++);
|
||||
unsigned char uu;
|
||||
if ((d >= '0') && (d <= '9'))
|
||||
uu = ((d - '0') << 4);
|
||||
uu = (unsigned char)((d - '0') << 4);
|
||||
else if ((d >= 'a') && (d <= 'f'))
|
||||
uu = ((d - ('a'-10)) << 4);
|
||||
uu = (unsigned char)((d - ('a'-10)) << 4);
|
||||
else
|
||||
return (char *) 0;
|
||||
d = *(c++);
|
||||
if ((d >= '0') && (d <= '9'))
|
||||
uu |= (d - '0');
|
||||
uu |= (unsigned char)(d - '0');
|
||||
else if ((d >= 'a') && (d <= 'f'))
|
||||
uu |= (d - ('a'-10));
|
||||
uu |= (unsigned char)(d - ('a'-10));
|
||||
else
|
||||
return (char *) 0;
|
||||
*u = uu;
|
||||
|
@ -1018,9 +1037,9 @@ typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *);
|
|||
|
||||
# ifdef PERL_OBJECT
|
||||
# define SWIG_croak_null() SWIG_Perl_croak_null(pPerl)
|
||||
static void SWIG_Perl_croak_null(CPerlObj *pPerl)
|
||||
static void SWIGUNUSED SWIG_Perl_croak_null(CPerlObj *pPerl)
|
||||
# else
|
||||
static void SWIG_croak_null()
|
||||
static void SWIGUNUSED SWIG_croak_null()
|
||||
# endif
|
||||
{
|
||||
SV *err = get_sv("@", GV_ADD);
|
||||
|
@ -1489,6 +1508,9 @@ SWIG_Perl_SetModule(swig_module_info *module) {
|
|||
#ifdef stat
|
||||
#undef stat
|
||||
#endif
|
||||
#ifdef seed
|
||||
#undef seed
|
||||
#endif
|
||||
|
||||
#ifdef bool
|
||||
/* Leave if macro is from C99 stdbool.h */
|
||||
|
@ -1549,7 +1571,7 @@ static swig_module_info swig_module = {swig_types, 29, 0, 0, 0, 0};
|
|||
#define SWIG_name "freeswitchc::boot_freeswitch"
|
||||
#define SWIG_prefix "freeswitchc::"
|
||||
|
||||
#define SWIGVERSION 0x030002
|
||||
#define SWIGVERSION 0x030010
|
||||
#define SWIG_VERSION SWIGVERSION
|
||||
|
||||
|
||||
|
@ -1664,6 +1686,17 @@ SWIG_FromCharPtr(const char *cptr)
|
|||
#endif
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifdef _MSC_VER
|
||||
# ifndef strtoull
|
||||
# define strtoull _strtoui64
|
||||
# endif
|
||||
# ifndef strtoll
|
||||
# define strtoll _strtoi64
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
SWIGINTERN int
|
||||
SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
|
||||
{
|
||||
|
@ -1736,14 +1769,14 @@ SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
|
|||
{
|
||||
if (SvUOK(obj)) {
|
||||
UV v = SvUV(obj);
|
||||
if (v <= LONG_MAX) {
|
||||
if (UVSIZE < sizeof(*val) || v <= LONG_MAX) {
|
||||
if (val) *val = v;
|
||||
return SWIG_OK;
|
||||
}
|
||||
return SWIG_OverflowError;
|
||||
} else if (SvIOK(obj)) {
|
||||
IV v = SvIV(obj);
|
||||
if (v >= LONG_MIN && v <= LONG_MAX) {
|
||||
if (IVSIZE <= sizeof(*val) || (v >= LONG_MIN && v <= LONG_MAX)) {
|
||||
if(val) *val = v;
|
||||
return SWIG_OK;
|
||||
}
|
||||
|
@ -1806,7 +1839,7 @@ SWIGINTERNINLINE SV *
|
|||
SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
|
||||
{
|
||||
SV *sv;
|
||||
if (value >= IV_MIN && value <= IV_MAX)
|
||||
if (IVSIZE >= sizeof(value) || (value >= IV_MIN && value <= IV_MAX))
|
||||
sv = newSViv(value);
|
||||
else
|
||||
sv = newSVpvf("%ld", value);
|
||||
|
@ -1877,14 +1910,14 @@ SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val)
|
|||
{
|
||||
if (SvUOK(obj)) {
|
||||
UV v = SvUV(obj);
|
||||
if (v <= ULONG_MAX) {
|
||||
if (UVSIZE <= sizeof(*val) || v <= ULONG_MAX) {
|
||||
if (val) *val = v;
|
||||
return SWIG_OK;
|
||||
}
|
||||
return SWIG_OverflowError;
|
||||
} else if (SvIOK(obj)) {
|
||||
IV v = SvIV(obj);
|
||||
if (v >= 0 && v <= ULONG_MAX) {
|
||||
if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULONG_MAX)) {
|
||||
if (val) *val = v;
|
||||
return SWIG_OK;
|
||||
}
|
||||
|
@ -1940,7 +1973,7 @@ SWIGINTERNINLINE SV *
|
|||
SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value)
|
||||
{
|
||||
SV *sv;
|
||||
if (value <= UV_MAX)
|
||||
if (UVSIZE >= sizeof(value) || value <= UV_MAX)
|
||||
sv = newSVuv(value);
|
||||
else
|
||||
sv = newSVpvf("%lu", value);
|
||||
|
@ -10599,7 +10632,7 @@ SWIGRUNTIME void
|
|||
SWIG_InitializeModule(void *clientdata) {
|
||||
size_t i;
|
||||
swig_module_info *module_head, *iter;
|
||||
int found, init;
|
||||
int init;
|
||||
|
||||
/* check to see if the circular list has been setup, if not, set it up */
|
||||
if (swig_module.next==0) {
|
||||
|
@ -10618,22 +10651,18 @@ SWIG_InitializeModule(void *clientdata) {
|
|||
/* This is the first module loaded for this interpreter */
|
||||
/* so set the swig module into the interpreter */
|
||||
SWIG_SetModule(clientdata, &swig_module);
|
||||
module_head = &swig_module;
|
||||
} else {
|
||||
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
|
||||
found=0;
|
||||
iter=module_head;
|
||||
do {
|
||||
if (iter==&swig_module) {
|
||||
found=1;
|
||||
break;
|
||||
/* Our module is already in the list, so there's nothing more to do. */
|
||||
return;
|
||||
}
|
||||
iter=iter->next;
|
||||
} while (iter!= module_head);
|
||||
|
||||
/* if the is found in the list, then all is done and we may leave */
|
||||
if (found) return;
|
||||
/* otherwise we must add out module into the list */
|
||||
/* otherwise we must add our module into the list */
|
||||
swig_module.next = module_head->next;
|
||||
module_head->next = &swig_module;
|
||||
}
|
||||
|
@ -10779,13 +10808,14 @@ SWIG_PropagateClientData(void) {
|
|||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus) && ! defined(XSPROTO)
|
||||
extern "C"
|
||||
#endif
|
||||
|
||||
XS(SWIG_init) {
|
||||
dXSARGS;
|
||||
int i;
|
||||
(void)items;
|
||||
|
||||
SWIG_InitializeModule(0);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This file was automatically generated by SWIG (http://www.swig.org).
|
||||
# Version 3.0.2
|
||||
# Version 3.0.10
|
||||
#
|
||||
# Do not make changes to this file unless you know what you are doing--modify
|
||||
# the SWIG interface file instead.
|
||||
|
@ -8,8 +8,19 @@
|
|||
|
||||
|
||||
|
||||
from sys import version_info
|
||||
if version_info >= (2,6,0):
|
||||
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
|
||||
|
@ -29,73 +40,91 @@ if version_info >= (2,6,0):
|
|||
del swig_import_helper
|
||||
else:
|
||||
import _freeswitch
|
||||
del version_info
|
||||
del _swig_python_version_info
|
||||
try:
|
||||
_swig_property = property
|
||||
except NameError:
|
||||
pass # Python < 2.2 doesn't have 'property'.
|
||||
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
|
||||
if (name == "thisown"): return self.this.own(value)
|
||||
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)
|
||||
method = class_type.__swig_setmethods__.get(name, None)
|
||||
if method:
|
||||
return method(self, value)
|
||||
if (not static):
|
||||
self.__dict__[name] = value
|
||||
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(name)
|
||||
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__()
|
||||
except: strthis = ""
|
||||
try:
|
||||
strthis = "proxy of " + self.this.__repr__()
|
||||
except __builtin__.Exception:
|
||||
strthis = ""
|
||||
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
||||
|
||||
try:
|
||||
_object = object
|
||||
_newclass = 1
|
||||
except AttributeError:
|
||||
class _object : pass
|
||||
except __builtin__.Exception:
|
||||
class _object:
|
||||
pass
|
||||
_newclass = 0
|
||||
|
||||
|
||||
|
||||
def setGlobalVariable(*args):
|
||||
return _freeswitch.setGlobalVariable(*args)
|
||||
def setGlobalVariable(var_name, var_val):
|
||||
return _freeswitch.setGlobalVariable(var_name, var_val)
|
||||
setGlobalVariable = _freeswitch.setGlobalVariable
|
||||
|
||||
def getGlobalVariable(*args):
|
||||
return _freeswitch.getGlobalVariable(*args)
|
||||
def getGlobalVariable(var_name):
|
||||
return _freeswitch.getGlobalVariable(var_name)
|
||||
getGlobalVariable = _freeswitch.getGlobalVariable
|
||||
|
||||
def consoleLog(*args):
|
||||
return _freeswitch.consoleLog(*args)
|
||||
def consoleLog(level_str, msg):
|
||||
return _freeswitch.consoleLog(level_str, msg)
|
||||
consoleLog = _freeswitch.consoleLog
|
||||
|
||||
def consoleLog2(*args):
|
||||
return _freeswitch.consoleLog2(*args)
|
||||
def consoleLog2(level_str, file, func, line, msg):
|
||||
return _freeswitch.consoleLog2(level_str, file, func, line, msg)
|
||||
consoleLog2 = _freeswitch.consoleLog2
|
||||
|
||||
def consoleCleanLog(*args):
|
||||
return _freeswitch.consoleCleanLog(*args)
|
||||
def consoleCleanLog(msg):
|
||||
return _freeswitch.consoleCleanLog(msg)
|
||||
consoleCleanLog = _freeswitch.consoleCleanLog
|
||||
|
||||
def running():
|
||||
return _freeswitch.running()
|
||||
return _freeswitch.running()
|
||||
running = _freeswitch.running
|
||||
|
||||
def email(*args):
|
||||
return _freeswitch.email(*args)
|
||||
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__ = {}
|
||||
|
@ -103,14 +132,21 @@ class IVRMenu(_object):
|
|||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, IVRMenu, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
this = _freeswitch.new_IVRMenu(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
|
||||
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
|
||||
__swig_destroy__ = _freeswitch.delete_IVRMenu
|
||||
__del__ = lambda self : None;
|
||||
def bindAction(self, *args): return _freeswitch.IVRMenu_bindAction(self, *args)
|
||||
def execute(self, *args): return _freeswitch.IVRMenu_execute(self, *args)
|
||||
__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)
|
||||
|
||||
|
@ -120,15 +156,24 @@ class API(_object):
|
|||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, API, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, s=None):
|
||||
|
||||
def __init__(self, s=None):
|
||||
this = _freeswitch.new_API(s)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
__swig_destroy__ = _freeswitch.delete_API
|
||||
__del__ = lambda self : None;
|
||||
def execute(self, *args): return _freeswitch.API_execute(self, *args)
|
||||
def executeString(self, *args): return _freeswitch.API_executeString(self, *args)
|
||||
def getTime(self): return _freeswitch.API_getTime(self)
|
||||
__del__ = lambda self: None
|
||||
|
||||
def execute(self, command, data=None):
|
||||
return _freeswitch.API_execute(self, command, data)
|
||||
|
||||
def executeString(self, command):
|
||||
return _freeswitch.API_executeString(self, command)
|
||||
|
||||
def getTime(self):
|
||||
return _freeswitch.API_getTime(self)
|
||||
API_swigregister = _freeswitch.API_swigregister
|
||||
API_swigregister(API)
|
||||
|
||||
|
@ -140,22 +185,29 @@ class input_callback_state_t(_object):
|
|||
__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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
def __init__(self):
|
||||
if _newclass:
|
||||
funcargs = _swig_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: self.this = this
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
__swig_destroy__ = _freeswitch.delete_input_callback_state_t
|
||||
__del__ = lambda self : None;
|
||||
__del__ = lambda self: None
|
||||
input_callback_state_t_swigregister = _freeswitch.input_callback_state_t_swigregister
|
||||
input_callback_state_t_swigregister(input_callback_state_t)
|
||||
|
||||
|
@ -170,16 +222,21 @@ class DTMF(_object):
|
|||
__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)
|
||||
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)
|
||||
def __init__(self, *args):
|
||||
if _newclass:
|
||||
duration = _swig_property(_freeswitch.DTMF_duration_get, _freeswitch.DTMF_duration_set)
|
||||
|
||||
def __init__(self, *args):
|
||||
this = _freeswitch.new_DTMF(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
__swig_destroy__ = _freeswitch.delete_DTMF
|
||||
__del__ = lambda self : None;
|
||||
__del__ = lambda self: None
|
||||
DTMF_swigregister = _freeswitch.DTMF_swigregister
|
||||
DTMF_swigregister(DTMF)
|
||||
|
||||
|
@ -189,16 +246,27 @@ class Stream(_object):
|
|||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, Stream, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
|
||||
def __init__(self, *args):
|
||||
this = _freeswitch.new_Stream(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
__swig_destroy__ = _freeswitch.delete_Stream
|
||||
__del__ = lambda self : None;
|
||||
def read(self, *args): return _freeswitch.Stream_read(self, *args)
|
||||
def write(self, *args): return _freeswitch.Stream_write(self, *args)
|
||||
def raw_write(self, *args): return _freeswitch.Stream_raw_write(self, *args)
|
||||
def get_data(self): return _freeswitch.Stream_get_data(self)
|
||||
__del__ = lambda self: None
|
||||
|
||||
def read(self, len):
|
||||
return _freeswitch.Stream_read(self, len)
|
||||
|
||||
def write(self, data):
|
||||
return _freeswitch.Stream_write(self, data)
|
||||
|
||||
def raw_write(self, data, len):
|
||||
return _freeswitch.Stream_raw_write(self, data, len)
|
||||
|
||||
def get_data(self):
|
||||
return _freeswitch.Stream_get_data(self)
|
||||
Stream_swigregister = _freeswitch.Stream_swigregister
|
||||
Stream_swigregister(Stream)
|
||||
|
||||
|
@ -210,30 +278,58 @@ class Event(_object):
|
|||
__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)
|
||||
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)
|
||||
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)
|
||||
def __init__(self, *args):
|
||||
if _newclass:
|
||||
mine = _swig_property(_freeswitch.Event_mine_get, _freeswitch.Event_mine_set)
|
||||
|
||||
def __init__(self, *args):
|
||||
this = _freeswitch.new_Event(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
__swig_destroy__ = _freeswitch.delete_Event
|
||||
__del__ = lambda self : None;
|
||||
def chat_execute(self, *args): return _freeswitch.Event_chat_execute(self, *args)
|
||||
def chat_send(self, dest_proto=None): return _freeswitch.Event_chat_send(self, dest_proto)
|
||||
def serialize(self, format=None): return _freeswitch.Event_serialize(self, format)
|
||||
def setPriority(self, *args): return _freeswitch.Event_setPriority(self, *args)
|
||||
def getHeader(self, *args): return _freeswitch.Event_getHeader(self, *args)
|
||||
def getBody(self): return _freeswitch.Event_getBody(self)
|
||||
def getType(self): return _freeswitch.Event_getType(self)
|
||||
def addBody(self, *args): return _freeswitch.Event_addBody(self, *args)
|
||||
def addHeader(self, *args): return _freeswitch.Event_addHeader(self, *args)
|
||||
def delHeader(self, *args): return _freeswitch.Event_delHeader(self, *args)
|
||||
def fire(self): return _freeswitch.Event_fire(self)
|
||||
__del__ = lambda self: None
|
||||
|
||||
def chat_execute(self, app, data=None):
|
||||
return _freeswitch.Event_chat_execute(self, app, data)
|
||||
|
||||
def chat_send(self, dest_proto=None):
|
||||
return _freeswitch.Event_chat_send(self, dest_proto)
|
||||
|
||||
def serialize(self, format=None):
|
||||
return _freeswitch.Event_serialize(self, format)
|
||||
|
||||
def setPriority(self, *args):
|
||||
return _freeswitch.Event_setPriority(self, *args)
|
||||
|
||||
def getHeader(self, header_name):
|
||||
return _freeswitch.Event_getHeader(self, header_name)
|
||||
|
||||
def getBody(self):
|
||||
return _freeswitch.Event_getBody(self)
|
||||
|
||||
def getType(self):
|
||||
return _freeswitch.Event_getType(self)
|
||||
|
||||
def addBody(self, value):
|
||||
return _freeswitch.Event_addBody(self, value)
|
||||
|
||||
def addHeader(self, header_name, value):
|
||||
return _freeswitch.Event_addHeader(self, header_name, value)
|
||||
|
||||
def delHeader(self, header_name):
|
||||
return _freeswitch.Event_delHeader(self, header_name)
|
||||
|
||||
def fire(self):
|
||||
return _freeswitch.Event_fire(self)
|
||||
Event_swigregister = _freeswitch.Event_swigregister
|
||||
Event_swigregister(Event)
|
||||
|
||||
|
@ -245,34 +341,50 @@ class EventConsumer(_object):
|
|||
__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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
def __init__(self, event_name=None, subclass_name="", len=5000):
|
||||
this = _freeswitch.new_EventConsumer(event_name, subclass_name, len)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
if _newclass:
|
||||
node_index = _swig_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
|
||||
__swig_destroy__ = _freeswitch.delete_EventConsumer
|
||||
__del__ = lambda self : None;
|
||||
def bind(self, *args): return _freeswitch.EventConsumer_bind(self, *args)
|
||||
def pop(self, block=0, timeout=0): return _freeswitch.EventConsumer_pop(self, block, timeout)
|
||||
def cleanup(self): return _freeswitch.EventConsumer_cleanup(self)
|
||||
__del__ = lambda self: None
|
||||
|
||||
def bind(self, *args):
|
||||
return _freeswitch.EventConsumer_bind(self, *args)
|
||||
|
||||
def pop(self, block=0, timeout=0):
|
||||
return _freeswitch.EventConsumer_pop(self, block, timeout)
|
||||
|
||||
def cleanup(self):
|
||||
return _freeswitch.EventConsumer_cleanup(self)
|
||||
EventConsumer_swigregister = _freeswitch.EventConsumer_swigregister
|
||||
EventConsumer_swigregister(EventConsumer)
|
||||
|
||||
|
@ -281,158 +393,301 @@ class CoreSession(_object):
|
|||
__setattr__ = lambda self, name, value: _swig_setattr(self, CoreSession, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, CoreSession, name)
|
||||
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
|
||||
|
||||
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;
|
||||
__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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
def insertFile(self, *args): return _freeswitch.CoreSession_insertFile(self, *args)
|
||||
def answer(self): return _freeswitch.CoreSession_answer(self)
|
||||
def _print(self, *args): return _freeswitch.CoreSession__print(self, *args)
|
||||
def preAnswer(self): return _freeswitch.CoreSession_preAnswer(self)
|
||||
def hangup(self, cause="normal_clearing"): return _freeswitch.CoreSession_hangup(self, cause)
|
||||
def hangupState(self): return _freeswitch.CoreSession_hangupState(self)
|
||||
def setVariable(self, *args): return _freeswitch.CoreSession_setVariable(self, *args)
|
||||
def setPrivate(self, *args): return _freeswitch.CoreSession_setPrivate(self, *args)
|
||||
def getPrivate(self, *args): return _freeswitch.CoreSession_getPrivate(self, *args)
|
||||
def getVariable(self, *args): return _freeswitch.CoreSession_getVariable(self, *args)
|
||||
def process_callback_result(self, *args): return _freeswitch.CoreSession_process_callback_result(self, *args)
|
||||
def say(self, *args): return _freeswitch.CoreSession_say(self, *args)
|
||||
def sayPhrase(self, *args): return _freeswitch.CoreSession_sayPhrase(self, *args)
|
||||
def hangupCause(self): return _freeswitch.CoreSession_hangupCause(self)
|
||||
def getState(self): return _freeswitch.CoreSession_getState(self)
|
||||
def recordFile(self, *args): return _freeswitch.CoreSession_recordFile(self, *args)
|
||||
def originate(self, *args): return _freeswitch.CoreSession_originate(self, *args)
|
||||
def destroy(self): return _freeswitch.CoreSession_destroy(self)
|
||||
def setDTMFCallback(self, *args): return _freeswitch.CoreSession_setDTMFCallback(self, *args)
|
||||
def speak(self, *args): return _freeswitch.CoreSession_speak(self, *args)
|
||||
def set_tts_parms(self, *args): return _freeswitch.CoreSession_set_tts_parms(self, *args)
|
||||
def set_tts_params(self, *args): return _freeswitch.CoreSession_set_tts_params(self, *args)
|
||||
def collectDigits(self, *args): return _freeswitch.CoreSession_collectDigits(self, *args)
|
||||
def getDigits(self, *args): return _freeswitch.CoreSession_getDigits(self, *args)
|
||||
def transfer(self, *args): return _freeswitch.CoreSession_transfer(self, *args)
|
||||
def read(self, *args): return _freeswitch.CoreSession_read(self, *args)
|
||||
def playAndGetDigits(self, *args): return _freeswitch.CoreSession_playAndGetDigits(self, *args)
|
||||
def streamFile(self, *args): return _freeswitch.CoreSession_streamFile(self, *args)
|
||||
def sleep(self, *args): return _freeswitch.CoreSession_sleep(self, *args)
|
||||
def flushEvents(self): return _freeswitch.CoreSession_flushEvents(self)
|
||||
def flushDigits(self): return _freeswitch.CoreSession_flushDigits(self)
|
||||
def setAutoHangup(self, *args): return _freeswitch.CoreSession_setAutoHangup(self, *args)
|
||||
def setHangupHook(self, *args): return _freeswitch.CoreSession_setHangupHook(self, *args)
|
||||
def ready(self): return _freeswitch.CoreSession_ready(self)
|
||||
def bridged(self): return _freeswitch.CoreSession_bridged(self)
|
||||
def answered(self): return _freeswitch.CoreSession_answered(self)
|
||||
def mediaReady(self): return _freeswitch.CoreSession_mediaReady(self)
|
||||
def waitForAnswer(self, *args): return _freeswitch.CoreSession_waitForAnswer(self, *args)
|
||||
def execute(self, *args): return _freeswitch.CoreSession_execute(self, *args)
|
||||
def sendEvent(self, *args): return _freeswitch.CoreSession_sendEvent(self, *args)
|
||||
def setEventData(self, *args): return _freeswitch.CoreSession_setEventData(self, *args)
|
||||
def getXMLCDR(self): return _freeswitch.CoreSession_getXMLCDR(self)
|
||||
def begin_allow_threads(self): return _freeswitch.CoreSession_begin_allow_threads(self)
|
||||
def end_allow_threads(self): return _freeswitch.CoreSession_end_allow_threads(self)
|
||||
def get_uuid(self): return _freeswitch.CoreSession_get_uuid(self)
|
||||
def get_cb_args(self): return _freeswitch.CoreSession_get_cb_args(self)
|
||||
def check_hangup_hook(self): return _freeswitch.CoreSession_check_hangup_hook(self)
|
||||
def run_dtmf_callback(self, *args): return _freeswitch.CoreSession_run_dtmf_callback(self, *args)
|
||||
def consoleLog(self, *args): return _freeswitch.CoreSession_consoleLog(self, *args)
|
||||
def consoleLog2(self, *args): return _freeswitch.CoreSession_consoleLog2(self, *args)
|
||||
if _newclass:
|
||||
voice_name = _swig_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)
|
||||
|
||||
def answer(self):
|
||||
return _freeswitch.CoreSession_answer(self)
|
||||
|
||||
def _print(self, txt):
|
||||
return _freeswitch.CoreSession__print(self, txt)
|
||||
|
||||
def preAnswer(self):
|
||||
return _freeswitch.CoreSession_preAnswer(self)
|
||||
|
||||
def hangup(self, *args):
|
||||
return _freeswitch.CoreSession_hangup(self, *args)
|
||||
|
||||
def hangupState(self):
|
||||
return _freeswitch.CoreSession_hangupState(self)
|
||||
|
||||
def setVariable(self, var, val):
|
||||
return _freeswitch.CoreSession_setVariable(self, var, val)
|
||||
|
||||
def setPrivate(self, var, val):
|
||||
return _freeswitch.CoreSession_setPrivate(self, var, val)
|
||||
|
||||
def getPrivate(self, var):
|
||||
return _freeswitch.CoreSession_getPrivate(self, var)
|
||||
|
||||
def getVariable(self, var):
|
||||
return _freeswitch.CoreSession_getVariable(self, var)
|
||||
|
||||
def process_callback_result(self, result):
|
||||
return _freeswitch.CoreSession_process_callback_result(self, result)
|
||||
|
||||
def say(self, tosay, module_name, say_type, say_method, say_gender=None):
|
||||
return _freeswitch.CoreSession_say(self, tosay, module_name, say_type, say_method, say_gender)
|
||||
|
||||
def sayPhrase(self, *args):
|
||||
return _freeswitch.CoreSession_sayPhrase(self, *args)
|
||||
|
||||
def hangupCause(self):
|
||||
return _freeswitch.CoreSession_hangupCause(self)
|
||||
|
||||
def getState(self):
|
||||
return _freeswitch.CoreSession_getState(self)
|
||||
|
||||
def recordFile(self, file_name, time_limit=0, silence_threshold=0, silence_hits=0):
|
||||
return _freeswitch.CoreSession_recordFile(self, file_name, time_limit, silence_threshold, silence_hits)
|
||||
|
||||
def originate(self, a_leg_session, dest, timeout=60, handlers=None):
|
||||
return _freeswitch.CoreSession_originate(self, a_leg_session, dest, timeout, handlers)
|
||||
|
||||
def destroy(self):
|
||||
return _freeswitch.CoreSession_destroy(self)
|
||||
|
||||
def setDTMFCallback(self, cbfunc, funcargs):
|
||||
return _freeswitch.CoreSession_setDTMFCallback(self, cbfunc, funcargs)
|
||||
|
||||
def speak(self, text):
|
||||
return _freeswitch.CoreSession_speak(self, text)
|
||||
|
||||
def set_tts_parms(self, tts_name, voice_name):
|
||||
return _freeswitch.CoreSession_set_tts_parms(self, tts_name, voice_name)
|
||||
|
||||
def set_tts_params(self, tts_name, voice_name):
|
||||
return _freeswitch.CoreSession_set_tts_params(self, tts_name, voice_name)
|
||||
|
||||
def collectDigits(self, *args):
|
||||
return _freeswitch.CoreSession_collectDigits(self, *args)
|
||||
|
||||
def getDigits(self, *args):
|
||||
return _freeswitch.CoreSession_getDigits(self, *args)
|
||||
|
||||
def transfer(self, extension, dialplan=None, context=None):
|
||||
return _freeswitch.CoreSession_transfer(self, extension, dialplan, context)
|
||||
|
||||
def read(self, min_digits, max_digits, prompt_audio_file, timeout, valid_terminators, digit_timeout=0):
|
||||
return _freeswitch.CoreSession_read(self, min_digits, max_digits, prompt_audio_file, timeout, valid_terminators, digit_timeout)
|
||||
|
||||
def playAndGetDigits(self, min_digits, max_digits, max_tries, timeout, terminators, audio_files, bad_input_audio_files, digits_regex, var_name=None, digit_timeout=0, transfer_on_failure=None):
|
||||
return _freeswitch.CoreSession_playAndGetDigits(self, min_digits, max_digits, max_tries, timeout, terminators, audio_files, bad_input_audio_files, digits_regex, var_name, digit_timeout, transfer_on_failure)
|
||||
|
||||
def streamFile(self, file, starting_sample_count=0):
|
||||
return _freeswitch.CoreSession_streamFile(self, file, starting_sample_count)
|
||||
|
||||
def sleep(self, ms, sync=0):
|
||||
return _freeswitch.CoreSession_sleep(self, ms, sync)
|
||||
|
||||
def flushEvents(self):
|
||||
return _freeswitch.CoreSession_flushEvents(self)
|
||||
|
||||
def flushDigits(self):
|
||||
return _freeswitch.CoreSession_flushDigits(self)
|
||||
|
||||
def setAutoHangup(self, val):
|
||||
return _freeswitch.CoreSession_setAutoHangup(self, val)
|
||||
|
||||
def setHangupHook(self, hangup_func):
|
||||
return _freeswitch.CoreSession_setHangupHook(self, hangup_func)
|
||||
|
||||
def ready(self):
|
||||
return _freeswitch.CoreSession_ready(self)
|
||||
|
||||
def bridged(self):
|
||||
return _freeswitch.CoreSession_bridged(self)
|
||||
|
||||
def answered(self):
|
||||
return _freeswitch.CoreSession_answered(self)
|
||||
|
||||
def mediaReady(self):
|
||||
return _freeswitch.CoreSession_mediaReady(self)
|
||||
|
||||
def waitForAnswer(self, calling_session):
|
||||
return _freeswitch.CoreSession_waitForAnswer(self, calling_session)
|
||||
|
||||
def execute(self, app, data=None):
|
||||
return _freeswitch.CoreSession_execute(self, app, data)
|
||||
|
||||
def sendEvent(self, sendME):
|
||||
return _freeswitch.CoreSession_sendEvent(self, sendME)
|
||||
|
||||
def setEventData(self, e):
|
||||
return _freeswitch.CoreSession_setEventData(self, e)
|
||||
|
||||
def getXMLCDR(self):
|
||||
return _freeswitch.CoreSession_getXMLCDR(self)
|
||||
|
||||
def begin_allow_threads(self):
|
||||
return _freeswitch.CoreSession_begin_allow_threads(self)
|
||||
|
||||
def end_allow_threads(self):
|
||||
return _freeswitch.CoreSession_end_allow_threads(self)
|
||||
|
||||
def get_uuid(self):
|
||||
return _freeswitch.CoreSession_get_uuid(self)
|
||||
|
||||
def get_cb_args(self):
|
||||
return _freeswitch.CoreSession_get_cb_args(self)
|
||||
|
||||
def check_hangup_hook(self):
|
||||
return _freeswitch.CoreSession_check_hangup_hook(self)
|
||||
|
||||
def run_dtmf_callback(self, input, itype):
|
||||
return _freeswitch.CoreSession_run_dtmf_callback(self, input, itype)
|
||||
|
||||
def consoleLog(self, level_str, msg):
|
||||
return _freeswitch.CoreSession_consoleLog(self, level_str, msg)
|
||||
|
||||
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)
|
||||
|
||||
|
||||
def console_log(*args):
|
||||
return _freeswitch.console_log(*args)
|
||||
def console_log(level_str, msg):
|
||||
return _freeswitch.console_log(level_str, msg)
|
||||
console_log = _freeswitch.console_log
|
||||
|
||||
def console_log2(*args):
|
||||
return _freeswitch.console_log2(*args)
|
||||
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(*args):
|
||||
return _freeswitch.console_clean_log(*args)
|
||||
def console_clean_log(msg):
|
||||
return _freeswitch.console_clean_log(msg)
|
||||
console_clean_log = _freeswitch.console_clean_log
|
||||
|
||||
def msleep(*args):
|
||||
return _freeswitch.msleep(*args)
|
||||
def msleep(ms):
|
||||
return _freeswitch.msleep(ms)
|
||||
msleep = _freeswitch.msleep
|
||||
|
||||
def bridge(*args):
|
||||
return _freeswitch.bridge(*args)
|
||||
def bridge(session_a, session_b):
|
||||
return _freeswitch.bridge(session_a, session_b)
|
||||
bridge = _freeswitch.bridge
|
||||
|
||||
def hanguphook(*args):
|
||||
return _freeswitch.hanguphook(*args)
|
||||
def hanguphook(session):
|
||||
return _freeswitch.hanguphook(session)
|
||||
hanguphook = _freeswitch.hanguphook
|
||||
|
||||
def dtmf_callback(*args):
|
||||
return _freeswitch.dtmf_callback(*args)
|
||||
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__',{}))
|
||||
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__',{}))
|
||||
for _s in [CoreSession]:
|
||||
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, Session, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
|
||||
def __init__(self, *args):
|
||||
this = _freeswitch.new_Session(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
try:
|
||||
self.this.append(this)
|
||||
except __builtin__.Exception:
|
||||
self.this = this
|
||||
__swig_destroy__ = _freeswitch.delete_Session
|
||||
__del__ = lambda self : None;
|
||||
def begin_allow_threads(self): return _freeswitch.Session_begin_allow_threads(self)
|
||||
def end_allow_threads(self): return _freeswitch.Session_end_allow_threads(self)
|
||||
def check_hangup_hook(self): return _freeswitch.Session_check_hangup_hook(self)
|
||||
def destroy(self): return _freeswitch.Session_destroy(self)
|
||||
def run_dtmf_callback(self, *args): return _freeswitch.Session_run_dtmf_callback(self, *args)
|
||||
def setInputCallback(self, *args): return _freeswitch.Session_setInputCallback(self, *args)
|
||||
def unsetInputCallback(self): return _freeswitch.Session_unsetInputCallback(self)
|
||||
def setHangupHook(self, *args): return _freeswitch.Session_setHangupHook(self, *args)
|
||||
def ready(self): return _freeswitch.Session_ready(self)
|
||||
__del__ = lambda self: None
|
||||
|
||||
def begin_allow_threads(self):
|
||||
return _freeswitch.Session_begin_allow_threads(self)
|
||||
|
||||
def end_allow_threads(self):
|
||||
return _freeswitch.Session_end_allow_threads(self)
|
||||
|
||||
def check_hangup_hook(self):
|
||||
return _freeswitch.Session_check_hangup_hook(self)
|
||||
|
||||
def destroy(self):
|
||||
return _freeswitch.Session_destroy(self)
|
||||
|
||||
def run_dtmf_callback(self, input, itype):
|
||||
return _freeswitch.Session_run_dtmf_callback(self, input, itype)
|
||||
|
||||
def setInputCallback(self, cbfunc, funcargs=None):
|
||||
return _freeswitch.Session_setInputCallback(self, cbfunc, funcargs)
|
||||
|
||||
def unsetInputCallback(self):
|
||||
return _freeswitch.Session_unsetInputCallback(self)
|
||||
|
||||
def setHangupHook(self, pyfunc, arg=None):
|
||||
return _freeswitch.Session_setHangupHook(self, pyfunc, arg)
|
||||
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
def setPython(self, *args): return _freeswitch.Session_setPython(self, *args)
|
||||
def setSelf(self, *args): return _freeswitch.Session_setSelf(self, *args)
|
||||
if _newclass:
|
||||
hangup_func_arg = _swig_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)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 3.0.2
|
||||
* Version 3.0.10
|
||||
*
|
||||
* 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
|
||||
|
@ -8,7 +8,11 @@
|
|||
* interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef SWIGPYTHON
|
||||
#define SWIGPYTHON
|
||||
#endif
|
||||
|
||||
#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
|
||||
|
||||
|
||||
|
@ -102,9 +106,11 @@ template <typename T> T SwigValueInit() {
|
|||
#endif
|
||||
|
||||
/* exporting methods */
|
||||
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
||||
# ifndef GCC_HASCLASSVISIBILITY
|
||||
# define GCC_HASCLASSVISIBILITY
|
||||
#if defined(__GNUC__)
|
||||
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
||||
# ifndef GCC_HASCLASSVISIBILITY
|
||||
# define GCC_HASCLASSVISIBILITY
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
@ -143,6 +149,19 @@ template <typename T> T SwigValueInit() {
|
|||
# define _SCL_SECURE_NO_DEPRECATE
|
||||
#endif
|
||||
|
||||
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
|
||||
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
|
||||
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
|
||||
#endif
|
||||
|
||||
/* Intel's compiler complains if a variable which was never initialised is
|
||||
* cast to void, which is a common idiom which we use to indicate that we
|
||||
* are aware a variable isn't used. So we just silence that warning.
|
||||
* See: https://github.com/swig/swig/issues/192 for more discussion.
|
||||
*/
|
||||
#ifdef __INTEL_COMPILER
|
||||
# pragma warning disable 592
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
|
||||
|
@ -651,16 +670,16 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|||
char d = *(c++);
|
||||
unsigned char uu;
|
||||
if ((d >= '0') && (d <= '9'))
|
||||
uu = ((d - '0') << 4);
|
||||
uu = (unsigned char)((d - '0') << 4);
|
||||
else if ((d >= 'a') && (d <= 'f'))
|
||||
uu = ((d - ('a'-10)) << 4);
|
||||
uu = (unsigned char)((d - ('a'-10)) << 4);
|
||||
else
|
||||
return (char *) 0;
|
||||
d = *(c++);
|
||||
if ((d >= '0') && (d <= '9'))
|
||||
uu |= (d - '0');
|
||||
uu |= (unsigned char)(d - '0');
|
||||
else if ((d >= 'a') && (d <= 'f'))
|
||||
uu |= (d - ('a'-10));
|
||||
uu |= (unsigned char)(d - ('a'-10));
|
||||
else
|
||||
return (char *) 0;
|
||||
*u = uu;
|
||||
|
@ -843,10 +862,6 @@ PyString_FromFormat(const char *fmt, ...) {
|
|||
}
|
||||
#endif
|
||||
|
||||
/* Add PyObject_Del for old Pythons */
|
||||
#if PY_VERSION_HEX < 0x01060000
|
||||
# define PyObject_Del(op) PyMem_DEL((op))
|
||||
#endif
|
||||
#ifndef PyObject_DEL
|
||||
# define PyObject_DEL PyObject_Del
|
||||
#endif
|
||||
|
@ -1312,7 +1327,7 @@ SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
|
|||
|
||||
/* Unpack the argument tuple */
|
||||
|
||||
SWIGINTERN int
|
||||
SWIGINTERN Py_ssize_t
|
||||
SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
|
||||
{
|
||||
if (!args) {
|
||||
|
@ -1326,7 +1341,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi
|
|||
}
|
||||
if (!PyTuple_Check(args)) {
|
||||
if (min <= 1 && max >= 1) {
|
||||
int i;
|
||||
Py_ssize_t i;
|
||||
objs[0] = args;
|
||||
for (i = 1; i < max; ++i) {
|
||||
objs[i] = 0;
|
||||
|
@ -1346,7 +1361,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi
|
|||
name, (min == max ? "" : "at most "), (int)max, (int)l);
|
||||
return 0;
|
||||
} else {
|
||||
int i;
|
||||
Py_ssize_t i;
|
||||
for (i = 0; i < l; ++i) {
|
||||
objs[i] = PyTuple_GET_ITEM(args, i);
|
||||
}
|
||||
|
@ -1532,6 +1547,23 @@ typedef struct {
|
|||
#endif
|
||||
} SwigPyObject;
|
||||
|
||||
|
||||
#ifdef SWIGPYTHON_BUILTIN
|
||||
|
||||
SWIGRUNTIME PyObject *
|
||||
SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
|
||||
{
|
||||
SwigPyObject *sobj = (SwigPyObject *)v;
|
||||
|
||||
if (!sobj->dict)
|
||||
sobj->dict = PyDict_New();
|
||||
|
||||
Py_INCREF(sobj->dict);
|
||||
return sobj->dict;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
SWIGRUNTIME PyObject *
|
||||
SwigPyObject_long(SwigPyObject *v)
|
||||
{
|
||||
|
@ -1670,16 +1702,32 @@ SwigPyObject_dealloc(PyObject *v)
|
|||
if (destroy) {
|
||||
/* destroy is always a VARARGS method */
|
||||
PyObject *res;
|
||||
|
||||
/* PyObject_CallFunction() has the potential to silently drop
|
||||
the active active exception. In cases of unnamed temporary
|
||||
variable or where we just finished iterating over a generator
|
||||
StopIteration will be active right now, and this needs to
|
||||
remain true upon return from SwigPyObject_dealloc. So save
|
||||
and restore. */
|
||||
|
||||
PyObject *val = NULL, *type = NULL, *tb = NULL;
|
||||
PyErr_Fetch(&val, &type, &tb);
|
||||
|
||||
if (data->delargs) {
|
||||
/* we need to create a temporary object to carry the destroy operation */
|
||||
PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
|
||||
res = SWIG_Python_CallFunctor(destroy, tmp);
|
||||
Py_DECREF(tmp);
|
||||
/* we need to create a temporary object to carry the destroy operation */
|
||||
PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
|
||||
res = SWIG_Python_CallFunctor(destroy, tmp);
|
||||
Py_DECREF(tmp);
|
||||
} else {
|
||||
PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
|
||||
PyObject *mself = PyCFunction_GET_SELF(destroy);
|
||||
res = ((*meth)(mself, v));
|
||||
PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
|
||||
PyObject *mself = PyCFunction_GET_SELF(destroy);
|
||||
res = ((*meth)(mself, v));
|
||||
}
|
||||
if (!res)
|
||||
PyErr_WriteUnraisable(destroy);
|
||||
|
||||
PyErr_Restore(val, type, tb);
|
||||
|
||||
Py_XDECREF(res);
|
||||
}
|
||||
#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
|
||||
|
@ -1703,6 +1751,7 @@ SwigPyObject_append(PyObject* v, PyObject* next)
|
|||
next = tmp;
|
||||
#endif
|
||||
if (!SwigPyObject_Check(next)) {
|
||||
PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
|
||||
return NULL;
|
||||
}
|
||||
sobj->next = next;
|
||||
|
@ -1802,7 +1851,7 @@ swigobject_methods[] = {
|
|||
static PyMethodDef
|
||||
swigobject_methods[] = {
|
||||
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
|
||||
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
|
||||
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"},
|
||||
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
|
||||
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
|
||||
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
|
||||
|
@ -1858,7 +1907,9 @@ SwigPyObject_TypeOnce(void) {
|
|||
(unaryfunc)SwigPyObject_oct, /*nb_oct*/
|
||||
(unaryfunc)SwigPyObject_hex, /*nb_hex*/
|
||||
#endif
|
||||
#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */
|
||||
#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
|
||||
#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
|
||||
#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
|
||||
|
@ -1938,10 +1989,19 @@ SwigPyObject_TypeOnce(void) {
|
|||
0, /* tp_del */
|
||||
#endif
|
||||
#if PY_VERSION_HEX >= 0x02060000
|
||||
0, /* tp_version */
|
||||
0, /* tp_version_tag */
|
||||
#endif
|
||||
#if PY_VERSION_HEX >= 0x03040000
|
||||
0, /* tp_finalize */
|
||||
#endif
|
||||
#ifdef COUNT_ALLOCS
|
||||
0,0,0,0 /* tp_alloc -> tp_next */
|
||||
0, /* tp_allocs */
|
||||
0, /* tp_frees */
|
||||
0, /* tp_maxalloc */
|
||||
#if PY_VERSION_HEX >= 0x02050000
|
||||
0, /* tp_prev */
|
||||
#endif
|
||||
0 /* tp_next */
|
||||
#endif
|
||||
};
|
||||
swigpyobject_type = tmp;
|
||||
|
@ -2117,10 +2177,19 @@ SwigPyPacked_TypeOnce(void) {
|
|||
0, /* tp_del */
|
||||
#endif
|
||||
#if PY_VERSION_HEX >= 0x02060000
|
||||
0, /* tp_version */
|
||||
0, /* tp_version_tag */
|
||||
#endif
|
||||
#if PY_VERSION_HEX >= 0x03040000
|
||||
0, /* tp_finalize */
|
||||
#endif
|
||||
#ifdef COUNT_ALLOCS
|
||||
0,0,0,0 /* tp_alloc -> tp_next */
|
||||
0, /* tp_allocs */
|
||||
0, /* tp_frees */
|
||||
0, /* tp_maxalloc */
|
||||
#if PY_VERSION_HEX >= 0x02050000
|
||||
0, /* tp_prev */
|
||||
#endif
|
||||
0 /* tp_next */
|
||||
#endif
|
||||
};
|
||||
swigpypacked_type = tmp;
|
||||
|
@ -2571,18 +2640,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f
|
|||
newobj = (SwigPyObject *) newobj->next;
|
||||
newobj->next = next_self;
|
||||
newobj = (SwigPyObject *)next_self;
|
||||
#ifdef SWIGPYTHON_BUILTIN
|
||||
newobj->dict = 0;
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
newobj = PyObject_New(SwigPyObject, clientdata->pytype);
|
||||
#ifdef SWIGPYTHON_BUILTIN
|
||||
newobj->dict = 0;
|
||||
#endif
|
||||
}
|
||||
if (newobj) {
|
||||
newobj->ptr = ptr;
|
||||
newobj->ty = type;
|
||||
newobj->own = own;
|
||||
newobj->next = 0;
|
||||
#ifdef SWIGPYTHON_BUILTIN
|
||||
newobj->dict = 0;
|
||||
#endif
|
||||
return (PyObject*) newobj;
|
||||
}
|
||||
return SWIG_Py_Void();
|
||||
|
@ -2645,13 +2717,11 @@ PyModule_AddObject(PyObject *m, char *name, PyObject *o)
|
|||
{
|
||||
PyObject *dict;
|
||||
if (!PyModule_Check(m)) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"PyModule_AddObject() needs module as first arg");
|
||||
PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg");
|
||||
return SWIG_ERROR;
|
||||
}
|
||||
if (!o) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"PyModule_AddObject() needs non-NULL value");
|
||||
PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value");
|
||||
return SWIG_ERROR;
|
||||
}
|
||||
|
||||
|
@ -2987,7 +3057,7 @@ static swig_module_info swig_module = {swig_types, 28, 0, 0, 0, 0};
|
|||
#endif
|
||||
#define SWIG_name "_freeswitch"
|
||||
|
||||
#define SWIGVERSION 0x030002
|
||||
#define SWIGVERSION 0x030010
|
||||
#define SWIG_VERSION SWIGVERSION
|
||||
|
||||
|
||||
|
@ -3010,27 +3080,35 @@ namespace swig {
|
|||
|
||||
SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
|
||||
{
|
||||
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
|
||||
Py_XINCREF(_obj);
|
||||
SWIG_PYTHON_THREAD_END_BLOCK;
|
||||
}
|
||||
|
||||
SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
|
||||
{
|
||||
if (initial_ref) {
|
||||
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
|
||||
Py_XINCREF(_obj);
|
||||
SWIG_PYTHON_THREAD_END_BLOCK;
|
||||
}
|
||||
}
|
||||
|
||||
SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
|
||||
{
|
||||
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
|
||||
Py_XINCREF(item._obj);
|
||||
Py_XDECREF(_obj);
|
||||
_obj = item._obj;
|
||||
SWIG_PYTHON_THREAD_END_BLOCK;
|
||||
return *this;
|
||||
}
|
||||
|
||||
~SwigPtr_PyObject()
|
||||
{
|
||||
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
|
||||
Py_XDECREF(_obj);
|
||||
SWIG_PYTHON_THREAD_END_BLOCK;
|
||||
}
|
||||
|
||||
operator PyObject *() const
|
||||
|
@ -3081,13 +3159,18 @@ SWIGINTERN int
|
|||
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
|
||||
{
|
||||
#if PY_VERSION_HEX>=0x03000000
|
||||
#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
|
||||
if (PyBytes_Check(obj))
|
||||
#else
|
||||
if (PyUnicode_Check(obj))
|
||||
#endif
|
||||
#else
|
||||
if (PyString_Check(obj))
|
||||
#endif
|
||||
{
|
||||
char *cstr; Py_ssize_t len;
|
||||
#if PY_VERSION_HEX>=0x03000000
|
||||
#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
|
||||
if (!alloc && cptr) {
|
||||
/* We can't allow converting without allocation, since the internal
|
||||
representation of string in Python 3 is UCS-2/UCS-4 but we require
|
||||
|
@ -3096,8 +3179,9 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
|
|||
return SWIG_RuntimeError;
|
||||
}
|
||||
obj = PyUnicode_AsUTF8String(obj);
|
||||
PyBytes_AsStringAndSize(obj, &cstr, &len);
|
||||
if(alloc) *alloc = SWIG_NEWOBJ;
|
||||
#endif
|
||||
PyBytes_AsStringAndSize(obj, &cstr, &len);
|
||||
#else
|
||||
PyString_AsStringAndSize(obj, &cstr, &len);
|
||||
#endif
|
||||
|
@ -3117,27 +3201,58 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
|
|||
#else
|
||||
if (*alloc == SWIG_NEWOBJ)
|
||||
#endif
|
||||
{
|
||||
*cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
|
||||
*alloc = SWIG_NEWOBJ;
|
||||
}
|
||||
else {
|
||||
{
|
||||
*cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
|
||||
*alloc = SWIG_NEWOBJ;
|
||||
} else {
|
||||
*cptr = cstr;
|
||||
*alloc = SWIG_OLDOBJ;
|
||||
}
|
||||
} else {
|
||||
#if PY_VERSION_HEX>=0x03000000
|
||||
assert(0); /* Should never reach here in Python 3 */
|
||||
#endif
|
||||
#if PY_VERSION_HEX>=0x03000000
|
||||
#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
|
||||
*cptr = PyBytes_AsString(obj);
|
||||
#else
|
||||
assert(0); /* Should never reach here with Unicode strings in Python 3 */
|
||||
#endif
|
||||
#else
|
||||
*cptr = SWIG_Python_str_AsChar(obj);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
if (psize) *psize = len + 1;
|
||||
#if PY_VERSION_HEX>=0x03000000
|
||||
#if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
|
||||
Py_XDECREF(obj);
|
||||
#endif
|
||||
return SWIG_OK;
|
||||
} else {
|
||||
#if defined(SWIG_PYTHON_2_UNICODE)
|
||||
#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
|
||||
#error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
|
||||
#endif
|
||||
#if PY_VERSION_HEX<0x03000000
|
||||
if (PyUnicode_Check(obj)) {
|
||||
char *cstr; Py_ssize_t len;
|
||||
if (!alloc && cptr) {
|
||||
return SWIG_RuntimeError;
|
||||
}
|
||||
obj = PyUnicode_AsUTF8String(obj);
|
||||
if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
|
||||
if (cptr) {
|
||||
if (alloc) *alloc = SWIG_NEWOBJ;
|
||||
*cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
|
||||
}
|
||||
if (psize) *psize = len + 1;
|
||||
|
||||
Py_XDECREF(obj);
|
||||
return SWIG_OK;
|
||||
} else {
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
||||
if (pchar_descriptor) {
|
||||
void* vptr = 0;
|
||||
|
@ -3166,13 +3281,17 @@ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
|||
SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
|
||||
} else {
|
||||
#if PY_VERSION_HEX >= 0x03000000
|
||||
#if PY_VERSION_HEX >= 0x03010000
|
||||
return PyUnicode_DecodeUTF8(carray, static_cast< int >(size), "surrogateescape");
|
||||
#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
|
||||
return PyBytes_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
|
||||
#else
|
||||
return PyUnicode_FromStringAndSize(carray, static_cast< int >(size));
|
||||
#if PY_VERSION_HEX >= 0x03010000
|
||||
return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape");
|
||||
#else
|
||||
return PyUnicode_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
return PyString_FromStringAndSize(carray, static_cast< int >(size));
|
||||
return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
|
@ -3205,9 +3324,11 @@ SWIG_AsVal_double (PyObject *obj, double *val)
|
|||
if (PyFloat_Check(obj)) {
|
||||
if (val) *val = PyFloat_AsDouble(obj);
|
||||
return SWIG_OK;
|
||||
#if PY_VERSION_HEX < 0x03000000
|
||||
} else if (PyInt_Check(obj)) {
|
||||
if (val) *val = PyInt_AsLong(obj);
|
||||
return SWIG_OK;
|
||||
#endif
|
||||
} else if (PyLong_Check(obj)) {
|
||||
double v = PyLong_AsDouble(obj);
|
||||
if (!PyErr_Occurred()) {
|
||||
|
@ -3281,16 +3402,20 @@ SWIG_CanCastAsInteger(double *d, double min, double max) {
|
|||
SWIGINTERN int
|
||||
SWIG_AsVal_long (PyObject *obj, long* val)
|
||||
{
|
||||
#if PY_VERSION_HEX < 0x03000000
|
||||
if (PyInt_Check(obj)) {
|
||||
if (val) *val = PyInt_AsLong(obj);
|
||||
return SWIG_OK;
|
||||
} else if (PyLong_Check(obj)) {
|
||||
} else
|
||||
#endif
|
||||
if (PyLong_Check(obj)) {
|
||||
long v = PyLong_AsLong(obj);
|
||||
if (!PyErr_Occurred()) {
|
||||
if (val) *val = v;
|
||||
return SWIG_OK;
|
||||
} else {
|
||||
PyErr_Clear();
|
||||
return SWIG_OverflowError;
|
||||
}
|
||||
}
|
||||
#ifdef SWIG_PYTHON_CAST_MODE
|
||||
|
@ -3419,18 +3544,7 @@ SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
|
|||
return SWIG_OK;
|
||||
} else {
|
||||
PyErr_Clear();
|
||||
#if PY_VERSION_HEX >= 0x03000000
|
||||
{
|
||||
long v = PyLong_AsLong(obj);
|
||||
if (!PyErr_Occurred()) {
|
||||
if (v < 0) {
|
||||
return SWIG_OverflowError;
|
||||
}
|
||||
} else {
|
||||
PyErr_Clear();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return SWIG_OverflowError;
|
||||
}
|
||||
}
|
||||
#ifdef SWIG_PYTHON_CAST_MODE
|
||||
|
@ -4755,12 +4869,14 @@ fail:
|
|||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_new_Stream(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[2];
|
||||
int ii;
|
||||
Py_ssize_t argc;
|
||||
PyObject *argv[2] = {
|
||||
0
|
||||
};
|
||||
Py_ssize_t ii;
|
||||
|
||||
if (!PyTuple_Check(args)) SWIG_fail;
|
||||
argc = args ? (int)PyObject_Length(args) : 0;
|
||||
argc = args ? PyObject_Length(args) : 0;
|
||||
for (ii = 0; (ii < 1) && (ii < argc); ii++) {
|
||||
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
||||
}
|
||||
|
@ -5180,12 +5296,14 @@ fail:
|
|||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_new_Event(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[3];
|
||||
int ii;
|
||||
Py_ssize_t argc;
|
||||
PyObject *argv[3] = {
|
||||
0
|
||||
};
|
||||
Py_ssize_t ii;
|
||||
|
||||
if (!PyTuple_Check(args)) SWIG_fail;
|
||||
argc = args ? (int)PyObject_Length(args) : 0;
|
||||
argc = args ? PyObject_Length(args) : 0;
|
||||
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
|
||||
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
||||
}
|
||||
|
@ -7781,12 +7899,14 @@ fail:
|
|||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_CoreSession_collectDigits(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[4];
|
||||
int ii;
|
||||
Py_ssize_t argc;
|
||||
PyObject *argv[4] = {
|
||||
0
|
||||
};
|
||||
Py_ssize_t ii;
|
||||
|
||||
if (!PyTuple_Check(args)) SWIG_fail;
|
||||
argc = args ? (int)PyObject_Length(args) : 0;
|
||||
argc = args ? PyObject_Length(args) : 0;
|
||||
for (ii = 0; (ii < 3) && (ii < argc); ii++) {
|
||||
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
||||
}
|
||||
|
@ -8020,12 +8140,14 @@ fail:
|
|||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_CoreSession_getDigits(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[7];
|
||||
int ii;
|
||||
Py_ssize_t argc;
|
||||
PyObject *argv[7] = {
|
||||
0
|
||||
};
|
||||
Py_ssize_t ii;
|
||||
|
||||
if (!PyTuple_Check(args)) SWIG_fail;
|
||||
argc = args ? (int)PyObject_Length(args) : 0;
|
||||
argc = args ? PyObject_Length(args) : 0;
|
||||
for (ii = 0; (ii < 6) && (ii < argc); ii++) {
|
||||
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
||||
}
|
||||
|
@ -9511,12 +9633,14 @@ fail:
|
|||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_new_Session(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[3];
|
||||
int ii;
|
||||
Py_ssize_t argc;
|
||||
PyObject *argv[3] = {
|
||||
0
|
||||
};
|
||||
Py_ssize_t ii;
|
||||
|
||||
if (!PyTuple_Check(args)) SWIG_fail;
|
||||
argc = args ? (int)PyObject_Length(args) : 0;
|
||||
argc = args ? PyObject_Length(args) : 0;
|
||||
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
|
||||
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
||||
}
|
||||
|
@ -9770,12 +9894,14 @@ fail:
|
|||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Session_setInputCallback(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[4];
|
||||
int ii;
|
||||
Py_ssize_t argc;
|
||||
PyObject *argv[4] = {
|
||||
0
|
||||
};
|
||||
Py_ssize_t ii;
|
||||
|
||||
if (!PyTuple_Check(args)) SWIG_fail;
|
||||
argc = args ? (int)PyObject_Length(args) : 0;
|
||||
argc = args ? PyObject_Length(args) : 0;
|
||||
for (ii = 0; (ii < 3) && (ii < argc); ii++) {
|
||||
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
||||
}
|
||||
|
@ -9889,12 +10015,14 @@ fail:
|
|||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Session_setHangupHook(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[4];
|
||||
int ii;
|
||||
Py_ssize_t argc;
|
||||
PyObject *argv[4] = {
|
||||
0
|
||||
};
|
||||
Py_ssize_t ii;
|
||||
|
||||
if (!PyTuple_Check(args)) SWIG_fail;
|
||||
argc = args ? (int)PyObject_Length(args) : 0;
|
||||
argc = args ? PyObject_Length(args) : 0;
|
||||
for (ii = 0; (ii < 3) && (ii < argc); ii++) {
|
||||
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
||||
}
|
||||
|
@ -10577,7 +10705,7 @@ SWIGRUNTIME void
|
|||
SWIG_InitializeModule(void *clientdata) {
|
||||
size_t i;
|
||||
swig_module_info *module_head, *iter;
|
||||
int found, init;
|
||||
int init;
|
||||
|
||||
/* check to see if the circular list has been setup, if not, set it up */
|
||||
if (swig_module.next==0) {
|
||||
|
@ -10596,22 +10724,18 @@ SWIG_InitializeModule(void *clientdata) {
|
|||
/* This is the first module loaded for this interpreter */
|
||||
/* so set the swig module into the interpreter */
|
||||
SWIG_SetModule(clientdata, &swig_module);
|
||||
module_head = &swig_module;
|
||||
} else {
|
||||
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
|
||||
found=0;
|
||||
iter=module_head;
|
||||
do {
|
||||
if (iter==&swig_module) {
|
||||
found=1;
|
||||
break;
|
||||
/* Our module is already in the list, so there's nothing more to do. */
|
||||
return;
|
||||
}
|
||||
iter=iter->next;
|
||||
} while (iter!= module_head);
|
||||
|
||||
/* if the is found in the list, then all is done and we may leave */
|
||||
if (found) return;
|
||||
/* otherwise we must add out module into the list */
|
||||
/* otherwise we must add our module into the list */
|
||||
swig_module.next = module_head->next;
|
||||
module_head->next = &swig_module;
|
||||
}
|
||||
|
@ -10930,10 +11054,19 @@ extern "C" {
|
|||
0, /* tp_del */
|
||||
#endif
|
||||
#if PY_VERSION_HEX >= 0x02060000
|
||||
0, /* tp_version */
|
||||
0, /* tp_version_tag */
|
||||
#endif
|
||||
#if PY_VERSION_HEX >= 0x03040000
|
||||
0, /* tp_finalize */
|
||||
#endif
|
||||
#ifdef COUNT_ALLOCS
|
||||
0,0,0,0 /* tp_alloc -> tp_next */
|
||||
0, /* tp_allocs */
|
||||
0, /* tp_frees */
|
||||
0, /* tp_maxalloc */
|
||||
#if PY_VERSION_HEX >= 0x02050000
|
||||
0, /* tp_prev */
|
||||
#endif
|
||||
0 /* tp_next */
|
||||
#endif
|
||||
};
|
||||
varlink_type = tmp;
|
||||
|
@ -11022,7 +11155,9 @@ extern "C" {
|
|||
size_t i;
|
||||
for (i = 0; methods[i].ml_name; ++i) {
|
||||
const char *c = methods[i].ml_doc;
|
||||
if (c && (c = strstr(c, "swig_ptr: "))) {
|
||||
if (!c) continue;
|
||||
c = strstr(c, "swig_ptr: ");
|
||||
if (c) {
|
||||
int j;
|
||||
swig_const_info *ci = 0;
|
||||
const char *name = c + 10;
|
||||
|
@ -11124,6 +11259,7 @@ SWIG_init(void) {
|
|||
PyObject *public_interface, *public_symbol;
|
||||
PyObject *this_descr;
|
||||
PyObject *thisown_descr;
|
||||
PyObject *self = 0;
|
||||
int i;
|
||||
|
||||
(void)builtin_pytype;
|
||||
|
@ -11131,6 +11267,7 @@ SWIG_init(void) {
|
|||
(void)builtin_basetype;
|
||||
(void)tuple;
|
||||
(void)static_getset;
|
||||
(void)self;
|
||||
|
||||
/* metatype is used to implement static member variables. */
|
||||
metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
|
||||
|
@ -11150,6 +11287,7 @@ SWIG_init(void) {
|
|||
#else
|
||||
m = Py_InitModule((char *) SWIG_name, SwigMethods);
|
||||
#endif
|
||||
|
||||
md = d = PyModule_GetDict(m);
|
||||
(void)md;
|
||||
|
||||
|
|
Loading…
Reference in New Issue