}\r
\r
\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_dtmf_t_source_set(void * jarg1, int jarg2) {\r
+ switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ;\r
+ switch_dtmf_source_t arg2 ;\r
+ \r
+ arg1 = (switch_dtmf_t *)jarg1; \r
+ arg2 = (switch_dtmf_source_t)jarg2; \r
+ if (arg1) (arg1)->source = arg2;\r
+}\r
+\r
+\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_dtmf_t_source_get(void * jarg1) {\r
+ int jresult ;\r
+ switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ;\r
+ switch_dtmf_source_t result;\r
+ \r
+ arg1 = (switch_dtmf_t *)jarg1; \r
+ result = (switch_dtmf_source_t) ((arg1)->source);\r
+ jresult = result; \r
+ return jresult;\r
+}\r
+\r
+\r
SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_dtmf_t() {\r
void * jresult ;\r
switch_dtmf_t *result = 0 ;\r
}\r
\r
\r
+SWIGEXPORT char * SWIGSTDCALL CSharp_switch_sql_concat() {\r
+ char * jresult ;\r
+ char *result = 0 ;\r
+ \r
+ result = (char *)switch_sql_concat();\r
+ jresult = SWIG_csharp_string_callback((const char *)result); \r
+ return jresult;\r
+}\r
+\r
+\r
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_regex_compile(char * jarg1, int jarg2, void * jarg3, void * jarg4, void * jarg5) {\r
void * jresult ;\r
char *arg1 = (char *) 0 ;\r
}\r
\r
\r
-SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_wake_session_thread(void * jarg1) {\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_wake_session_thread(void * jarg1) {\r
+ int jresult ;\r
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
+ switch_status_t result;\r
\r
arg1 = (switch_core_session_t *)jarg1; \r
- switch_core_session_wake_session_thread(arg1);\r
+ result = (switch_status_t)switch_core_session_wake_session_thread(arg1);\r
+ jresult = result; \r
+ return jresult;\r
}\r
\r
\r
}\r
\r
\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_get_target(void * jarg1) {\r
+ int jresult ;\r
+ switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ;\r
+ switch_digit_action_target_t result;\r
+ \r
+ arg1 = (switch_ivr_dmachine_t *)jarg1; \r
+ result = (switch_digit_action_target_t)switch_ivr_dmachine_get_target(arg1);\r
+ jresult = result; \r
+ return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_ivr_dmachine_set_target(void * jarg1, int jarg2) {\r
+ switch_ivr_dmachine_t *arg1 = (switch_ivr_dmachine_t *) 0 ;\r
+ switch_digit_action_target_t arg2 ;\r
+ \r
+ arg1 = (switch_ivr_dmachine_t *)jarg1; \r
+ arg2 = (switch_digit_action_target_t)jarg2; \r
+ switch_ivr_dmachine_set_target(arg1,arg2);\r
+}\r
+\r
+\r
SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_codec_slin(void * jarg1, void * jarg2) {\r
int jresult ;\r
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
}\r
\r
\r
+SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_queued_extension(void * jarg1) {\r
+ void * jresult ;\r
+ switch_channel_t *arg1 = (switch_channel_t *) 0 ;\r
+ switch_caller_extension_t *result = 0 ;\r
+ \r
+ arg1 = (switch_channel_t *)jarg1; \r
+ result = (switch_caller_extension_t *)switch_channel_get_queued_extension(arg1);\r
+ jresult = (void *)result; \r
+ return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_transfer_to_extension(void * jarg1, void * jarg2) {\r
+ switch_channel_t *arg1 = (switch_channel_t *) 0 ;\r
+ switch_caller_extension_t *arg2 = (switch_caller_extension_t *) 0 ;\r
+ \r
+ arg1 = (switch_channel_t *)jarg1; \r
+ arg2 = (switch_caller_extension_t *)jarg2; \r
+ switch_channel_transfer_to_extension(arg1,arg2);\r
+}\r
+\r
+\r
SWIGEXPORT int SWIGSTDCALL CSharp_switch_buffer_create(void * jarg1, void * jarg2, void * jarg3) {\r
int jresult ;\r
switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ;\r
}\r
\r
\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_process_indications(void * jarg1, void * jarg2) {\r
+ int jresult ;\r
+ switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
+ switch_core_session_message_t *arg2 = (switch_core_session_message_t *) 0 ;\r
+ switch_status_t result;\r
+ \r
+ arg1 = (switch_core_session_t *)jarg1; \r
+ arg2 = (switch_core_session_message_t *)jarg2; \r
+ result = (switch_status_t)switch_ivr_process_indications(arg1,arg2);\r
+ jresult = result; \r
+ return jresult;\r
+}\r
+\r
+\r
SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_sleep(void * jarg1, unsigned long jarg2, int jarg3, void * jarg4) {\r
int jresult ;\r
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
}\r
\r
\r
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_enterprise_originate(void * jarg1, void * jarg2, void * jarg3, char * jarg4, unsigned long jarg5, void * jarg6, char * jarg7, char * jarg8, void * jarg9, void * jarg10, unsigned long jarg11) {\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_enterprise_originate(void * jarg1, void * jarg2, void * jarg3, char * jarg4, unsigned long jarg5, void * jarg6, char * jarg7, char * jarg8, void * jarg9, void * jarg10, unsigned long jarg11, void * jarg12) {\r
int jresult ;\r
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
switch_core_session_t **arg2 = (switch_core_session_t **) 0 ;\r
switch_caller_profile_t *arg9 = (switch_caller_profile_t *) 0 ;\r
switch_event_t *arg10 = (switch_event_t *) 0 ;\r
switch_originate_flag_t arg11 ;\r
+ switch_call_cause_t *arg12 = (switch_call_cause_t *) 0 ;\r
switch_status_t result;\r
\r
arg1 = (switch_core_session_t *)jarg1; \r
arg9 = (switch_caller_profile_t *)jarg9; \r
arg10 = (switch_event_t *)jarg10; \r
arg11 = (switch_originate_flag_t)jarg11; \r
- result = (switch_status_t)switch_ivr_enterprise_originate(arg1,arg2,arg3,(char const *)arg4,arg5,(switch_state_handler_table const *)arg6,(char const *)arg7,(char const *)arg8,arg9,arg10,arg11);\r
+ arg12 = (switch_call_cause_t *)jarg12; \r
+ result = (switch_status_t)switch_ivr_enterprise_originate(arg1,arg2,arg3,(char const *)arg4,arg5,(switch_state_handler_table const *)arg6,(char const *)arg7,(char const *)arg8,arg9,arg10,arg11,arg12);\r
jresult = result; \r
return jresult;\r
}\r
return ret;\r
}\r
\r
+ public static string switch_sql_concat() {\r
+ string ret = freeswitchPINVOKE.switch_sql_concat();\r
+ return ret;\r
+ }\r
+\r
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) {\r
IntPtr cPtr = freeswitchPINVOKE.switch_regex_compile(pattern, options, ref errorptr, SWIGTYPE_p_int.getCPtr(erroroffset), SWIGTYPE_p_unsigned_char.getCPtr(tables));\r
SWIGTYPE_p_real_pcre ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_real_pcre(cPtr, false);\r
return ret;\r
}\r
\r
- public static void switch_core_session_wake_session_thread(SWIGTYPE_p_switch_core_session session) {\r
- freeswitchPINVOKE.switch_core_session_wake_session_thread(SWIGTYPE_p_switch_core_session.getCPtr(session));\r
+ public static switch_status_t switch_core_session_wake_session_thread(SWIGTYPE_p_switch_core_session session) {\r
+ switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_wake_session_thread(SWIGTYPE_p_switch_core_session.getCPtr(session));\r
+ return ret;\r
}\r
\r
public static void switch_core_session_signal_state_change(SWIGTYPE_p_switch_core_session session) {\r
return ret;\r
}\r
\r
+ public static switch_digit_action_target_t switch_ivr_dmachine_get_target(SWIGTYPE_p_switch_ivr_dmachine dmachine) {\r
+ switch_digit_action_target_t ret = (switch_digit_action_target_t)freeswitchPINVOKE.switch_ivr_dmachine_get_target(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine));\r
+ return ret;\r
+ }\r
+\r
+ public static void switch_ivr_dmachine_set_target(SWIGTYPE_p_switch_ivr_dmachine dmachine, switch_digit_action_target_t target) {\r
+ freeswitchPINVOKE.switch_ivr_dmachine_set_target(SWIGTYPE_p_switch_ivr_dmachine.getCPtr(dmachine), (int)target);\r
+ }\r
+\r
public static switch_status_t switch_core_session_set_codec_slin(SWIGTYPE_p_switch_core_session session, switch_slin_data data) {\r
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));\r
return ret;\r
return ret;\r
}\r
\r
+ public static switch_caller_extension switch_channel_get_queued_extension(SWIGTYPE_p_switch_channel channel) {\r
+ IntPtr cPtr = freeswitchPINVOKE.switch_channel_get_queued_extension(SWIGTYPE_p_switch_channel.getCPtr(channel));\r
+ switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false);\r
+ return ret;\r
+ }\r
+\r
+ public static void switch_channel_transfer_to_extension(SWIGTYPE_p_switch_channel channel, switch_caller_extension caller_extension) {\r
+ freeswitchPINVOKE.switch_channel_transfer_to_extension(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_caller_extension.getCPtr(caller_extension));\r
+ }\r
+\r
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) {\r
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));\r
if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();\r
return ret;\r
}\r
\r
+ public static switch_status_t switch_ivr_process_indications(SWIGTYPE_p_switch_core_session session, switch_core_session_message message) {\r
+ switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_process_indications(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_core_session_message.getCPtr(message));\r
+ return ret;\r
+ }\r
+\r
public static switch_status_t switch_ivr_sleep(SWIGTYPE_p_switch_core_session session, uint ms, switch_bool_t sync, switch_input_args_t args) {\r
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_sleep(SWIGTYPE_p_switch_core_session.getCPtr(session), ms, (int)sync, switch_input_args_t.getCPtr(args));\r
return ret;\r
return ret;\r
}\r
\r
- public static switch_status_t switch_ivr_enterprise_originate(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session bleg, SWIGTYPE_p_switch_call_cause_t cause, string bridgeto, uint timelimit_sec, switch_state_handler_table table, string cid_name_override, string cid_num_override, switch_caller_profile caller_profile_override, switch_event ovars, uint flags) {\r
- switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_enterprise_originate(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session.getCPtr(bleg), SWIGTYPE_p_switch_call_cause_t.getCPtr(cause), bridgeto, timelimit_sec, switch_state_handler_table.getCPtr(table), cid_name_override, cid_num_override, switch_caller_profile.getCPtr(caller_profile_override), switch_event.getCPtr(ovars), flags);\r
+ public static switch_status_t switch_ivr_enterprise_originate(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session bleg, SWIGTYPE_p_switch_call_cause_t cause, string bridgeto, uint timelimit_sec, switch_state_handler_table table, string cid_name_override, string cid_num_override, switch_caller_profile caller_profile_override, switch_event ovars, uint flags, SWIGTYPE_p_switch_call_cause_t cancel_cause) {\r
+ switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_enterprise_originate(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session.getCPtr(bleg), SWIGTYPE_p_switch_call_cause_t.getCPtr(cause), bridgeto, timelimit_sec, switch_state_handler_table.getCPtr(table), cid_name_override, cid_num_override, switch_caller_profile.getCPtr(caller_profile_override), switch_event.getCPtr(ovars), flags, SWIGTYPE_p_switch_call_cause_t.getCPtr(cancel_cause));\r
return ret;\r
}\r
\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_flags_get")]\r
public static extern int switch_dtmf_t_flags_get(HandleRef jarg1);\r
\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_source_set")]\r
+ public static extern void switch_dtmf_t_source_set(HandleRef jarg1, int jarg2);\r
+\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_dtmf_t_source_get")]\r
+ public static extern int switch_dtmf_t_source_get(HandleRef jarg1);\r
+\r
[DllImport("mod_managed", EntryPoint="CSharp_new_switch_dtmf_t")]\r
public static extern IntPtr new_switch_dtmf_t();\r
\r
[DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_DB_DONE_get")]\r
public static extern int SWITCH_CORE_DB_DONE_get();\r
\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_concat")]\r
+ public static extern string switch_sql_concat();\r
+\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_regex_compile")]\r
public static extern IntPtr switch_regex_compile(string jarg1, int jarg2, ref string jarg3, HandleRef jarg4, HandleRef jarg5);\r
\r
public static extern IntPtr switch_core_session_get_channel(HandleRef jarg1);\r
\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_wake_session_thread")]\r
- public static extern void switch_core_session_wake_session_thread(HandleRef jarg1);\r
+ public static extern int switch_core_session_wake_session_thread(HandleRef jarg1);\r
\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_signal_state_change")]\r
public static extern void switch_core_session_signal_state_change(HandleRef jarg1);\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_dmachine")]\r
public static extern IntPtr switch_core_session_get_dmachine(HandleRef jarg1);\r
\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_get_target")]\r
+ public static extern int switch_ivr_dmachine_get_target(HandleRef jarg1);\r
+\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_target")]\r
+ public static extern void switch_ivr_dmachine_set_target(HandleRef jarg1, int jarg2);\r
+\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_codec_slin")]\r
public static extern int switch_core_session_set_codec_slin(HandleRef jarg1, HandleRef jarg2);\r
\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_api_on")]\r
public static extern int switch_channel_api_on(HandleRef jarg1, string jarg2);\r
\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_queued_extension")]\r
+ public static extern IntPtr switch_channel_get_queued_extension(HandleRef jarg1);\r
+\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_transfer_to_extension")]\r
+ public static extern void switch_channel_transfer_to_extension(HandleRef jarg1, HandleRef jarg2);\r
+\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_create")]\r
public static extern int switch_buffer_create(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);\r
\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_parse_all_signal_data")]\r
public static extern int switch_ivr_parse_all_signal_data(HandleRef jarg1);\r
\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_process_indications")]\r
+ public static extern int switch_ivr_process_indications(HandleRef jarg1, HandleRef jarg2);\r
+\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_sleep")]\r
public static extern int switch_ivr_sleep(HandleRef jarg1, uint jarg2, int jarg3, HandleRef jarg4);\r
\r
public static extern int switch_ivr_originate(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, string jarg4, uint jarg5, HandleRef jarg6, string jarg7, string jarg8, HandleRef jarg9, HandleRef jarg10, uint jarg11, HandleRef jarg12);\r
\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_enterprise_originate")]\r
- public static extern int switch_ivr_enterprise_originate(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, string jarg4, uint jarg5, HandleRef jarg6, string jarg7, string jarg8, HandleRef jarg9, HandleRef jarg10, uint jarg11);\r
+ public static extern int switch_ivr_enterprise_originate(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, string jarg4, uint jarg5, HandleRef jarg6, string jarg7, string jarg8, HandleRef jarg9, HandleRef jarg10, uint jarg11, HandleRef jarg12);\r
\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_bridge_display")]\r
public static extern void switch_ivr_bridge_display(HandleRef jarg1, HandleRef jarg2);\r
CC_PROXY_MEDIA,\r
CC_JITTERBUFFER,\r
CC_FS_RTP,\r
+ CC_QUEUEABLE_DTMF_DELAY,\r
CC_FLAG_MAX\r
}\r
\r
SCF_USE_WIN32_MONOTONIC = (1 << 12),\r
SCF_AUTO_SCHEMAS = (1 << 13),\r
SCF_MINIMAL = (1 << 14),\r
- SCF_USE_NAT_MAPPING = (1 << 15)\r
+ SCF_USE_NAT_MAPPING = (1 << 15),\r
+ SCF_CLEAR_SQL = (1 << 16)\r
}\r
\r
}\r
\r
namespace FreeSWITCH.Native {\r
\r
+public enum switch_digit_action_target_t {\r
+ DIGIT_TARGET_SELF,\r
+ DIGIT_TARGET_PEER\r
+}\r
+\r
+}\r
+/* ----------------------------------------------------------------------------\r
+ * This file was automatically generated by SWIG (http://www.swig.org).\r
+ * Version 2.0.1\r
+ *\r
+ * Do not make changes to this file unless you know what you are doing--modify\r
+ * the SWIG interface file instead.\r
+ * ----------------------------------------------------------------------------- */\r
+\r
+namespace FreeSWITCH.Native {\r
+\r
using System;\r
using System.Runtime.InteropServices;\r
\r
\r
namespace FreeSWITCH.Native {\r
\r
+public enum switch_dtmf_source_t {\r
+ SWITCH_DTMF_UNKNOWN,\r
+ SWITCH_DTMF_INBAND_AUDIO,\r
+ SWITCH_DTMF_RTP,\r
+ SWITCH_DTMF_ENDPOINT,\r
+ SWITCH_DTMF_APP\r
+}\r
+\r
+}\r
+/* ----------------------------------------------------------------------------\r
+ * This file was automatically generated by SWIG (http://www.swig.org).\r
+ * Version 2.0.1\r
+ *\r
+ * Do not make changes to this file unless you know what you are doing--modify\r
+ * the SWIG interface file instead.\r
+ * ----------------------------------------------------------------------------- */\r
+\r
+namespace FreeSWITCH.Native {\r
+\r
using System;\r
using System.Runtime.InteropServices;\r
\r
} \r
}\r
\r
+ public switch_dtmf_source_t source {\r
+ set {\r
+ freeswitchPINVOKE.switch_dtmf_t_source_set(swigCPtr, (int)value);\r
+ } \r
+ get {\r
+ switch_dtmf_source_t ret = (switch_dtmf_source_t)freeswitchPINVOKE.switch_dtmf_t_source_get(swigCPtr);\r
+ return ret;\r
+ } \r
+ }\r
+\r
public switch_dtmf_t() : this(freeswitchPINVOKE.new_switch_dtmf_t(), true) {\r
}\r
\r