From 3658763cbac8c6f12157a6ad2e31b8f8480535df Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 10 Feb 2016 17:07:53 -0600 Subject: [PATCH] swigall --- .../languages/mod_managed/freeswitch_wrap.cxx | 294 ++++++++++++++++-- src/mod/languages/mod_managed/managed/swig.cs | 261 +++++++++++++++- 2 files changed, 524 insertions(+), 31 deletions(-) diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index 31f7a0ed92..fe8b2a8d94 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -1820,6 +1820,16 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PARK_AFTER_BRIDGE_VARIABLE_get() { } +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_PARK_AFTER_EARLY_BRIDGE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("park_after_early_bridge"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get() { char * jresult ; char *result = 0 ; @@ -1830,6 +1840,16 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get() } +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_TRANSFER_AFTER_EARLY_BRIDGE_VARIABLE_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("transfer_after_early_bridge"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE_get() { char * jresult ; char *result = 0 ; @@ -3252,6 +3272,90 @@ SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_MANAGEMENT_BUFFER_LEN_get() { } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_error_period_t_start_set(void * jarg1, long long jarg2) { + error_period *arg1 = (error_period *) 0 ; + int64_t arg2 ; + + arg1 = (error_period *)jarg1; + arg2 = (int64_t)jarg2; + if (arg1) (arg1)->start = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_switch_error_period_t_start_get(void * jarg1) { + long long jresult ; + error_period *arg1 = (error_period *) 0 ; + int64_t result; + + arg1 = (error_period *)jarg1; + result = (int64_t) ((arg1)->start); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_error_period_t_stop_set(void * jarg1, long long jarg2) { + error_period *arg1 = (error_period *) 0 ; + int64_t arg2 ; + + arg1 = (error_period *)jarg1; + arg2 = (int64_t)jarg2; + if (arg1) (arg1)->stop = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_switch_error_period_t_stop_get(void * jarg1) { + long long jresult ; + error_period *arg1 = (error_period *) 0 ; + int64_t result; + + arg1 = (error_period *)jarg1; + result = (int64_t) ((arg1)->stop); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_error_period_t_next_set(void * jarg1, void * jarg2) { + error_period *arg1 = (error_period *) 0 ; + error_period *arg2 = (error_period *) 0 ; + + arg1 = (error_period *)jarg1; + arg2 = (error_period *)jarg2; + if (arg1) (arg1)->next = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_error_period_t_next_get(void * jarg1) { + void * jresult ; + error_period *arg1 = (error_period *) 0 ; + error_period *result = 0 ; + + arg1 = (error_period *)jarg1; + result = (error_period *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_error_period_t() { + void * jresult ; + error_period *result = 0 ; + + result = (error_period *)new error_period(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_error_period_t(void * jarg1) { + error_period *arg1 = (error_period *) 0 ; + + arg1 = (error_period *)jarg1; + delete arg1; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_raw_bytes_set(void * jarg1, void * jarg2) { switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; switch_size_t arg2 ; @@ -3994,6 +4098,28 @@ SWIGEXPORT double SWIGSTDCALL CSharp_switch_rtp_numbers_t_mos_get(void * jarg1) } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_numbers_t_error_log_set(void * jarg1, void * jarg2) { + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + error_period *arg2 = (error_period *) 0 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + arg2 = (error_period *)jarg2; + if (arg1) (arg1)->error_log = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_numbers_t_error_log_get(void * jarg1) { + void * jresult ; + switch_rtp_numbers_t *arg1 = (switch_rtp_numbers_t *) 0 ; + error_period *result = 0 ; + + arg1 = (switch_rtp_numbers_t *)jarg1; + result = (error_period *) ((arg1)->error_log); + jresult = (void *)result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_numbers_t() { void * jresult ; switch_rtp_numbers_t *result = 0 ; @@ -10533,6 +10659,44 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_core_thread_session(void * jarg } +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_must_malloc(unsigned long jarg1) { + void * jresult ; + size_t arg1 ; + void *result = 0 ; + + arg1 = (size_t)jarg1; + result = (void *)switch_must_malloc(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_must_realloc(void * jarg1, unsigned long jarg2) { + void * jresult ; + void *arg1 = (void *) 0 ; + size_t arg2 ; + void *result = 0 ; + + arg1 = (void *)jarg1; + arg2 = (size_t)jarg2; + result = (void *)switch_must_realloc(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_must_strdup(char * jarg1) { + char * jresult ; + char *arg1 = (char *) 0 ; + char *result = 0 ; + + arg1 = (char *)jarg1; + result = (char *)switch_must_strdup((char const *)arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_screen_size(void * jarg1, void * jarg2) { int *arg1 = (int *) 0 ; int *arg2 = (int *) 0 ; @@ -13057,34 +13221,34 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_delete(void * jarg1, char } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete_locked(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_delete_locked(void * jarg1, char * jarg2, void * jarg3) { + void * jresult ; switch_hash_t *arg1 = (switch_hash_t *) 0 ; char *arg2 = (char *) 0 ; switch_mutex_t *arg3 = (switch_mutex_t *) 0 ; - switch_status_t result; + void *result = 0 ; arg1 = (switch_hash_t *)jarg1; arg2 = (char *)jarg2; arg3 = (switch_mutex_t *)jarg3; - result = (switch_status_t)switch_core_hash_delete_locked(arg1,(char const *)arg2,arg3); - jresult = result; + result = (void *)switch_core_hash_delete_locked(arg1,(char const *)arg2,arg3); + jresult = (void *)result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete_wrlock(void * jarg1, char * jarg2, void * jarg3) { - int jresult ; +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_delete_wrlock(void * jarg1, char * jarg2, void * jarg3) { + void * jresult ; switch_hash_t *arg1 = (switch_hash_t *) 0 ; char *arg2 = (char *) 0 ; switch_thread_rwlock_t *arg3 = (switch_thread_rwlock_t *) 0 ; - switch_status_t result; + void *result = 0 ; arg1 = (switch_hash_t *)jarg1; arg2 = (char *)jarg2; arg3 = (switch_thread_rwlock_t *)jarg3; - result = (switch_status_t)switch_core_hash_delete_wrlock(arg1,(char const *)arg2,arg3); - jresult = result; + result = (void *)switch_core_hash_delete_wrlock(arg1,(char const *)arg2,arg3); + jresult = (void *)result; return jresult; } @@ -14608,6 +14772,16 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_management_exec(char * jarg1, int } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_set_process_privileges() { + int jresult ; + int32_t result; + + result = (int32_t)switch_core_set_process_privileges(); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_set_normal_priority() { int jresult ; int32_t result; @@ -19347,18 +19521,18 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_util_quote_shell_arg_pool(char * jar } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_calc_bitrate(int jarg1, int jarg2, int jarg3, int jarg4) { +SWIGEXPORT int SWIGSTDCALL CSharp_switch_calc_bitrate(int jarg1, int jarg2, int jarg3, double jarg4) { int jresult ; int arg1 ; int arg2 ; int arg3 ; - int arg4 ; + double arg4 ; int32_t result; arg1 = (int)jarg1; arg2 = (int)jarg2; arg3 = (int)jarg3; - arg4 = (int)jarg4; + arg4 = (double)jarg4; result = (int32_t)switch_calc_bitrate(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -25121,6 +25295,28 @@ SWIGEXPORT float SWIGSTDCALL CSharp_switch_mm_t_fps_get(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_source_fps_set(void * jarg1, float jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + float arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->source_fps = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_switch_mm_t_source_fps_get(void * jarg1) { + float jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + float result; + + arg1 = (switch_mm_s *)jarg1; + result = (float) ((arg1)->source_fps); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_vbuf_set(void * jarg1, int jarg2) { switch_mm_s *arg1 = (switch_mm_s *) 0 ; int arg2 ; @@ -25143,6 +25339,28 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_vbuf_get(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_vprofile_set(void * jarg1, int jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + switch_video_profile_t arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (switch_video_profile_t)jarg2; + if (arg1) (arg1)->vprofile = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_vprofile_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + switch_video_profile_t result; + + arg1 = (switch_mm_s *)jarg1; + result = (switch_video_profile_t) ((arg1)->vprofile); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_vencspd_set(void * jarg1, int jarg2) { switch_mm_s *arg1 = (switch_mm_s *) 0 ; switch_video_encode_speed_t arg2 ; @@ -35666,6 +35884,18 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_bind(char * jarg1, int jarg2, cha } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_get_custom_events(void * jarg1) { + int jresult ; + switch_console_callback_match_t **arg1 = (switch_console_callback_match_t **) 0 ; + switch_status_t result; + + arg1 = (switch_console_callback_match_t **)jarg1; + result = (switch_status_t)switch_event_get_custom_events(arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_bind_removable(char * jarg1, int jarg2, char * jarg3, void * jarg4, void * jarg5, void * jarg6) { int jresult ; char *arg1 = (char *) 0 ; @@ -36074,20 +36304,20 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_event_launch_dispatch_threads(unsigned } -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_event_channel_broadcast(char * jarg1, void * jarg2, char * jarg3, unsigned long jarg4) { - unsigned long jresult ; +SWIGEXPORT int SWIGSTDCALL CSharp_switch_event_channel_broadcast(char * jarg1, void * jarg2, char * jarg3, unsigned long jarg4) { + int jresult ; char *arg1 = (char *) 0 ; cJSON **arg2 = (cJSON **) 0 ; char *arg3 = (char *) 0 ; switch_event_channel_id_t arg4 ; - uint32_t result; + switch_status_t result; arg1 = (char *)jarg1; arg2 = (cJSON **)jarg2; arg3 = (char *)jarg3; arg4 = (switch_event_channel_id_t)jarg4; - result = (uint32_t)switch_event_channel_broadcast((char const *)arg1,arg2,(char const *)arg3,arg4); - jresult = (unsigned long)result; + result = (switch_status_t)switch_event_channel_broadcast((char const *)arg1,arg2,(char const *)arg3,arg4); + jresult = result; return jresult; } @@ -37430,6 +37660,22 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_all_signal_data(void * jarg1) } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_signal_data(void * jarg1, int jarg2, int jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_bool_t arg2 ; + switch_bool_t arg3 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_bool_t)jarg2; + arg3 = (switch_bool_t)jarg3; + result = (switch_status_t)switch_ivr_parse_signal_data(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_parse_next_signal_data(void * jarg1) { int jresult ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; @@ -39774,8 +40020,8 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_packet_t_body_set(void * jarg1, ch arg2 = (char *)jarg2; { if(arg2) { - strncpy((char*)arg1->body, (const char *)arg2, 16384-1); - arg1->body[16384-1] = 0; + strncpy((char*)arg1->body, (const char *)arg2, 16384+4+sizeof(char *)-1); + arg1->body[16384+4+sizeof(char *)-1] = 0; } else { arg1->body[0] = 0; } @@ -40816,6 +41062,14 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_remote_address(void * jarg1, ch } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_reset_jb(void * jarg1) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + + arg1 = (switch_rtp_t *)jarg1; + switch_rtp_reset_jb(arg1); +} + + SWIGEXPORT char * SWIGSTDCALL CSharp_switch_rtp_get_remote_host(void * jarg1) { char * jresult ; switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index f94de19823..7063a5b716 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -1211,6 +1211,23 @@ public class freeswitch { freeswitchPINVOKE.switch_regex_set_event_header_callback(var, val, SWIGTYPE_p_void.getCPtr(user_data)); } + public static SWIGTYPE_p_void switch_must_malloc(uint _b) { + IntPtr cPtr = freeswitchPINVOKE.switch_must_malloc(_b); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_void switch_must_realloc(SWIGTYPE_p_void _b, uint _z) { + IntPtr cPtr = freeswitchPINVOKE.switch_must_realloc(SWIGTYPE_p_void.getCPtr(_b), _z); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static string switch_must_strdup(string _s) { + string ret = freeswitchPINVOKE.switch_must_strdup(_s); + return ret; + } + public static void switch_core_screen_size(SWIGTYPE_p_int x, SWIGTYPE_p_int y) { freeswitchPINVOKE.switch_core_screen_size(SWIGTYPE_p_int.getCPtr(x), SWIGTYPE_p_int.getCPtr(y)); } @@ -2143,13 +2160,15 @@ public class freeswitch { return ret; } - public static switch_status_t switch_core_hash_delete_locked(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_switch_mutex_t mutex) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_delete_locked(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_switch_mutex_t.getCPtr(mutex)); + public static SWIGTYPE_p_void switch_core_hash_delete_locked(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_switch_mutex_t mutex) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_delete_locked(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_switch_mutex_t.getCPtr(mutex)); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); return ret; } - public static switch_status_t switch_core_hash_delete_wrlock(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_switch_thread_rwlock_t rwlock) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_delete_wrlock(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(rwlock)); + public static SWIGTYPE_p_void switch_core_hash_delete_wrlock(SWIGTYPE_p_switch_hashtable hash, string key, SWIGTYPE_p_switch_thread_rwlock_t rwlock) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_delete_wrlock(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_switch_thread_rwlock_t.getCPtr(rwlock)); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); return ret; } @@ -2682,6 +2701,11 @@ public class freeswitch { return ret; } + public static int switch_core_set_process_privileges() { + int ret = freeswitchPINVOKE.switch_core_set_process_privileges(); + return ret; + } + public static int set_normal_priority() { int ret = freeswitchPINVOKE.set_normal_priority(); return ret; @@ -4074,7 +4098,7 @@ public class freeswitch { return ret; } - public static int switch_calc_bitrate(int w, int h, int quality, int fps) { + public static int switch_calc_bitrate(int w, int h, int quality, double fps) { int ret = freeswitchPINVOKE.switch_calc_bitrate(w, h, quality, fps); return ret; } @@ -5257,6 +5281,11 @@ public class freeswitch { return ret; } + public static switch_status_t switch_event_get_custom_events(SWIGTYPE_p_p_switch_console_callback_match matches) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_get_custom_events(SWIGTYPE_p_p_switch_console_callback_match.getCPtr(matches)); + return ret; + } + public static switch_status_t switch_event_bind_removable(string id, switch_event_types_t arg1, string subclass_name, SWIGTYPE_p_f_p_switch_event__void callback, SWIGTYPE_p_void user_data, SWIGTYPE_p_p_switch_event_node node) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_bind_removable(id, (int)arg1, subclass_name, SWIGTYPE_p_f_p_switch_event__void.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data), SWIGTYPE_p_p_switch_event_node.getCPtr(node)); return ret; @@ -5384,8 +5413,8 @@ public class freeswitch { freeswitchPINVOKE.switch_event_launch_dispatch_threads(max); } - public static uint switch_event_channel_broadcast(string event_channel, SWIGTYPE_p_p_cJSON json, string key, uint id) { - uint ret = freeswitchPINVOKE.switch_event_channel_broadcast(event_channel, SWIGTYPE_p_p_cJSON.getCPtr(json), key, id); + public static switch_status_t switch_event_channel_broadcast(string event_channel, SWIGTYPE_p_p_cJSON json, string key, uint id) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_channel_broadcast(event_channel, SWIGTYPE_p_p_cJSON.getCPtr(json), key, id); return ret; } @@ -5615,6 +5644,11 @@ public class freeswitch { return ret; } + public static switch_status_t switch_ivr_parse_signal_data(SWIGTYPE_p_switch_core_session session, switch_bool_t all, switch_bool_t only_session_thread) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_parse_signal_data(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)all, (int)only_session_thread); + return ret; + } + public static switch_status_t switch_ivr_parse_next_signal_data(SWIGTYPE_p_switch_core_session session) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_parse_next_signal_data(SWIGTYPE_p_switch_core_session.getCPtr(session)); return ret; @@ -6377,6 +6411,10 @@ public class freeswitch { return ret; } + public static void switch_rtp_reset_jb(SWIGTYPE_p_switch_rtp rtp_session) { + freeswitchPINVOKE.switch_rtp_reset_jb(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + } + public static string switch_rtp_get_remote_host(SWIGTYPE_p_switch_rtp rtp_session) { string ret = freeswitchPINVOKE.switch_rtp_get_remote_host(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); return ret; @@ -7391,7 +7429,9 @@ public class freeswitch { public static readonly string SWITCH_LOCAL_VIDEO_PORT_VARIABLE = freeswitchPINVOKE.SWITCH_LOCAL_VIDEO_PORT_VARIABLE_get(); public static readonly string SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE_get(); public static readonly string SWITCH_PARK_AFTER_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_PARK_AFTER_BRIDGE_VARIABLE_get(); + public static readonly string SWITCH_PARK_AFTER_EARLY_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_PARK_AFTER_EARLY_BRIDGE_VARIABLE_get(); public static readonly string SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get(); + public static readonly string SWITCH_TRANSFER_AFTER_EARLY_BRIDGE_VARIABLE = freeswitchPINVOKE.SWITCH_TRANSFER_AFTER_EARLY_BRIDGE_VARIABLE_get(); public static readonly string SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE = freeswitchPINVOKE.SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE_get(); public static readonly string SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE = freeswitchPINVOKE.SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE_get(); public static readonly string SWITCH_MAX_FORWARDS_VARIABLE = freeswitchPINVOKE.SWITCH_MAX_FORWARDS_VARIABLE_get(); @@ -8127,9 +8167,15 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PARK_AFTER_BRIDGE_VARIABLE_get")] public static extern string SWITCH_PARK_AFTER_BRIDGE_VARIABLE_get(); + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_PARK_AFTER_EARLY_BRIDGE_VARIABLE_get")] + public static extern string SWITCH_PARK_AFTER_EARLY_BRIDGE_VARIABLE_get(); + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get")] public static extern string SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE_get(); + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_TRANSFER_AFTER_EARLY_BRIDGE_VARIABLE_get")] + public static extern string SWITCH_TRANSFER_AFTER_EARLY_BRIDGE_VARIABLE_get(); + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE_get")] public static extern string SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE_get(); @@ -8487,6 +8533,30 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_MANAGEMENT_BUFFER_LEN_get")] public static extern int SWITCH_MAX_MANAGEMENT_BUFFER_LEN_get(); + [DllImport("mod_managed", EntryPoint="CSharp_switch_error_period_t_start_set")] + public static extern void switch_error_period_t_start_set(HandleRef jarg1, long jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_error_period_t_start_get")] + public static extern long switch_error_period_t_start_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_error_period_t_stop_set")] + public static extern void switch_error_period_t_stop_set(HandleRef jarg1, long jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_error_period_t_stop_get")] + public static extern long switch_error_period_t_stop_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_error_period_t_next_set")] + public static extern void switch_error_period_t_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_error_period_t_next_get")] + public static extern IntPtr switch_error_period_t_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_error_period_t")] + public static extern IntPtr new_switch_error_period_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_error_period_t")] + public static extern void delete_switch_error_period_t(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_raw_bytes_set")] public static extern void switch_rtp_numbers_t_raw_bytes_set(HandleRef jarg1, HandleRef jarg2); @@ -8667,6 +8737,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_mos_get")] public static extern double switch_rtp_numbers_t_mos_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_error_log_set")] + public static extern void switch_rtp_numbers_t_error_log_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_error_log_get")] + public static extern IntPtr switch_rtp_numbers_t_error_log_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_numbers_t")] public static extern IntPtr new_switch_rtp_numbers_t(); @@ -10368,6 +10444,15 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_core_thread_session")] public static extern void delete_switch_core_thread_session(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_must_malloc")] + public static extern IntPtr switch_must_malloc(uint jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_must_realloc")] + public static extern IntPtr switch_must_realloc(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_must_strdup")] + public static extern string switch_must_strdup(string jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_screen_size")] public static extern void switch_core_screen_size(HandleRef jarg1, HandleRef jarg2); @@ -10933,10 +11018,10 @@ class freeswitchPINVOKE { public static extern IntPtr switch_core_hash_delete(HandleRef jarg1, string jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete_locked")] - public static extern int switch_core_hash_delete_locked(HandleRef jarg1, string jarg2, HandleRef jarg3); + public static extern IntPtr switch_core_hash_delete_locked(HandleRef jarg1, string jarg2, HandleRef jarg3); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete_wrlock")] - public static extern int switch_core_hash_delete_wrlock(HandleRef jarg1, string jarg2, HandleRef jarg3); + public static extern IntPtr switch_core_hash_delete_wrlock(HandleRef jarg1, string jarg2, HandleRef jarg3); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete_multi")] public static extern int switch_core_hash_delete_multi(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); @@ -11256,6 +11341,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_management_exec")] public static extern int switch_core_management_exec(string jarg1, int jarg2, string jarg3, HandleRef jarg4); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_set_process_privileges")] + public static extern int switch_core_set_process_privileges(); + [DllImport("mod_managed", EntryPoint="CSharp_set_normal_priority")] public static extern int set_normal_priority(); @@ -12355,7 +12443,7 @@ class freeswitchPINVOKE { public static extern string switch_util_quote_shell_arg_pool(string jarg1, HandleRef jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_calc_bitrate")] - public static extern int switch_calc_bitrate(int jarg1, int jarg2, int jarg3, int jarg4); + public static extern int switch_calc_bitrate(int jarg1, int jarg2, int jarg3, double jarg4); [DllImport("mod_managed", EntryPoint="CSharp_switch_parse_bandwidth_string")] public static extern int switch_parse_bandwidth_string(string jarg1); @@ -13788,12 +13876,24 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_fps_get")] public static extern float switch_mm_t_fps_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_source_fps_set")] + public static extern void switch_mm_t_source_fps_set(HandleRef jarg1, float jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_source_fps_get")] + public static extern float switch_mm_t_source_fps_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vbuf_set")] public static extern void switch_mm_t_vbuf_set(HandleRef jarg1, int jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vbuf_get")] public static extern int switch_mm_t_vbuf_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vprofile_set")] + public static extern void switch_mm_t_vprofile_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vprofile_get")] + public static extern int switch_mm_t_vprofile_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vencspd_set")] public static extern void switch_mm_t_vencspd_set(HandleRef jarg1, int jarg2); @@ -16422,6 +16522,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_event_bind")] public static extern int switch_event_bind(string jarg1, int jarg2, string jarg3, HandleRef jarg4, HandleRef jarg5); + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_get_custom_events")] + public static extern int switch_event_get_custom_events(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_event_bind_removable")] public static extern int switch_event_bind_removable(string jarg1, int jarg2, string jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6); @@ -16501,7 +16604,7 @@ class freeswitchPINVOKE { public static extern void switch_event_launch_dispatch_threads(uint jarg1); [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_broadcast")] - public static extern uint switch_event_channel_broadcast(string jarg1, HandleRef jarg2, string jarg3, uint jarg4); + public static extern int switch_event_channel_broadcast(string jarg1, HandleRef jarg2, string jarg3, uint jarg4); [DllImport("mod_managed", EntryPoint="CSharp_switch_event_channel_unbind")] public static extern uint switch_event_channel_unbind(string jarg1, HandleRef jarg2); @@ -16821,6 +16924,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_all_signal_data")] public static extern int switch_ivr_parse_all_signal_data(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_signal_data")] + public static extern int switch_ivr_parse_signal_data(HandleRef jarg1, int jarg2, int jarg3); + [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_next_signal_data")] public static extern int switch_ivr_parse_next_signal_data(HandleRef jarg1); @@ -17496,6 +17602,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_remote_address")] public static extern int switch_rtp_set_remote_address(HandleRef jarg1, string jarg2, ushort jarg3, ushort jarg4, int jarg5, ref string jarg6); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_reset_jb")] + public static extern void switch_rtp_reset_jb(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_remote_host")] public static extern string switch_rtp_get_remote_host(HandleRef jarg1); @@ -33304,6 +33413,86 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class switch_error_period_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_error_period_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_error_period_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_error_period_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_error_period_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public long start { + set { + freeswitchPINVOKE.switch_error_period_t_start_set(swigCPtr, value); + } + get { + long ret = freeswitchPINVOKE.switch_error_period_t_start_get(swigCPtr); + return ret; + } + } + + public long stop { + set { + freeswitchPINVOKE.switch_error_period_t_stop_set(swigCPtr, value); + } + get { + long ret = freeswitchPINVOKE.switch_error_period_t_stop_get(swigCPtr); + return ret; + } + } + + public switch_error_period_t next { + set { + freeswitchPINVOKE.switch_error_period_t_next_set(swigCPtr, switch_error_period_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_error_period_t_next_get(swigCPtr); + switch_error_period_t ret = (cPtr == IntPtr.Zero) ? null : new switch_error_period_t(cPtr, false); + return ret; + } + } + + public switch_error_period_t() : this(freeswitchPINVOKE.new_switch_error_period_t(), 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_event : IDisposable { private HandleRef swigCPtr; protected bool swigCMemOwn; @@ -38031,6 +38220,16 @@ public class switch_mm_t : IDisposable { } } + public float source_fps { + set { + freeswitchPINVOKE.switch_mm_t_source_fps_set(swigCPtr, value); + } + get { + float ret = freeswitchPINVOKE.switch_mm_t_source_fps_get(swigCPtr); + return ret; + } + } + public int vbuf { set { freeswitchPINVOKE.switch_mm_t_vbuf_set(swigCPtr, value); @@ -38041,6 +38240,16 @@ public class switch_mm_t : IDisposable { } } + public switch_video_profile_t vprofile { + set { + freeswitchPINVOKE.switch_mm_t_vprofile_set(swigCPtr, (int)value); + } + get { + switch_video_profile_t ret = (switch_video_profile_t)freeswitchPINVOKE.switch_mm_t_vprofile_get(swigCPtr); + return ret; + } + } + public switch_video_encode_speed_t vencspd { set { freeswitchPINVOKE.switch_mm_t_vencspd_set(swigCPtr, (int)value); @@ -38981,6 +39190,7 @@ public enum switch_rtp_flag_t { SWITCH_RTP_FLAG_MUTE, SWITCH_RTP_FLAG_NACK, SWITCH_RTP_FLAG_TMMBR, + SWITCH_RTP_FLAG_GEN_TS_DELTA, SWITCH_RTP_FLAG_INVALID } @@ -39580,6 +39790,17 @@ public class switch_rtp_numbers_t : IDisposable { } } + public switch_error_period_t error_log { + set { + freeswitchPINVOKE.switch_rtp_numbers_t_error_log_set(swigCPtr, switch_error_period_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_numbers_t_error_log_get(swigCPtr); + switch_error_period_t ret = (cPtr == IntPtr.Zero) ? null : new switch_error_period_t(cPtr, false); + return ret; + } + } + public switch_rtp_numbers_t() : this(freeswitchPINVOKE.new_switch_rtp_numbers_t(), true) { } @@ -41412,6 +41633,7 @@ public enum switch_status_t { SWITCH_STATUS_CONTINUE, SWITCH_STATUS_TERM, SWITCH_STATUS_NOT_INITALIZED, + SWITCH_STATUS_TOO_LATE, SWITCH_STATUS_XBREAK = 35, SWITCH_STATUS_WINBREAK = 730035 } @@ -42666,6 +42888,23 @@ public enum switch_video_encode_speed_t { namespace FreeSWITCH.Native { +public enum switch_video_profile_t { + SWITCH_VIDEO_PROFILE_BASELINE, + SWITCH_VIDEO_PROFILE_MAIN, + SWITCH_VIDEO_PROFILE_HIGH +} + +} +/* ---------------------------------------------------------------------------- + * 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 { + public enum switch_video_read_flag_t { SVR_BLOCK = (1 << 0), SVR_FLUSH = (1 << 1),