return (cPtr == 0) ? null : new Event(cPtr, true);
}
+ public void cleanup() {
+ freeswitchJNI.EventConsumer_cleanup(swigCPtr, this);
+ }
+
}
public final static native void delete_EventConsumer(long jarg1);
public final static native int EventConsumer_bind(long jarg1, EventConsumer jarg1_, String jarg2, String jarg3);
public final static native long EventConsumer_pop(long jarg1, EventConsumer jarg1_, int jarg2, int jarg3);
+ public final static native void EventConsumer_cleanup(long jarg1, EventConsumer jarg1_);
public final static native void delete_CoreSession(long jarg1);
public final static native void CoreSession_session_set(long jarg1, CoreSession jarg1_, long jarg2);
public final static native long CoreSession_session_get(long jarg1, CoreSession jarg1_);
}
+SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_EventConsumer_1cleanup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ EventConsumer *arg1 = (EventConsumer *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(EventConsumer **)&jarg1;
+ (arg1)->cleanup();
+}
+
+
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1CoreSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
CoreSession *arg1 = (CoreSession *) 0 ;
}
+static int _wrap_EventConsumer_cleanup(lua_State* L) {
+ int SWIG_arg = -1;
+ EventConsumer *arg1 = (EventConsumer *) 0 ;
+
+ SWIG_check_num_args("cleanup",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cleanup",1,"EventConsumer *");
+
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
+ SWIG_fail_ptr("EventConsumer_cleanup",1,SWIGTYPE_p_EventConsumer);
+ }
+
+ (arg1)->cleanup();
+ SWIG_arg=0;
+
+ return SWIG_arg;
+
+ if(0) SWIG_fail;
+
+fail:
+ lua_error(L);
+ return SWIG_arg;
+}
+
+
static void swig_delete_EventConsumer(void *obj) {
EventConsumer *arg1 = (EventConsumer *) obj;
delete arg1;
static swig_lua_method swig_EventConsumer_methods[] = {
{"bind", _wrap_EventConsumer_bind},
{"pop", _wrap_EventConsumer_pop},
+ {"cleanup", _wrap_EventConsumer_cleanup},
{0,0}
};
static swig_lua_attribute swig_EventConsumer_attributes[] = {
}
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_ext_t_length_set(void * jarg1, unsigned int jarg2) {
+ switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ;
+ unsigned int arg2 ;
+
+ arg1 = (switch_rtp_hdr_ext_t *)jarg1;
+ arg2 = (unsigned int)jarg2;
+ if (arg1) (arg1)->length = arg2;
+
+}
+
+
+SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_ext_t_length_get(void * jarg1) {
+ unsigned int jresult ;
+ switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ;
+ unsigned int result;
+
+ arg1 = (switch_rtp_hdr_ext_t *)jarg1;
+ result = (unsigned int) ((arg1)->length);
+ jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_hdr_ext_t_profile_set(void * jarg1, unsigned int jarg2) {
+ switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ;
+ unsigned int arg2 ;
+
+ arg1 = (switch_rtp_hdr_ext_t *)jarg1;
+ arg2 = (unsigned int)jarg2;
+ if (arg1) (arg1)->profile = arg2;
+
+}
+
+
+SWIGEXPORT unsigned int SWIGSTDCALL CSharp_switch_rtp_hdr_ext_t_profile_get(void * jarg1) {
+ unsigned int jresult ;
+ switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ;
+ unsigned int result;
+
+ arg1 = (switch_rtp_hdr_ext_t *)jarg1;
+ result = (unsigned int) ((arg1)->profile);
+ jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_hdr_ext_t() {
+ void * jresult ;
+ switch_rtp_hdr_ext_t *result = 0 ;
+
+ result = (switch_rtp_hdr_ext_t *)new switch_rtp_hdr_ext_t();
+ jresult = (void *)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_hdr_ext_t(void * jarg1) {
+ switch_rtp_hdr_ext_t *arg1 = (switch_rtp_hdr_ext_t *) 0 ;
+
+ arg1 = (switch_rtp_hdr_ext_t *)jarg1;
+ delete arg1;
+
+}
+
+
SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_hdr_t_version_set(void * jarg1, unsigned int jarg2) {
switch_rtcp_hdr_t *arg1 = (switch_rtcp_hdr_t *) 0 ;
unsigned int arg2 ;
}
+SWIGEXPORT int SWIGSTDCALL CSharp_MAX_ARG_RECURSION_get() {
+ int jresult ;
+ int result;
+
+ result = (int) 25;
+
+ jresult = result;
+ return jresult;
+}
+
+
SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_input_callback_set(void * jarg1, void * jarg2) {
switch_input_args_t *arg1 = (switch_input_args_t *) 0 ;
switch_input_callback_function_t arg2 = (switch_input_callback_function_t) 0 ;
}
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_input_args_t_loops_set(void * jarg1, int jarg2) {
+ switch_input_args_t *arg1 = (switch_input_args_t *) 0 ;
+ int arg2 ;
+
+ arg1 = (switch_input_args_t *)jarg1;
+ arg2 = (int)jarg2;
+ if (arg1) (arg1)->loops = arg2;
+
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_input_args_t_loops_get(void * jarg1) {
+ int jresult ;
+ switch_input_args_t *arg1 = (switch_input_args_t *) 0 ;
+ int result;
+
+ arg1 = (switch_input_args_t *)jarg1;
+ result = (int) ((arg1)->loops);
+ jresult = result;
+ return jresult;
+}
+
+
SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_input_args_t() {
void * jresult ;
switch_input_args_t *result = 0 ;
}
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_set_terminators(void * jarg1, char * jarg2) {
+ int jresult ;
+ switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ switch_status_t result;
+
+ arg1 = (switch_ivr_dmachine_t *)jarg1;
+ arg2 = (char *)jarg2;
+ result = (switch_status_t)switch_ivr_dmachine_set_terminators(arg1,(char const *)arg2);
+ jresult = result;
+ return jresult;
+}
+
+
SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_codec_slin(void * jarg1, void * jarg2) {
int jresult ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
}
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_toupper(int jarg1) {
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_toupper(unsigned long jarg1) {
+ unsigned long jresult ;
+ uint32_t arg1 ;
+ uint32_t result;
+
+ arg1 = (uint32_t)jarg1;
+ result = (uint32_t)switch_toupper(arg1);
+ jresult = (unsigned long)result;
+ return jresult;
+}
+
+
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_tolower(unsigned long jarg1) {
+ unsigned long jresult ;
+ uint32_t arg1 ;
+ uint32_t result;
+
+ arg1 = (uint32_t)jarg1;
+ result = (uint32_t)switch_tolower(arg1);
+ jresult = (unsigned long)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_toupper_max(char * jarg1) {
+ char *arg1 = (char *) 0 ;
+
+ arg1 = (char *)jarg1;
+ switch_toupper_max(arg1);
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_tolower_max(char * jarg1) {
+ char *arg1 = (char *) 0 ;
+
+ arg1 = (char *)jarg1;
+ switch_tolower_max(arg1);
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_old_switch_toupper(int jarg1) {
int jresult ;
int arg1 ;
int result;
arg1 = (int)jarg1;
- result = (int)switch_toupper(arg1);
+ result = (int)old_switch_toupper(arg1);
jresult = result;
return jresult;
}
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_tolower(int jarg1) {
+SWIGEXPORT int SWIGSTDCALL CSharp_old_switch_tolower(int jarg1) {
int jresult ;
int arg1 ;
int result;
arg1 = (int)jarg1;
- result = (int)switch_tolower(arg1);
+ result = (int)old_switch_tolower(arg1);
jresult = result;
return jresult;
}
}
-SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_session_echo(void * jarg1, void * jarg2) {
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_session_echo(void * jarg1, void * jarg2) {
+ int jresult ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
switch_input_args_t *arg2 = (switch_input_args_t *) 0 ;
+ switch_status_t result;
arg1 = (switch_core_session_t *)jarg1;
arg2 = (switch_input_args_t *)jarg2;
- switch_ivr_session_echo(arg1,arg2);
+ result = (switch_status_t)switch_ivr_session_echo(arg1,arg2);
+ jresult = result;
+ return jresult;
}
}
+SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTP_MAX_BUF_LEN_WORDS_get() {
+ int jresult ;
+ int result;
+
+ result = (int) 4094;
+
+ jresult = result;
+ return jresult;
+}
+
+
SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTP_MAX_CRYPTO_LEN_get() {
int jresult ;
int result;
}
+SWIGEXPORT void SWIGSTDCALL CSharp_EventConsumer_cleanup(void * jarg1) {
+ EventConsumer *arg1 = (EventConsumer *) 0 ;
+
+ arg1 = (EventConsumer *)jarg1;
+ (arg1)->cleanup();
+}
+
+
SWIGEXPORT void SWIGSTDCALL CSharp_delete_CoreSession(void * jarg1) {
CoreSession *arg1 = (CoreSession *) 0 ;
return ret;
}
+ public void cleanup() {
+ freeswitchPINVOKE.EventConsumer_cleanup(swigCPtr);
+ }
+
}
}
freeswitchPINVOKE.switch_ivr_dmachine_set_target(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), (int)target);
}
+ public static switch_status_t switch_ivr_dmachine_set_terminators(SWIGTYPE_p_switch_ivr_dmachine dmachine, string terminators) {
+ switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_dmachine_set_terminators(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), terminators);
+ return ret;
+ }
+
public static switch_status_t switch_core_session_set_codec_slin(SWIGTYPE_p_switch_core_session session, switch_slin_data data) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_codec_slin(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_slin_data.getCPtr(data));
return ret;
return ret;
}
- public static int switch_toupper(int c) {
- int ret = freeswitchPINVOKE.switch_toupper(c);
+ public static uint switch_toupper(uint eax) {
+ uint ret = freeswitchPINVOKE.switch_toupper(eax);
+ return ret;
+ }
+
+ public static uint switch_tolower(uint eax) {
+ uint ret = freeswitchPINVOKE.switch_tolower(eax);
+ return ret;
+ }
+
+ public static void switch_toupper_max(string s) {
+ freeswitchPINVOKE.switch_toupper_max(s);
+ }
+
+ public static void switch_tolower_max(string s) {
+ freeswitchPINVOKE.switch_tolower_max(s);
+ }
+
+ public static int old_switch_toupper(int c) {
+ int ret = freeswitchPINVOKE.old_switch_toupper(c);
return ret;
}
- public static int switch_tolower(int c) {
- int ret = freeswitchPINVOKE.switch_tolower(c);
+ public static int old_switch_tolower(int c) {
+ int ret = freeswitchPINVOKE.old_switch_tolower(c);
return ret;
}
return ret;
}
- public static void switch_ivr_session_echo(SWIGTYPE_p_switch_core_session session, switch_input_args_t args) {
- freeswitchPINVOKE.switch_ivr_session_echo(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_input_args_t.getCPtr(args));
+ public static switch_status_t switch_ivr_session_echo(SWIGTYPE_p_switch_core_session session, switch_input_args_t args) {
+ switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_session_echo(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_input_args_t.getCPtr(args));
+ return ret;
}
public static switch_status_t switch_ivr_stop_tone_detect_session(SWIGTYPE_p_switch_core_session session) {
public static readonly int SWITCH_MAX_MANAGEMENT_BUFFER_LEN = freeswitchPINVOKE.SWITCH_MAX_MANAGEMENT_BUFFER_LEN_get();
public static readonly int SWITCH_RTP_CNG_PAYLOAD = freeswitchPINVOKE.SWITCH_RTP_CNG_PAYLOAD_get();
public static readonly int DMACHINE_MAX_DIGIT_LEN = freeswitchPINVOKE.DMACHINE_MAX_DIGIT_LEN_get();
+ public static readonly int MAX_ARG_RECURSION = freeswitchPINVOKE.MAX_ARG_RECURSION_get();
public static readonly int SWITCH_API_VERSION = freeswitchPINVOKE.SWITCH_API_VERSION_get();
public static readonly int SWITCH_CORE_DB_OK = freeswitchPINVOKE.SWITCH_CORE_DB_OK_get();
public static readonly int SWITCH_CORE_DB_ERROR = freeswitchPINVOKE.SWITCH_CORE_DB_ERROR_get();
public static readonly int SWITCH_RESAMPLE_QUALITY = freeswitchPINVOKE.SWITCH_RESAMPLE_QUALITY_get();
public static readonly int SWITCH_RTP_MAX_BUF_LEN = freeswitchPINVOKE.SWITCH_RTP_MAX_BUF_LEN_get();
public static readonly int SWITCH_RTCP_MAX_BUF_LEN = freeswitchPINVOKE.SWITCH_RTCP_MAX_BUF_LEN_get();
+ public static readonly int SWITCH_RTP_MAX_BUF_LEN_WORDS = freeswitchPINVOKE.SWITCH_RTP_MAX_BUF_LEN_WORDS_get();
public static readonly int SWITCH_RTP_MAX_CRYPTO_LEN = freeswitchPINVOKE.SWITCH_RTP_MAX_CRYPTO_LEN_get();
public static readonly int SWITCH_RTP_KEY_LEN = freeswitchPINVOKE.SWITCH_RTP_KEY_LEN_get();
public static readonly string SWITCH_RTP_CRYPTO_KEY_32 = freeswitchPINVOKE.SWITCH_RTP_CRYPTO_KEY_32_get();
[DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_hdr_t")]
public static extern void delete_switch_rtp_hdr_t(HandleRef jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_ext_t_length_set")]
+ public static extern void switch_rtp_hdr_ext_t_length_set(HandleRef jarg1, uint jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_ext_t_length_get")]
+ public static extern uint switch_rtp_hdr_ext_t_length_get(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_ext_t_profile_set")]
+ public static extern void switch_rtp_hdr_ext_t_profile_set(HandleRef jarg1, uint jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_hdr_ext_t_profile_get")]
+ public static extern uint switch_rtp_hdr_ext_t_profile_get(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_hdr_ext_t")]
+ public static extern IntPtr new_switch_rtp_hdr_ext_t();
+
+ [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_hdr_ext_t")]
+ public static extern void delete_switch_rtp_hdr_ext_t(HandleRef jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_version_set")]
public static extern void switch_rtcp_hdr_t_version_set(HandleRef jarg1, uint jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_delete_switch_ivr_dmachine_match")]
public static extern void delete_switch_ivr_dmachine_match(HandleRef jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_MAX_ARG_RECURSION_get")]
+ public static extern int MAX_ARG_RECURSION_get();
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_input_callback_set")]
public static extern void switch_input_args_t_input_callback_set(HandleRef jarg1, HandleRef jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_dmachine_get")]
public static extern IntPtr switch_input_args_t_dmachine_get(HandleRef jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_loops_set")]
+ public static extern void switch_input_args_t_loops_set(HandleRef jarg1, int jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_input_args_t_loops_get")]
+ public static extern int switch_input_args_t_loops_get(HandleRef jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_new_switch_input_args_t")]
public static extern IntPtr new_switch_input_args_t();
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_target")]
public static extern void switch_ivr_dmachine_set_target(HandleRef jarg1, int jarg2);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_terminators")]
+ public static extern int switch_ivr_dmachine_set_terminators(HandleRef jarg1, string jarg2);
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_codec_slin")]
public static extern int switch_core_session_set_codec_slin(HandleRef jarg1, HandleRef jarg2);
public static extern int switch_console_execute(string jarg1, int jarg2, HandleRef jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_switch_toupper")]
- public static extern int switch_toupper(int jarg1);
+ public static extern uint switch_toupper(uint jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_tolower")]
- public static extern int switch_tolower(int jarg1);
+ public static extern uint switch_tolower(uint jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_toupper_max")]
+ public static extern void switch_toupper_max(string jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_tolower_max")]
+ public static extern void switch_tolower_max(string jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_old_switch_toupper")]
+ public static extern int old_switch_toupper(int jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_old_switch_tolower")]
+ public static extern int old_switch_tolower(int jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_isalnum")]
public static extern int switch_isalnum(int jarg1);
public static extern int switch_ivr_stop_inband_dtmf_generate_session(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_session_echo")]
- public static extern void switch_ivr_session_echo(HandleRef jarg1, HandleRef jarg2);
+ public static extern int switch_ivr_session_echo(HandleRef jarg1, HandleRef jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_tone_detect_session")]
public static extern int switch_ivr_stop_tone_detect_session(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTCP_MAX_BUF_LEN_get")]
public static extern int SWITCH_RTCP_MAX_BUF_LEN_get();
+ [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_MAX_BUF_LEN_WORDS_get")]
+ public static extern int SWITCH_RTP_MAX_BUF_LEN_WORDS_get();
+
[DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_MAX_CRYPTO_LEN_get")]
public static extern int SWITCH_RTP_MAX_CRYPTO_LEN_get();
[DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_pop")]
public static extern IntPtr EventConsumer_pop(HandleRef jarg1, int jarg2, int jarg3);
+ [DllImport("mod_managed", EntryPoint="CSharp_EventConsumer_cleanup")]
+ public static extern void EventConsumer_cleanup(HandleRef jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_delete_CoreSession")]
public static extern void delete_CoreSession(HandleRef jarg1);
}
}
+ public int loops {
+ set {
+ freeswitchPINVOKE.switch_input_args_t_loops_set(swigCPtr, value);
+ }
+ get {
+ int ret = freeswitchPINVOKE.switch_input_args_t_loops_get(swigCPtr);
+ return ret;
+ }
+ }
+
public switch_input_args_t() : this(freeswitchPINVOKE.new_switch_input_args_t(), true) {
}
RTP_BUG_IGNORE_DTMF_DURATION = (1 << 6),
RTP_BUG_ACCEPT_ANY_PACKETS = (1 << 7),
RTP_BUG_GEN_ONE_GEN_ALL = (1 << 8),
- RTP_BUG_CHANGE_SSRC_ON_MARKER = (1 << 9)
+ RTP_BUG_CHANGE_SSRC_ON_MARKER = (1 << 9),
+ RTP_BUG_FLUSH_JB_ON_DTMF = (1 << 10)
}
}
using System;
using System.Runtime.InteropServices;
+public class switch_rtp_hdr_ext_t : IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+
+ internal switch_rtp_hdr_ext_t(IntPtr cPtr, bool cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ internal static HandleRef getCPtr(switch_rtp_hdr_ext_t obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ ~switch_rtp_hdr_ext_t() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
+ swigCMemOwn = false;
+ freeswitchPINVOKE.delete_switch_rtp_hdr_ext_t(swigCPtr);
+ }
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ GC.SuppressFinalize(this);
+ }
+ }
+
+ public uint length {
+ set {
+ freeswitchPINVOKE.switch_rtp_hdr_ext_t_length_set(swigCPtr, value);
+ }
+ get {
+ uint ret = freeswitchPINVOKE.switch_rtp_hdr_ext_t_length_get(swigCPtr);
+ return ret;
+ }
+ }
+
+ public uint profile {
+ set {
+ freeswitchPINVOKE.switch_rtp_hdr_ext_t_profile_set(swigCPtr, value);
+ }
+ get {
+ uint ret = freeswitchPINVOKE.switch_rtp_hdr_ext_t_profile_get(swigCPtr);
+ return ret;
+ }
+ }
+
+ public switch_rtp_hdr_ext_t() : this(freeswitchPINVOKE.new_switch_rtp_hdr_ext_t(), true) {
+ }
+
+}
+
+}
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.35
+ *
+ * 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_rtp_hdr_t : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
*bind = *freeswitchc::EventConsumer_bind;
*pop = *freeswitchc::EventConsumer_pop;
+*cleanup = *freeswitchc::EventConsumer_cleanup;
sub DISOWN {
my $self = shift;
my $ptr = tied(%$self);
}
+XS(_wrap_EventConsumer_cleanup) {
+ {
+ EventConsumer *arg1 = (EventConsumer *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 1) || (items > 1)) {
+ SWIG_croak("Usage: EventConsumer_cleanup(self);");
+ }
+ res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_EventConsumer, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventConsumer_cleanup" "', argument " "1"" of type '" "EventConsumer *""'");
+ }
+ arg1 = reinterpret_cast< EventConsumer * >(argp1);
+ (arg1)->cleanup();
+
+
+ XSRETURN(argvi);
+ fail:
+
+ SWIG_croak_null();
+ }
+}
+
+
XS(_wrap_delete_CoreSession) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
{"freeswitchc::delete_EventConsumer", _wrap_delete_EventConsumer},
{"freeswitchc::EventConsumer_bind", _wrap_EventConsumer_bind},
{"freeswitchc::EventConsumer_pop", _wrap_EventConsumer_pop},
+{"freeswitchc::EventConsumer_cleanup", _wrap_EventConsumer_cleanup},
{"freeswitchc::delete_CoreSession", _wrap_delete_CoreSession},
{"freeswitchc::CoreSession_session_set", _wrap_CoreSession_session_set},
{"freeswitchc::CoreSession_session_get", _wrap_CoreSession_session_get},
__del__ = lambda self : None;
def bind(*args): return _freeswitch.EventConsumer_bind(*args)
def pop(*args): return _freeswitch.EventConsumer_pop(*args)
+ def cleanup(*args): return _freeswitch.EventConsumer_cleanup(*args)
EventConsumer_swigregister = _freeswitch.EventConsumer_swigregister
EventConsumer_swigregister(EventConsumer)
}
+SWIGINTERN PyObject *_wrap_EventConsumer_cleanup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+ PyObject *resultobj = 0;
+ EventConsumer *arg1 = (EventConsumer *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if (!PyArg_ParseTuple(args,(char *)"O:EventConsumer_cleanup",&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EventConsumer, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventConsumer_cleanup" "', argument " "1"" of type '" "EventConsumer *""'");
+ }
+ arg1 = reinterpret_cast< EventConsumer * >(argp1);
+ (arg1)->cleanup();
+ resultobj = SWIG_Py_Void();
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
SWIGINTERN PyObject *EventConsumer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
{ (char *)"delete_EventConsumer", _wrap_delete_EventConsumer, METH_VARARGS, NULL},
{ (char *)"EventConsumer_bind", _wrap_EventConsumer_bind, METH_VARARGS, NULL},
{ (char *)"EventConsumer_pop", _wrap_EventConsumer_pop, METH_VARARGS, NULL},
+ { (char *)"EventConsumer_cleanup", _wrap_EventConsumer_cleanup, METH_VARARGS, NULL},
{ (char *)"EventConsumer_swigregister", EventConsumer_swigregister, METH_VARARGS, NULL},
{ (char *)"delete_CoreSession", _wrap_delete_CoreSession, METH_VARARGS, NULL},
{ (char *)"CoreSession_session_set", _wrap_CoreSession_session_set, METH_VARARGS, NULL},