return freeswitchJNI.CoreSession_getDigits__SWIG_1(swigCPtr, this, maxdigits, terminators, timeout, interdigit);
}
+ public String getDigits(int maxdigits, String terminators, int timeout, int interdigit, int abstimeout) {
+ return freeswitchJNI.CoreSession_getDigits__SWIG_2(swigCPtr, this, maxdigits, terminators, timeout, interdigit, abstimeout);
+ }
+
public int transfer(String extension, String dialplan, String context) {
return freeswitchJNI.CoreSession_transfer(swigCPtr, this, extension, dialplan, context);
}
public final static native int CoreSession_collectDigits__SWIG_1(long jarg1, CoreSession jarg1_, int jarg2, int jarg3);
public final static native String CoreSession_getDigits__SWIG_0(long jarg1, CoreSession jarg1_, int jarg2, String jarg3, int jarg4);
public final static native String CoreSession_getDigits__SWIG_1(long jarg1, CoreSession jarg1_, int jarg2, String jarg3, int jarg4, int jarg5);
+ public final static native String CoreSession_getDigits__SWIG_2(long jarg1, CoreSession jarg1_, int jarg2, String jarg3, int jarg4, int jarg5, int jarg6);
public final static native int CoreSession_transfer(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, String jarg4);
public final static native String CoreSession_read(long jarg1, CoreSession jarg1_, int jarg2, int jarg3, String jarg4, int jarg5, String jarg6, int jarg7);
public final static native String CoreSession_playAndGetDigits(long jarg1, CoreSession jarg1_, int jarg2, int jarg3, int jarg4, int jarg5, String jarg6, String jarg7, String jarg8, String jarg9, String jarg10, int jarg11, String jarg12);
}
+SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1getDigits_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4, jint jarg5, jint jarg6) {
+ jstring jresult = 0 ;
+ CoreSession *arg1 = (CoreSession *) 0 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ int arg4 ;
+ int arg5 ;
+ int arg6 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CoreSession **)&jarg1;
+ arg2 = (int)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = (int)jarg4;
+ arg5 = (int)jarg5;
+ arg6 = (int)jarg6;
+ result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5,arg6);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1transfer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
jint jresult = 0 ;
CoreSession *arg1 = (CoreSession *) 0 ;
}
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_sps() {
+ int jresult ;
+ int32_t result;
+
+ result = (int32_t)switch_core_sps();
+ jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_sps_last() {
+ int jresult ;
+ int32_t result;
+
+ result = (int32_t)switch_core_sps_last();
+ jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_sps_peak() {
+ int jresult ;
+ int32_t result;
+
+ result = (int32_t)switch_core_sps_peak();
+ jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_sps_peak_fivemin() {
+ int jresult ;
+ int32_t result;
+
+ result = (int32_t)switch_core_sps_peak_fivemin();
+ jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_sessions_peak() {
+ int jresult ;
+ int32_t result;
+
+ result = (int32_t)switch_core_sessions_peak();
+ jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_sessions_peak_fivemin() {
+ int jresult ;
+ int32_t result;
+
+ result = (int32_t)switch_core_sessions_peak_fivemin();
+ jresult = result;
+ return jresult;
+}
+
+
SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_flush_handles() {
switch_cache_db_flush_handles();
}
}
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_geometry_w_set(void * jarg1, unsigned long jarg2) {
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+ uint32_t arg2 ;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ arg2 = (uint32_t)jarg2;
+ if (arg1) (arg1)->w = arg2;
+}
+
+
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_geometry_w_get(void * jarg1) {
+ unsigned long jresult ;
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+ uint32_t result;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ result = (uint32_t) ((arg1)->w);
+ jresult = (unsigned long)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_geometry_h_set(void * jarg1, unsigned long jarg2) {
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+ uint32_t arg2 ;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ arg2 = (uint32_t)jarg2;
+ if (arg1) (arg1)->h = arg2;
+}
+
+
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_geometry_h_get(void * jarg1) {
+ unsigned long jresult ;
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+ uint32_t result;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ result = (uint32_t) ((arg1)->h);
+ jresult = (unsigned long)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_geometry_x_set(void * jarg1, unsigned long jarg2) {
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+ uint32_t arg2 ;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ arg2 = (uint32_t)jarg2;
+ if (arg1) (arg1)->x = arg2;
+}
+
+
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_geometry_x_get(void * jarg1) {
+ unsigned long jresult ;
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+ uint32_t result;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ result = (uint32_t) ((arg1)->x);
+ jresult = (unsigned long)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_geometry_y_set(void * jarg1, unsigned long jarg2) {
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+ uint32_t arg2 ;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ arg2 = (uint32_t)jarg2;
+ if (arg1) (arg1)->y = arg2;
+}
+
+
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_geometry_y_get(void * jarg1) {
+ unsigned long jresult ;
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+ uint32_t result;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ result = (uint32_t) ((arg1)->y);
+ jresult = (unsigned long)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_geometry_z_set(void * jarg1, unsigned long jarg2) {
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+ uint32_t arg2 ;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ arg2 = (uint32_t)jarg2;
+ if (arg1) (arg1)->z = arg2;
+}
+
+
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_geometry_z_get(void * jarg1) {
+ unsigned long jresult ;
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+ uint32_t result;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ result = (uint32_t) ((arg1)->z);
+ jresult = (unsigned long)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_geometry_m_set(void * jarg1, unsigned long jarg2) {
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+ uint32_t arg2 ;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ arg2 = (uint32_t)jarg2;
+ if (arg1) (arg1)->m = arg2;
+}
+
+
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_geometry_m_get(void * jarg1) {
+ unsigned long jresult ;
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+ uint32_t result;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ result = (uint32_t) ((arg1)->m);
+ jresult = (unsigned long)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_frame_geometry() {
+ void * jresult ;
+ switch_frame_geometry *result = 0 ;
+
+ result = (switch_frame_geometry *)new switch_frame_geometry();
+ jresult = (void *)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_frame_geometry(void * jarg1) {
+ switch_frame_geometry *arg1 = (switch_frame_geometry *) 0 ;
+
+ arg1 = (switch_frame_geometry *)jarg1;
+ delete arg1;
+}
+
+
SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_codec_set(void * jarg1, void * jarg2) {
switch_frame *arg1 = (switch_frame *) 0 ;
switch_codec_t *arg2 = (switch_codec_t *) 0 ;
}
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_geometry_set(void * jarg1, void * jarg2) {
+ switch_frame *arg1 = (switch_frame *) 0 ;
+ switch_frame_geometry *arg2 = (switch_frame_geometry *) 0 ;
+
+ arg1 = (switch_frame *)jarg1;
+ arg2 = (switch_frame_geometry *)jarg2;
+ if (arg1) (arg1)->geometry = *arg2;
+}
+
+
+SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_geometry_get(void * jarg1) {
+ void * jresult ;
+ switch_frame *arg1 = (switch_frame *) 0 ;
+ switch_frame_geometry *result = 0 ;
+
+ arg1 = (switch_frame *)jarg1;
+ result = (switch_frame_geometry *)& ((arg1)->geometry);
+ jresult = (void *)result;
+ return jresult;
+}
+
+
SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_frame() {
void * jresult ;
switch_frame *result = 0 ;
}
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_user_extended(void * jarg1, char * jarg2, void * jarg3) {
+ int jresult ;
+ switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ switch_event_t *arg3 = (switch_event_t *) 0 ;
+ switch_status_t result;
+
+ arg1 = (switch_core_session_t *)jarg1;
+ arg2 = (char *)jarg2;
+ arg3 = (switch_event_t *)jarg3;
+ result = (switch_status_t)switch_ivr_set_user_extended(arg1,(char const *)arg2,arg3);
+ jresult = result;
+ return jresult;
+}
+
+
SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_user_xml(void * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5) {
int jresult ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
}
+SWIGEXPORT char * SWIGSTDCALL CSharp_CoreSession_GetDigits__SWIG_2(void * jarg1, int jarg2, char * jarg3, int jarg4, int jarg5, int jarg6) {
+ char * jresult ;
+ CoreSession *arg1 = (CoreSession *) 0 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ int arg4 ;
+ int arg5 ;
+ int arg6 ;
+ char *result = 0 ;
+
+ arg1 = (CoreSession *)jarg1;
+ arg2 = (int)jarg2;
+ arg3 = (char *)jarg3;
+ arg4 = (int)jarg4;
+ arg5 = (int)jarg5;
+ arg6 = (int)jarg6;
+ result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5,arg6);
+ jresult = SWIG_csharp_string_callback((const char *)result);
+ return jresult;
+}
+
+
SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_Transfer(void * jarg1, char * jarg2, char * jarg3, char * jarg4) {
int jresult ;
CoreSession *arg1 = (CoreSession *) 0 ;
return ret;
}
+ public string GetDigits(int maxdigits, string terminators, int timeout, int interdigit, int abstimeout) {
+ string ret = freeswitchPINVOKE.CoreSession_GetDigits__SWIG_2(swigCPtr, maxdigits, terminators, timeout, interdigit, abstimeout);
+ return ret;
+ }
+
public int Transfer(string extension, string dialplan, string context) {
int ret = freeswitchPINVOKE.CoreSession_Transfer(swigCPtr, extension, dialplan, context);
return ret;
return ret;
}
+ public static int switch_core_sps() {
+ int ret = freeswitchPINVOKE.switch_core_sps();
+ return ret;
+ }
+
+ public static int switch_core_sps_last() {
+ int ret = freeswitchPINVOKE.switch_core_sps_last();
+ return ret;
+ }
+
+ public static int switch_core_sps_peak() {
+ int ret = freeswitchPINVOKE.switch_core_sps_peak();
+ return ret;
+ }
+
+ public static int switch_core_sps_peak_fivemin() {
+ int ret = freeswitchPINVOKE.switch_core_sps_peak_fivemin();
+ return ret;
+ }
+
+ public static int switch_core_sessions_peak() {
+ int ret = freeswitchPINVOKE.switch_core_sessions_peak();
+ return ret;
+ }
+
+ public static int switch_core_sessions_peak_fivemin() {
+ int ret = freeswitchPINVOKE.switch_core_sessions_peak_fivemin();
+ return ret;
+ }
+
public static void switch_cache_db_flush_handles() {
freeswitchPINVOKE.switch_cache_db_flush_handles();
}
return ret;
}
+ public static switch_status_t switch_ivr_set_user_extended(SWIGTYPE_p_switch_core_session session, string data, switch_event arg2) {
+ switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_set_user_extended(SWIGTYPE_p_switch_core_session.getCPtr(session), data, switch_event.getCPtr(arg2));
+ return ret;
+ }
+
public static switch_status_t switch_ivr_set_user_xml(SWIGTYPE_p_switch_core_session session, string prefix, string user, string domain, switch_xml x_user) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_set_user_xml(SWIGTYPE_p_switch_core_session.getCPtr(session), prefix, user, domain, switch_xml.getCPtr(x_user));
return ret;
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_debug_level")]
public static extern uint switch_core_debug_level();
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sps")]
+ public static extern int switch_core_sps();
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sps_last")]
+ public static extern int switch_core_sps_last();
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sps_peak")]
+ public static extern int switch_core_sps_peak();
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sps_peak_fivemin")]
+ public static extern int switch_core_sps_peak_fivemin();
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sessions_peak")]
+ public static extern int switch_core_sessions_peak();
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sessions_peak_fivemin")]
+ public static extern int switch_core_sessions_peak_fivemin();
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_flush_handles")]
public static extern void switch_cache_db_flush_handles();
[DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_event_set_data")]
public static extern void switch_caller_profile_event_set_data(HandleRef jarg1, string jarg2, HandleRef jarg3);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_w_set")]
+ public static extern void switch_frame_geometry_w_set(HandleRef jarg1, uint jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_w_get")]
+ public static extern uint switch_frame_geometry_w_get(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_h_set")]
+ public static extern void switch_frame_geometry_h_set(HandleRef jarg1, uint jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_h_get")]
+ public static extern uint switch_frame_geometry_h_get(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_x_set")]
+ public static extern void switch_frame_geometry_x_set(HandleRef jarg1, uint jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_x_get")]
+ public static extern uint switch_frame_geometry_x_get(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_y_set")]
+ public static extern void switch_frame_geometry_y_set(HandleRef jarg1, uint jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_y_get")]
+ public static extern uint switch_frame_geometry_y_get(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_z_set")]
+ public static extern void switch_frame_geometry_z_set(HandleRef jarg1, uint jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_z_get")]
+ public static extern uint switch_frame_geometry_z_get(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_m_set")]
+ public static extern void switch_frame_geometry_m_set(HandleRef jarg1, uint jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_m_get")]
+ public static extern uint switch_frame_geometry_m_get(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_new_switch_frame_geometry")]
+ public static extern IntPtr new_switch_frame_geometry();
+
+ [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_frame_geometry")]
+ public static extern void delete_switch_frame_geometry(HandleRef jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_frame_codec_set")]
public static extern void switch_frame_codec_set(HandleRef jarg1, HandleRef jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_frame_img_get")]
public static extern IntPtr switch_frame_img_get(HandleRef jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_set")]
+ public static extern void switch_frame_geometry_set(HandleRef jarg1, HandleRef jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_geometry_get")]
+ public static extern IntPtr switch_frame_geometry_get(HandleRef jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_new_switch_frame")]
public static extern IntPtr new_switch_frame();
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_user")]
public static extern int switch_ivr_set_user(HandleRef jarg1, string jarg2);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_user_extended")]
+ public static extern int switch_ivr_set_user_extended(HandleRef jarg1, string jarg2, HandleRef jarg3);
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_set_user_xml")]
public static extern int switch_ivr_set_user_xml(HandleRef jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5);
[DllImport("mod_managed", EntryPoint="CSharp_CoreSession_GetDigits__SWIG_1")]
public static extern string CoreSession_GetDigits__SWIG_1(HandleRef jarg1, int jarg2, string jarg3, int jarg4, int jarg5);
+ [DllImport("mod_managed", EntryPoint="CSharp_CoreSession_GetDigits__SWIG_2")]
+ public static extern string CoreSession_GetDigits__SWIG_2(HandleRef jarg1, int jarg2, string jarg3, int jarg4, int jarg5, int jarg6);
+
[DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Transfer")]
public static extern int CoreSession_Transfer(HandleRef jarg1, string jarg2, string jarg3, string jarg4);
}
}
+ public switch_frame_geometry geometry {
+ set {
+ freeswitchPINVOKE.switch_frame_geometry_set(swigCPtr, switch_frame_geometry.getCPtr(value));
+ }
+ get {
+ IntPtr cPtr = freeswitchPINVOKE.switch_frame_geometry_get(swigCPtr);
+ switch_frame_geometry ret = (cPtr == IntPtr.Zero) ? null : new switch_frame_geometry(cPtr, false);
+ return ret;
+ }
+ }
+
public switch_frame() : this(freeswitchPINVOKE.new_switch_frame(), true) {
}
using System;
using System.Runtime.InteropServices;
+public class switch_frame_geometry : IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+
+ internal switch_frame_geometry(IntPtr cPtr, bool cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ internal static HandleRef getCPtr(switch_frame_geometry obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ ~switch_frame_geometry() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ freeswitchPINVOKE.delete_switch_frame_geometry(swigCPtr);
+ }
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+ GC.SuppressFinalize(this);
+ }
+ }
+
+ public uint w {
+ set {
+ freeswitchPINVOKE.switch_frame_geometry_w_set(swigCPtr, value);
+ }
+ get {
+ uint ret = freeswitchPINVOKE.switch_frame_geometry_w_get(swigCPtr);
+ return ret;
+ }
+ }
+
+ public uint h {
+ set {
+ freeswitchPINVOKE.switch_frame_geometry_h_set(swigCPtr, value);
+ }
+ get {
+ uint ret = freeswitchPINVOKE.switch_frame_geometry_h_get(swigCPtr);
+ return ret;
+ }
+ }
+
+ public uint x {
+ set {
+ freeswitchPINVOKE.switch_frame_geometry_x_set(swigCPtr, value);
+ }
+ get {
+ uint ret = freeswitchPINVOKE.switch_frame_geometry_x_get(swigCPtr);
+ return ret;
+ }
+ }
+
+ public uint y {
+ set {
+ freeswitchPINVOKE.switch_frame_geometry_y_set(swigCPtr, value);
+ }
+ get {
+ uint ret = freeswitchPINVOKE.switch_frame_geometry_y_get(swigCPtr);
+ return ret;
+ }
+ }
+
+ public uint z {
+ set {
+ freeswitchPINVOKE.switch_frame_geometry_z_set(swigCPtr, value);
+ }
+ get {
+ uint ret = freeswitchPINVOKE.switch_frame_geometry_z_get(swigCPtr);
+ return ret;
+ }
+ }
+
+ public uint m {
+ set {
+ freeswitchPINVOKE.switch_frame_geometry_m_set(swigCPtr, value);
+ }
+ get {
+ uint ret = freeswitchPINVOKE.switch_frame_geometry_m_get(swigCPtr);
+ return ret;
+ }
+ }
+
+ public switch_frame_geometry() : this(freeswitchPINVOKE.new_switch_frame_geometry(), true) {
+ }
+
+}
+
+}
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.12
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+namespace FreeSWITCH.Native {
+
+using System;
+using System.Runtime.InteropServices;
+
public class switch_hold_record_t : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
}
+XS(_wrap_CoreSession_getDigits__SWIG_2) {
+ {
+ CoreSession *arg1 = (CoreSession *) 0 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ int arg4 ;
+ int arg5 ;
+ int arg6 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int res3 ;
+ char *buf3 = 0 ;
+ int alloc3 = 0 ;
+ int val4 ;
+ int ecode4 = 0 ;
+ int val5 ;
+ int ecode5 = 0 ;
+ int val6 ;
+ int ecode6 = 0 ;
+ int argvi = 0;
+ char *result = 0 ;
+ dXSARGS;
+
+ if ((items < 6) || (items > 6)) {
+ SWIG_croak("Usage: CoreSession_getDigits(self,maxdigits,terminators,timeout,interdigit,abstimeout);");
+ }
+ res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoreSession_getDigits" "', argument " "1"" of type '" "CoreSession *""'");
+ }
+ arg1 = reinterpret_cast< CoreSession * >(argp1);
+ ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoreSession_getDigits" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = static_cast< int >(val2);
+ res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_getDigits" "', argument " "3"" of type '" "char *""'");
+ }
+ arg3 = reinterpret_cast< char * >(buf3);
+ ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
+ if (!SWIG_IsOK(ecode4)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_getDigits" "', argument " "4"" of type '" "int""'");
+ }
+ arg4 = static_cast< int >(val4);
+ ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
+ if (!SWIG_IsOK(ecode5)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CoreSession_getDigits" "', argument " "5"" of type '" "int""'");
+ }
+ arg5 = static_cast< int >(val5);
+ ecode6 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
+ if (!SWIG_IsOK(ecode6)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CoreSession_getDigits" "', argument " "6"" of type '" "int""'");
+ }
+ arg6 = static_cast< int >(val6);
+ result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5,arg6);
+ ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
+
+
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
+
+
+
+ XSRETURN(argvi);
+ fail:
+
+
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
+
+
+
+ SWIG_croak_null();
+ }
+}
+
+
XS(_wrap_CoreSession_getDigits) {
dXSARGS;
}
check_2:
+ if (items == 6) {
+ SWIG_TypeRank _ranki = 0;
+ SWIG_TypeRank _rankm = 0;
+ SWIG_TypeRank _pi = 1;
+ int _v = 0;
+ {
+ void *vptr = 0;
+ int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CoreSession, 0);
+ _v = SWIG_CheckState(res);
+ }
+ if (!_v) goto check_3;
+ _ranki += _v*_pi;
+ _rankm += _pi;
+ _pi *= SWIG_MAXCASTRANK;
+ {
+ {
+ int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
+ _v = SWIG_CheckState(res);
+ }
+ }
+ if (!_v) goto check_3;
+ _ranki += _v*_pi;
+ _rankm += _pi;
+ _pi *= SWIG_MAXCASTRANK;
+ {
+ int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0);
+ _v = SWIG_CheckState(res);
+ }
+ if (!_v) goto check_3;
+ _ranki += _v*_pi;
+ _rankm += _pi;
+ _pi *= SWIG_MAXCASTRANK;
+ {
+ {
+ int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL);
+ _v = SWIG_CheckState(res);
+ }
+ }
+ if (!_v) goto check_3;
+ _ranki += _v*_pi;
+ _rankm += _pi;
+ _pi *= SWIG_MAXCASTRANK;
+ {
+ {
+ int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL);
+ _v = SWIG_CheckState(res);
+ }
+ }
+ if (!_v) goto check_3;
+ _ranki += _v*_pi;
+ _rankm += _pi;
+ _pi *= SWIG_MAXCASTRANK;
+ {
+ {
+ int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL);
+ _v = SWIG_CheckState(res);
+ }
+ }
+ if (!_v) goto check_3;
+ _ranki += _v*_pi;
+ _rankm += _pi;
+ _pi *= SWIG_MAXCASTRANK;
+ if (!_index || (_ranki < _rank)) {
+ _rank = _ranki; _index = 3;
+ if (_rank == _rankm) goto dispatch;
+ }
+ }
+ check_3:
+
dispatch:
switch(_index) {
case 1:
PUSHMARK(MARK); SWIG_CALLXS(_wrap_CoreSession_getDigits__SWIG_0); return;
case 2:
PUSHMARK(MARK); SWIG_CALLXS(_wrap_CoreSession_getDigits__SWIG_1); return;
+ case 3:
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_CoreSession_getDigits__SWIG_2); return;
}
}
}
+SWIGINTERN PyObject *_wrap_CoreSession_getDigits__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+ PyObject *resultobj = 0;
+ CoreSession *arg1 = (CoreSession *) 0 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ int arg4 ;
+ int arg5 ;
+ int arg6 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int res3 ;
+ char *buf3 = 0 ;
+ int alloc3 = 0 ;
+ int val4 ;
+ int ecode4 = 0 ;
+ int val5 ;
+ int ecode5 = 0 ;
+ int val6 ;
+ int ecode6 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+ char *result = 0 ;
+
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CoreSession_getDigits",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoreSession_getDigits" "', argument " "1"" of type '" "CoreSession *""'");
+ }
+ arg1 = reinterpret_cast< CoreSession * >(argp1);
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CoreSession_getDigits" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = static_cast< int >(val2);
+ res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_getDigits" "', argument " "3"" of type '" "char *""'");
+ }
+ arg3 = reinterpret_cast< char * >(buf3);
+ ecode4 = SWIG_AsVal_int(obj3, &val4);
+ if (!SWIG_IsOK(ecode4)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CoreSession_getDigits" "', argument " "4"" of type '" "int""'");
+ }
+ arg4 = static_cast< int >(val4);
+ ecode5 = SWIG_AsVal_int(obj4, &val5);
+ if (!SWIG_IsOK(ecode5)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CoreSession_getDigits" "', argument " "5"" of type '" "int""'");
+ }
+ arg5 = static_cast< int >(val5);
+ ecode6 = SWIG_AsVal_int(obj5, &val6);
+ if (!SWIG_IsOK(ecode6)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CoreSession_getDigits" "', argument " "6"" of type '" "int""'");
+ }
+ arg6 = static_cast< int >(val6);
+ result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5,arg6);
+ resultobj = SWIG_FromCharPtr((const char *)result);
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
+ return resultobj;
+fail:
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
+ return NULL;
+}
+
+
SWIGINTERN PyObject *_wrap_CoreSession_getDigits(PyObject *self, PyObject *args) {
int argc;
- PyObject *argv[6];
+ PyObject *argv[7];
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
- for (ii = 0; (ii < 5) && (ii < argc); ii++) {
+ for (ii = 0; (ii < 6) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 4) {
}
}
}
+ if (argc == 6) {
+ int _v;
+ void *vptr = 0;
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CoreSession, 0);
+ _v = SWIG_CheckState(res);
+ if (_v) {
+ {
+ int res = SWIG_AsVal_int(argv[1], NULL);
+ _v = SWIG_CheckState(res);
+ }
+ if (_v) {
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
+ _v = SWIG_CheckState(res);
+ if (_v) {
+ {
+ int res = SWIG_AsVal_int(argv[3], NULL);
+ _v = SWIG_CheckState(res);
+ }
+ if (_v) {
+ {
+ int res = SWIG_AsVal_int(argv[4], NULL);
+ _v = SWIG_CheckState(res);
+ }
+ if (_v) {
+ {
+ int res = SWIG_AsVal_int(argv[5], NULL);
+ _v = SWIG_CheckState(res);
+ }
+ if (_v) {
+ return _wrap_CoreSession_getDigits__SWIG_2(self, args);
+ }
+ }
+ }
+ }
+ }
+ }
+ }
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CoreSession_getDigits'.\n"
" Possible C/C++ prototypes are:\n"
" CoreSession::getDigits(int,char *,int)\n"
- " CoreSession::getDigits(int,char *,int,int)\n");
+ " CoreSession::getDigits(int,char *,int,int)\n"
+ " CoreSession::getDigits(int,char *,int,int,int)\n");
return 0;
}