diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx index d37e098099..ce2806c533 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx @@ -2340,36 +2340,6 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_mod_dir_get(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_lib_dir_set(void * jarg1, char * jarg2) { - switch_directories *arg1 = (switch_directories *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_directories *)jarg1; - arg2 = (char *)jarg2; - { - if (arg1->lib_dir) delete [] arg1->lib_dir; - if (arg2) { - arg1->lib_dir = (char *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->lib_dir, (const char *)arg2); - } else { - arg1->lib_dir = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_lib_dir_get(void * jarg1) { - char * jresult ; - switch_directories *arg1 = (switch_directories *) 0 ; - char *result = 0 ; - - arg1 = (switch_directories *)jarg1; - result = (char *) ((arg1)->lib_dir); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_conf_dir_set(void * jarg1, char * jarg2) { switch_directories *arg1 = (switch_directories *) 0 ; char *arg2 = (char *) 0 ; @@ -2700,6 +2670,36 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_sounds_dir_get(void * ja } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_lib_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + if (arg1->lib_dir) delete [] arg1->lib_dir; + if (arg2) { + arg1->lib_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->lib_dir, (const char *)arg2); + } else { + arg1->lib_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_lib_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->lib_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_directories() { void * jresult ; switch_directories *result = 0 ; @@ -3598,6 +3598,68 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_hdr_t(void * jarg1) { } +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 ; @@ -4499,6 +4561,16 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_ivr_dmachine_match(void * jarg1 } +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 ; @@ -4631,6 +4703,28 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_input_args_t_dmachine_get(void * jar } +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 ; @@ -5184,6 +5278,20 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_changes(void * jarg1) { } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_db_load_extension(void * jarg1, char * jarg2) { + int jresult ; + switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (switch_core_db_t *)jarg1; + arg2 = (char *)jarg2; + result = (int)switch_core_db_load_extension(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_DB_OK_get() { int jresult ; int result; @@ -7971,6 +8079,18 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_channel(void * jarg } +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_mutex(void * jarg1) { + void * jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_mutex_t *result = 0 ; + + arg1 = (switch_core_session_t *)jarg1; + result = (switch_mutex_t *)switch_core_session_get_mutex(arg1); + jresult = (void *)result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_wake_session_thread(void * jarg1) { int jresult ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; @@ -8109,6 +8229,20 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_set_target(void * jarg1, } +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 ; @@ -10452,6 +10586,16 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_ready() { } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_running() { + int jresult ; + switch_bool_t result; + + result = (switch_bool_t)switch_core_running(); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_ready_inbound() { int jresult ; switch_bool_t result; @@ -11672,6 +11816,20 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_affected_rows(void * jarg1) { } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_load_extension(void * jarg1, char * jarg2) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + arg2 = (char *)jarg2; + result = (int)switch_cache_db_load_extension(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_status(void * jarg1) { switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; @@ -12170,14 +12328,14 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_execute_sql_event_callback(voi int jresult ; switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; char *arg2 = (char *) 0 ; - switch_db_event_callback_func_t arg3 = (switch_db_event_callback_func_t) 0 ; + switch_core_db_event_callback_func_t arg3 = (switch_core_db_event_callback_func_t) 0 ; void *arg4 = (void *) 0 ; char **arg5 = (char **) 0 ; switch_status_t result; arg1 = (switch_cache_db_handle_t *)jarg1; arg2 = (char *)jarg2; - arg3 = (switch_db_event_callback_func_t)jarg3; + arg3 = (switch_core_db_event_callback_func_t)jarg3; arg4 = (void *)jarg4; arg5 = (char **)jarg5; result = (switch_status_t)switch_cache_db_execute_sql_event_callback(arg1,(char const *)arg2,arg3,arg4,arg5); @@ -13296,25 +13454,65 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_execute(char * jarg1, int jarg2 } -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; } @@ -26592,6 +26790,42 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_has_dtmf(void * jarg1) { } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_dtmf_lock(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_status_t)switch_channel_dtmf_lock(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_try_dtmf_lock(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_status_t)switch_channel_try_dtmf_lock(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_dtmf_unlock(void * jarg1) { + int jresult ; + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + switch_status_t result; + + arg1 = (switch_channel_t *)jarg1; + result = (switch_status_t)switch_channel_dtmf_unlock(arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_queue_dtmf(void * jarg1, void * jarg2) { int jresult ; switch_channel_t *arg1 = (switch_channel_t *) 0 ; @@ -27066,6 +27300,22 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_hold_record(void * jarg1 } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_state_thread_lock(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_state_thread_lock(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_state_thread_unlock(void * jarg1) { + switch_channel_t *arg1 = (switch_channel_t *) 0 ; + + arg1 = (switch_channel_t *)jarg1; + switch_channel_state_thread_unlock(arg1); +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_buffer_create(void * jarg1, void * jarg2, void * jarg3) { int jresult ; switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; @@ -30244,13 +30494,17 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_inband_dtmf_generate_session(v } -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; } @@ -31858,6 +32112,16 @@ SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTCP_MAX_BUF_LEN_get() { } +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; @@ -36386,6 +36650,16 @@ SWIGEXPORT void SWIGSTDCALL CSharp_consoleCleanLog(char * jarg1) { } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_running() { + unsigned int jresult ; + bool result; + + result = (bool)running(); + jresult = result; + return jresult; +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_email(char * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7) { unsigned int jresult ; char *arg1 = (char *) 0 ; @@ -37278,6 +37552,14 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_EventConsumer_pop(void * jarg1, int jarg2, } +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 ; diff --git a/src/mod/languages/mod_managed/managed/swig.2010.cs b/src/mod/languages/mod_managed/managed/swig.2010.cs index 24aac8ed9e..363b4c8581 100644 --- a/src/mod/languages/mod_managed/managed/swig.2010.cs +++ b/src/mod/languages/mod_managed/managed/swig.2010.cs @@ -871,6 +871,10 @@ public class EventConsumer : IDisposable { return ret; } + public void cleanup() { + freeswitchPINVOKE.EventConsumer_cleanup(swigCPtr); + } + } } @@ -998,6 +1002,11 @@ public class freeswitch { return ret; } + public static int switch_core_db_load_extension(SWIGTYPE_p_sqlite3 db, string extension) { + int ret = freeswitchPINVOKE.switch_core_db_load_extension(SWIGTYPE_p_sqlite3.getCPtr(db), extension); + return ret; + } + public static string switch_sql_concat() { string ret = freeswitchPINVOKE.switch_sql_concat(); return ret; @@ -1485,6 +1494,12 @@ public class freeswitch { return ret; } + public static SWIGTYPE_p_switch_mutex_t switch_core_session_get_mutex(SWIGTYPE_p_switch_core_session session) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_mutex(SWIGTYPE_p_switch_core_session.getCPtr(session)); + SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); + return ret; + } + public static switch_status_t switch_core_session_wake_session_thread(SWIGTYPE_p_switch_core_session session) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_wake_session_thread(SWIGTYPE_p_switch_core_session.getCPtr(session)); return ret; @@ -1542,6 +1557,11 @@ public class freeswitch { 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; @@ -2357,6 +2377,11 @@ public class freeswitch { return ret; } + public static switch_bool_t switch_core_running() { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_running(); + return ret; + } + public static switch_bool_t switch_core_ready_inbound() { switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_ready_inbound(); return ret; @@ -2699,6 +2724,11 @@ public class freeswitch { return ret; } + public static int switch_cache_db_load_extension(SWIGTYPE_p_switch_cache_db_handle dbh, string extension) { + int ret = freeswitchPINVOKE.switch_cache_db_load_extension(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), extension); + return ret; + } + public static void switch_cache_db_status(switch_stream_handle stream) { freeswitchPINVOKE.switch_cache_db_status(switch_stream_handle.getCPtr(stream)); } @@ -3132,13 +3162,31 @@ public class freeswitch { 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 int switch_tolower(int c) { - int ret = freeswitchPINVOKE.switch_tolower(c); + 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 old_switch_tolower(int c) { + int ret = freeswitchPINVOKE.old_switch_tolower(c); return ret; } @@ -4121,6 +4169,21 @@ public class freeswitch { return ret; } + public static switch_status_t switch_channel_dtmf_lock(SWIGTYPE_p_switch_channel channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_dtmf_lock(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static switch_status_t switch_channel_try_dtmf_lock(SWIGTYPE_p_switch_channel channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_try_dtmf_lock(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + + public static switch_status_t switch_channel_dtmf_unlock(SWIGTYPE_p_switch_channel channel) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_dtmf_unlock(SWIGTYPE_p_switch_channel.getCPtr(channel)); + return ret; + } + public static switch_status_t switch_channel_queue_dtmf(SWIGTYPE_p_switch_channel channel, switch_dtmf_t dtmf) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_queue_dtmf(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_dtmf_t.getCPtr(dtmf)); return ret; @@ -4301,6 +4364,14 @@ public class freeswitch { return ret; } + public static void switch_channel_state_thread_lock(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_state_thread_lock(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + + public static void switch_channel_state_thread_unlock(SWIGTYPE_p_switch_channel channel) { + freeswitchPINVOKE.switch_channel_state_thread_unlock(SWIGTYPE_p_switch_channel.getCPtr(channel)); + } + public static switch_status_t switch_buffer_create(SWIGTYPE_p_apr_pool_t pool, SWIGTYPE_p_p_switch_buffer buffer, SWIGTYPE_p_switch_size_t max_len) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_buffer_create(SWIGTYPE_p_apr_pool_t.getCPtr(pool), SWIGTYPE_p_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_switch_size_t.getCPtr(max_len)); if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); @@ -4892,8 +4963,9 @@ public class freeswitch { 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) { @@ -6192,6 +6264,11 @@ public class freeswitch { freeswitchPINVOKE.consoleCleanLog(msg); } + public static bool running() { + bool ret = freeswitchPINVOKE.running(); + return ret; + } + public static bool email(string to, string from, string headers, string body, string file, string convert_cmd, string convert_ext) { bool ret = freeswitchPINVOKE.email(to, from, headers, body, file, convert_cmd, convert_ext); return ret; @@ -6394,6 +6471,7 @@ public class freeswitch { 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(); @@ -6434,6 +6512,7 @@ public class freeswitch { 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(); @@ -7228,12 +7307,6 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_mod_dir_get")] public static extern string switch_directories_mod_dir_get(HandleRef jarg1); - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_lib_dir_set")] - public static extern void switch_directories_lib_dir_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_lib_dir_get")] - public static extern string switch_directories_lib_dir_get(HandleRef jarg1); - [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_conf_dir_set")] public static extern void switch_directories_conf_dir_set(HandleRef jarg1, string jarg2); @@ -7300,6 +7373,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_sounds_dir_get")] public static extern string switch_directories_sounds_dir_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_lib_dir_set")] + public static extern void switch_directories_lib_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_lib_dir_get")] + public static extern string switch_directories_lib_dir_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_directories")] public static extern IntPtr new_switch_directories(); @@ -7537,6 +7616,24 @@ class freeswitchPINVOKE { [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); @@ -7774,6 +7871,9 @@ class freeswitchPINVOKE { [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); @@ -7810,6 +7910,12 @@ class freeswitchPINVOKE { [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(); @@ -7945,6 +8051,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_changes")] public static extern int switch_core_db_changes(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_db_load_extension")] + public static extern int switch_core_db_load_extension(HandleRef jarg1, string jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_OK_get")] public static extern int SWITCH_CORE_DB_OK_get(); @@ -8620,6 +8729,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_channel")] public static extern IntPtr switch_core_session_get_channel(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_mutex")] + public static extern IntPtr switch_core_session_get_mutex(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_wake_session_thread")] public static extern int switch_core_session_wake_session_thread(HandleRef jarg1); @@ -8656,6 +8768,9 @@ class freeswitchPINVOKE { [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); @@ -9148,6 +9263,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_ready")] public static extern int switch_core_ready(); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_running")] + public static extern int switch_core_running(); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_ready_inbound")] public static extern int switch_core_ready_inbound(); @@ -9460,6 +9578,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_affected_rows")] public static extern int switch_cache_db_affected_rows(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_load_extension")] + public static extern int switch_cache_db_load_extension(HandleRef jarg1, string jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_status")] public static extern void switch_cache_db_status(HandleRef jarg1); @@ -9845,10 +9966,22 @@ class freeswitchPINVOKE { 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); @@ -13132,6 +13265,15 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_has_dtmf")] public static extern IntPtr switch_channel_has_dtmf(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_dtmf_lock")] + public static extern int switch_channel_dtmf_lock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_try_dtmf_lock")] + public static extern int switch_channel_try_dtmf_lock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_dtmf_unlock")] + public static extern int switch_channel_dtmf_unlock(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_queue_dtmf")] public static extern int switch_channel_queue_dtmf(HandleRef jarg1, HandleRef jarg2); @@ -13246,6 +13388,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_hold_record")] public static extern IntPtr switch_channel_get_hold_record(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_thread_lock")] + public static extern void switch_channel_state_thread_lock(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_thread_unlock")] + public static extern void switch_channel_state_thread_unlock(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_create")] public static extern int switch_buffer_create(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); @@ -13943,7 +14091,7 @@ class freeswitchPINVOKE { 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); @@ -14236,6 +14384,9 @@ class freeswitchPINVOKE { [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(); @@ -15328,6 +15479,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_consoleCleanLog")] public static extern void consoleCleanLog(string jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_running")] + public static extern bool running(); + [DllImport("mod_managed", EntryPoint="CSharp_email")] public static extern bool email(string jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7); @@ -15535,6 +15689,9 @@ class freeswitchPINVOKE { [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); @@ -24298,6 +24455,7 @@ public enum switch_channel_flag_t { CF_NO_CDR, CF_EARLY_OK, CF_MEDIA_TRANS, + CF_HOLD_ON_BRIDGE, CF_FLAG_MAX } @@ -26673,16 +26831,6 @@ public class switch_directories : IDisposable { } } - public string lib_dir { - set { - freeswitchPINVOKE.switch_directories_lib_dir_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_directories_lib_dir_get(swigCPtr); - return ret; - } - } - public string conf_dir { set { freeswitchPINVOKE.switch_directories_conf_dir_set(swigCPtr, value); @@ -26793,6 +26941,16 @@ public class switch_directories : IDisposable { } } + public string lib_dir { + set { + freeswitchPINVOKE.switch_directories_lib_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_lib_dir_get(swigCPtr); + return ret; + } + } + public switch_directories() : this(freeswitchPINVOKE.new_switch_directories(), true) { } @@ -28967,6 +29125,16 @@ public class switch_input_args_t : IDisposable { } } + 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) { } @@ -31657,7 +31825,8 @@ public enum switch_rtp_bug_flag_t { 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) } } @@ -31874,6 +32043,75 @@ namespace FreeSWITCH.Native { 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) { + if (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 2.0.1 + * + * 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;