diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index 74827479e1..32228026a7 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -18691,6 +18691,284 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_management_interface(void * jar } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_interface_name_set(void * jarg1, char * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->interface_name = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->interface_name, (const char *)arg2); + } else { + arg1->interface_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_limit_interface_interface_name_get(void * jarg1) { + char * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (char *) ((arg1)->interface_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_incr_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*arg2)(switch_core_session_t *,char const *,char const *,int const,int const) = (switch_status_t (*)(switch_core_session_t *,char const *,char const *,int const,int const)) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_core_session_t *,char const *,char const *,int const,int const))jarg2; + if (arg1) (arg1)->incr = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_incr_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*result)(switch_core_session_t *,char const *,char const *,int const,int const) = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_status_t (*)(switch_core_session_t *,char const *,char const *,int const,int const)) ((arg1)->incr); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_release_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*arg2)(switch_core_session_t *,char const *,char const *) = (switch_status_t (*)(switch_core_session_t *,char const *,char const *)) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_status_t (*)(switch_core_session_t *,char const *,char const *))jarg2; + if (arg1) (arg1)->release = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_release_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*result)(switch_core_session_t *,char const *,char const *) = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_status_t (*)(switch_core_session_t *,char const *,char const *)) ((arg1)->release); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_usage_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + int (*arg2)(char const *,char const *,uint32_t *) = (int (*)(char const *,char const *,uint32_t *)) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (int (*)(char const *,char const *,uint32_t *))jarg2; + if (arg1) (arg1)->usage = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_usage_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + int (*result)(char const *,char const *,uint32_t *) = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (int (*)(char const *,char const *,uint32_t *)) ((arg1)->usage); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_reset_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*arg2)(void) = (switch_status_t (*)(void)) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_status_t (*)(void))jarg2; + if (arg1) (arg1)->reset = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_reset_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_status_t (*result)(void) = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_status_t (*)(void)) ((arg1)->reset); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_status_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + char *(*arg2)(void) = (char *(*)(void)) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (char *(*)(void))jarg2; + if (arg1) (arg1)->status = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_status_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + char *(*result)(void) = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (char *(*)(void)) ((arg1)->status); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_rwlock_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_thread_rwlock_t *arg2 = (switch_thread_rwlock_t *) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_thread_rwlock_t *)jarg2; + if (arg1) (arg1)->rwlock = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_rwlock_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_thread_rwlock_t *result = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_thread_rwlock_t *) ((arg1)->rwlock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_refs_set(void * jarg1, int jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + int arg2 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->refs = arg2; + +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_limit_interface_refs_get(void * jarg1) { + int jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + int result; + + arg1 = (switch_limit_interface *)jarg1; + result = (int) ((arg1)->refs); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_reflock_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_mutex_t *)jarg2; + if (arg1) (arg1)->reflock = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_reflock_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_mutex_t *) ((arg1)->reflock); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_parent_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_loadable_module_interface_t *)jarg2; + if (arg1) (arg1)->parent = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_parent_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_loadable_module_interface_t *result = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_loadable_module_interface_t *) ((arg1)->parent); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_limit_interface_next_set(void * jarg1, void * jarg2) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_limit_interface *arg2 = (switch_limit_interface *) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + arg2 = (switch_limit_interface *)jarg2; + if (arg1) (arg1)->next = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_limit_interface_next_get(void * jarg1) { + void * jresult ; + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + switch_limit_interface *result = 0 ; + + arg1 = (switch_limit_interface *)jarg1; + result = (switch_limit_interface *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_limit_interface() { + void * jresult ; + switch_limit_interface *result = 0 ; + + result = (switch_limit_interface *)new switch_limit_interface(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_limit_interface(void * jarg1) { + switch_limit_interface *arg1 = (switch_limit_interface *) 0 ; + + arg1 = (switch_limit_interface *)jarg1; + delete arg1; + +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_directory_interface_interface_name_set(void * jarg1, char * jarg2) { switch_directory_interface *arg1 = (switch_directory_interface *) 0 ; char *arg2 = (char *) 0 ; @@ -21499,17 +21777,23 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_init(void * jarg1, void * jarg2 } -SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_presence(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_perform_presence(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, int jarg7) { switch_channel_t *arg1 = (switch_channel_t *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + char *arg6 = (char *) 0 ; + int arg7 ; arg1 = (switch_channel_t *)jarg1; arg2 = (char *)jarg2; arg3 = (char *)jarg3; arg4 = (char *)jarg4; - switch_channel_presence(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + arg5 = (char *)jarg5; + arg6 = (char *)jarg6; + arg7 = (int)jarg7; + switch_channel_perform_presence(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,arg7); } diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index 1ad708504f..6fb37df01c 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -2868,8 +2868,8 @@ public class freeswitch { return ret; } - public static void switch_channel_presence(SWIGTYPE_p_switch_channel channel, string rpid, string status, string id) { - freeswitchPINVOKE.switch_channel_presence(SWIGTYPE_p_switch_channel.getCPtr(channel), rpid, status, id); + public static void switch_channel_perform_presence(SWIGTYPE_p_switch_channel channel, string rpid, string status, string id, string file, string func, int line) { + freeswitchPINVOKE.switch_channel_perform_presence(SWIGTYPE_p_switch_channel.getCPtr(channel), rpid, status, id, file, func, line); } public static void switch_channel_uninit(SWIGTYPE_p_switch_channel channel) { @@ -9662,6 +9662,78 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_management_interface")] public static extern void delete_switch_management_interface(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_interface_name_set")] + public static extern void switch_limit_interface_interface_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_interface_name_get")] + public static extern string switch_limit_interface_interface_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_incr_set")] + public static extern void switch_limit_interface_incr_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_incr_get")] + public static extern IntPtr switch_limit_interface_incr_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_release_set")] + public static extern void switch_limit_interface_release_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_release_get")] + public static extern IntPtr switch_limit_interface_release_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_usage_set")] + public static extern void switch_limit_interface_usage_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_usage_get")] + public static extern IntPtr switch_limit_interface_usage_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_reset_set")] + public static extern void switch_limit_interface_reset_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_reset_get")] + public static extern IntPtr switch_limit_interface_reset_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_status_set")] + public static extern void switch_limit_interface_status_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_status_get")] + public static extern IntPtr switch_limit_interface_status_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_rwlock_set")] + public static extern void switch_limit_interface_rwlock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_rwlock_get")] + public static extern IntPtr switch_limit_interface_rwlock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_refs_set")] + public static extern void switch_limit_interface_refs_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_refs_get")] + public static extern int switch_limit_interface_refs_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_reflock_set")] + public static extern void switch_limit_interface_reflock_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_reflock_get")] + public static extern IntPtr switch_limit_interface_reflock_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_parent_set")] + public static extern void switch_limit_interface_parent_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_parent_get")] + public static extern IntPtr switch_limit_interface_parent_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_next_set")] + public static extern void switch_limit_interface_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_limit_interface_next_get")] + public static extern IntPtr switch_limit_interface_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_limit_interface")] + public static extern IntPtr new_switch_limit_interface(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_limit_interface")] + public static extern void delete_switch_limit_interface(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_directory_interface_interface_name_set")] public static extern void switch_directory_interface_interface_name_set(HandleRef jarg1, string jarg2); @@ -10358,8 +10430,8 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_init")] public static extern int switch_channel_init(HandleRef jarg1, HandleRef jarg2, int jarg3, int jarg4); - [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_presence")] - public static extern void switch_channel_presence(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_perform_presence")] + public static extern void switch_channel_perform_presence(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, int jarg7); [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_uninit")] public static extern void switch_channel_uninit(HandleRef jarg1); @@ -13379,6 +13451,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * 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 SWIGTYPE_p_f_p_q_const__char_p_switch_core_session_p_switch_stream_handle__switch_status_t { private HandleRef swigCPtr; @@ -13949,6 +14051,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * 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 SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_bool_t { private HandleRef swigCPtr; @@ -13979,6 +14111,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * 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 SWIGTYPE_p_f_p_switch_core_session_p_q_const__char__void { private HandleRef swigCPtr; @@ -15239,6 +15401,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_f_void__p_char { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_void__p_char(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_void__p_char() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_void__p_char obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * 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 SWIGTYPE_p_f_void__switch_status_t { private HandleRef swigCPtr; @@ -21774,6 +21966,7 @@ public enum switch_core_session_message_types_t { SWITCH_MESSAGE_INDICATE_PHONE_EVENT, SWITCH_MESSAGE_INDICATE_T38_DESCRIPTION, SWITCH_MESSAGE_INDICATE_UDPTL_MODE, + SWITCH_MESSAGE_INDICATE_CLEAR_PROGRESS, SWITCH_MESSAGE_INVALID } @@ -25525,6 +25718,172 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class switch_limit_interface : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_limit_interface(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_limit_interface obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_limit_interface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_limit_interface(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + } + } + + public string interface_name { + set { + freeswitchPINVOKE.switch_limit_interface_interface_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_limit_interface_interface_name_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t incr { + set { + freeswitchPINVOKE.switch_limit_interface_incr_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_incr_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char_q_const__int_q_const__int__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t release { + set { + freeswitchPINVOKE.switch_limit_interface_release_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_release_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_q_const__char_p_q_const__char__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int usage { + set { + freeswitchPINVOKE.switch_limit_interface_usage_set(swigCPtr, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_usage_get(swigCPtr); + SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_unsigned_long__int(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_void__switch_status_t reset { + set { + freeswitchPINVOKE.switch_limit_interface_reset_set(swigCPtr, SWIGTYPE_p_f_void__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_reset_get(swigCPtr); + SWIGTYPE_p_f_void__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_void__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_void__p_char status { + set { + freeswitchPINVOKE.switch_limit_interface_status_set(swigCPtr, SWIGTYPE_p_f_void__p_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_status_get(swigCPtr); + SWIGTYPE_p_f_void__p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_void__p_char(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_thread_rwlock_t rwlock { + set { + freeswitchPINVOKE.switch_limit_interface_rwlock_set(swigCPtr, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_rwlock_get(swigCPtr); + SWIGTYPE_p_switch_thread_rwlock_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_rwlock_t(cPtr, false); + return ret; + } + } + + public int refs { + set { + freeswitchPINVOKE.switch_limit_interface_refs_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_limit_interface_refs_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_mutex_t reflock { + set { + freeswitchPINVOKE.switch_limit_interface_reflock_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_reflock_get(swigCPtr); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_switch_loadable_module_interface parent { + set { + freeswitchPINVOKE.switch_limit_interface_parent_set(swigCPtr, SWIGTYPE_p_switch_loadable_module_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_parent_get(swigCPtr); + SWIGTYPE_p_switch_loadable_module_interface ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_loadable_module_interface(cPtr, false); + return ret; + } + } + + public switch_limit_interface next { + set { + freeswitchPINVOKE.switch_limit_interface_next_set(swigCPtr, switch_limit_interface.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_limit_interface_next_get(swigCPtr); + switch_limit_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_limit_interface(cPtr, false); + return ret; + } + } + + public switch_limit_interface() : this(freeswitchPINVOKE.new_switch_limit_interface(), 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_loadable_module_function_table_t : IDisposable { private HandleRef swigCPtr; protected bool swigCMemOwn; @@ -26010,7 +26369,8 @@ public enum switch_module_interface_name_t { SWITCH_CHAT_INTERFACE, SWITCH_SAY_INTERFACE, SWITCH_ASR_INTERFACE, - SWITCH_MANAGEMENT_INTERFACE + SWITCH_MANAGEMENT_INTERFACE, + SWITCH_LIMIT_INTERFACE } } diff --git a/src/mod/languages/mod_perl/mod_perl_wrap.cpp b/src/mod/languages/mod_perl/mod_perl_wrap.cpp index b615b9d930..5ba899fbf8 100644 --- a/src/mod/languages/mod_perl/mod_perl_wrap.cpp +++ b/src/mod/languages/mod_perl/mod_perl_wrap.cpp @@ -9708,17 +9708,17 @@ XS(SWIG_init) { SWIG_TypeClientData(SWIGTYPE_p_IVRMenu, (void*) "freeswitch::IVRMenu"); SWIG_TypeClientData(SWIGTYPE_p_API, (void*) "freeswitch::API"); SWIG_TypeClientData(SWIGTYPE_p_input_callback_state, (void*) "freeswitch::input_callback_state_t"); - /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { + /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "S_HUP", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_HUP))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { + /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "S_FREE", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_FREE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { + /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "S_RDLOCK", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_RDLOCK))); SvREADONLY_on(sv);