diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index 57c81506f3..cc303b9d3a 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -3824,6 +3824,26 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_mprintf(char * jarg1) { } +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_vmprintf(char * jarg1, void * jarg2) { + char * jresult ; + char *arg1 = (char *) 0 ; + va_list arg2 ; + char *result = 0 ; + va_list *argp2 ; + + arg1 = (char *)jarg1; + argp2 = (va_list *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null va_list", 0); + return 0; + } + arg2 = *argp2; + result = (char *)switch_vmprintf((char const *)arg1,arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_switch_regex_compile(char * jarg1, int jarg2, void * jarg3, void * jarg4, void * jarg5) { void * jresult ; char *arg1 = (char *) 0 ; @@ -5010,6 +5030,20 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_remove(void * jarg1, voi } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_remove_callback(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_media_bug_callback_t arg2 = (switch_media_bug_callback_t) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_media_bug_callback_t)jarg2; + result = (switch_status_t)switch_core_media_bug_remove_callback(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_close(void * jarg1) { int jresult ; switch_media_bug_t **arg1 = (switch_media_bug_t **) 0 ; @@ -10617,6 +10651,29 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_park_get(void } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_on_reporting_set(void * jarg1, void * jarg2) { + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t arg2 = (switch_state_handler_t) 0 ; + + arg1 = (switch_state_handler_table *)jarg1; + arg2 = (switch_state_handler_t)jarg2; + if (arg1) (arg1)->on_reporting = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_state_handler_table_on_reporting_get(void * jarg1) { + void * jresult ; + switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; + switch_state_handler_t result; + + arg1 = (switch_state_handler_table *)jarg1; + result = (switch_state_handler_t) ((arg1)->on_reporting); + jresult = (void *)result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_state_handler_table_padding_set(void * jarg1, void * jarg2) { switch_state_handler_table *arg1 = (switch_state_handler_table *) 0 ; void **arg2 ; diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index 0b2a921a62..e25ea8a032 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -817,6 +817,12 @@ public class freeswitch { return ret; } + public static string switch_vmprintf(string zFormat, SWIGTYPE_p_va_list ap) { + string ret = freeswitchPINVOKE.switch_vmprintf(zFormat, SWIGTYPE_p_va_list.getCPtr(ap)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public static SWIGTYPE_p_real_pcre switch_regex_compile(string pattern, int options, ref string errorptr, SWIGTYPE_p_int erroroffset, SWIGTYPE_p_unsigned_char tables) { IntPtr cPtr = freeswitchPINVOKE.switch_regex_compile(pattern, options, ref errorptr, SWIGTYPE_p_int.getCPtr(erroroffset), SWIGTYPE_p_unsigned_char.getCPtr(tables)); SWIGTYPE_p_real_pcre ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_real_pcre(cPtr, false); @@ -924,6 +930,11 @@ public class freeswitch { return ret; } + public static switch_status_t switch_core_media_bug_remove_callback(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t callback) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_remove_callback(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_media_bug_p_void_enum_switch_abc_type_t__switch_bool_t.getCPtr(callback)); + return ret; + } + public static switch_status_t switch_core_media_bug_close(SWIGTYPE_p_p_switch_media_bug bug) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_close(SWIGTYPE_p_p_switch_media_bug.getCPtr(bug)); return ret; @@ -5340,6 +5351,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_mprintf")] public static extern string switch_mprintf(string jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_vmprintf")] + public static extern string switch_vmprintf(string jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_regex_compile")] public static extern IntPtr switch_regex_compile(string jarg1, int jarg2, ref string jarg3, HandleRef jarg4, HandleRef jarg5); @@ -5622,6 +5636,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_remove")] public static extern int switch_core_media_bug_remove(HandleRef jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_remove_callback")] + public static extern int switch_core_media_bug_remove_callback(HandleRef jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_close")] public static extern int switch_core_media_bug_close(HandleRef jarg1); @@ -6873,6 +6890,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_park_get")] public static extern IntPtr switch_state_handler_table_on_park_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_reporting_set")] + public static extern void switch_state_handler_table_on_reporting_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_on_reporting_get")] + public static extern IntPtr switch_state_handler_table_on_reporting_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_state_handler_table_padding_set")] public static extern void switch_state_handler_table_padding_set(HandleRef jarg1, HandleRef jarg2); @@ -15384,6 +15407,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_va_list { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_va_list(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_va_list() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_va_list 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_void { private HandleRef swigCPtr; @@ -17230,6 +17283,7 @@ public class switch_caller_profile : IDisposable { namespace FreeSWITCH.Native { [System.Flags] public enum switch_caller_profile_flag_enum_t { + SWITCH_CPF_NONE = 0, SWITCH_CPF_SCREEN = (1 << 0), SWITCH_CPF_HIDE_NAME = (1 << 1), SWITCH_CPF_HIDE_NUMBER = (1 << 2) @@ -17294,6 +17348,7 @@ public enum switch_channel_flag_t { CF_VERBOSE_EVENTS, CF_PAUSE_BUGS, CF_DIVERT_EVENTS, + CF_BLOCK_STATE, CF_FLAG_MAX } @@ -17320,6 +17375,7 @@ public enum switch_channel_state_t { CS_HIBERNATE, CS_RESET, CS_HANGUP, + CS_REPORTING, CS_DONE, CS_NONE } @@ -20058,6 +20114,7 @@ namespace FreeSWITCH.Native { public enum switch_event_types_t { SWITCH_EVENT_CUSTOM, + SWITCH_EVENT_CLONE, SWITCH_EVENT_CHANNEL_CREATE, SWITCH_EVENT_CHANNEL_DESTROY, SWITCH_EVENT_CHANNEL_STATE, @@ -24071,7 +24128,8 @@ public enum switch_state_handler_name_t { SWITCH_SHN_ON_CONSUME_MEDIA, SWITCH_SHN_ON_HIBERNATE, SWITCH_SHN_ON_RESET, - SWITCH_SHN_ON_PARK + SWITCH_SHN_ON_PARK, + SWITCH_SHN_ON_REPORTING } } @@ -24226,6 +24284,17 @@ public class switch_state_handler_table : IDisposable { } } + public SWIGTYPE_p_f_p_switch_core_session__switch_status_t on_reporting { + set { + freeswitchPINVOKE.switch_state_handler_table_on_reporting_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_state_handler_table_on_reporting_get(swigCPtr); + SWIGTYPE_p_f_p_switch_core_session__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session__switch_status_t(cPtr, false); + return ret; + } + } + public SWIGTYPE_p_p_void padding { set { freeswitchPINVOKE.switch_state_handler_table_padding_set(swigCPtr, SWIGTYPE_p_p_void.getCPtr(value));