Modified: freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_wrap.cxx (16929 => 16930)
--- freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_wrap.cxx 2010-03-07 19:34:05 UTC (rev 16929)
+++ freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_wrap.cxx 2010-03-07 19:36:20 UTC (rev 16930)
@@ -3857,6 +3857,94 @@
}
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_args_t_type_set(void * jarg1, int jarg2) {
+ switch_say_args_t *arg1 = (switch_say_args_t *) 0 ;
+ switch_say_type_t arg2 ;
+
+ arg1 = (switch_say_args_t *)jarg1;
+ arg2 = (switch_say_type_t)jarg2;
+ if (arg1) (arg1)->type = arg2;
+
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_args_t_type_get(void * jarg1) {
+ int jresult ;
+ switch_say_args_t *arg1 = (switch_say_args_t *) 0 ;
+ switch_say_type_t result;
+
+ arg1 = (switch_say_args_t *)jarg1;
+ result = (switch_say_type_t) ((arg1)->type);
+ jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_args_t_method_set(void * jarg1, int jarg2) {
+ switch_say_args_t *arg1 = (switch_say_args_t *) 0 ;
+ switch_say_method_t arg2 ;
+
+ arg1 = (switch_say_args_t *)jarg1;
+ arg2 = (switch_say_method_t)jarg2;
+ if (arg1) (arg1)->method = arg2;
+
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_args_t_method_get(void * jarg1) {
+ int jresult ;
+ switch_say_args_t *arg1 = (switch_say_args_t *) 0 ;
+ switch_say_method_t result;
+
+ arg1 = (switch_say_args_t *)jarg1;
+ result = (switch_say_method_t) ((arg1)->method);
+ jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_say_args_t_gender_set(void * jarg1, int jarg2) {
+ switch_say_args_t *arg1 = (switch_say_args_t *) 0 ;
+ switch_say_gender_t arg2 ;
+
+ arg1 = (switch_say_args_t *)jarg1;
+ arg2 = (switch_say_gender_t)jarg2;
+ if (arg1) (arg1)->gender = arg2;
+
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_say_args_t_gender_get(void * jarg1) {
+ int jresult ;
+ switch_say_args_t *arg1 = (switch_say_args_t *) 0 ;
+ switch_say_gender_t result;
+
+ arg1 = (switch_say_args_t *)jarg1;
+ result = (switch_say_gender_t) ((arg1)->gender);
+ jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_say_args_t() {
+ void * jresult ;
+ switch_say_args_t *result = 0 ;
+
+ result = (switch_say_args_t *)new switch_say_args_t();
+ jresult = (void *)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_say_args_t(void * jarg1) {
+ switch_say_args_t *arg1 = (switch_say_args_t *) 0 ;
+
+ arg1 = (switch_say_args_t *)jarg1;
+ delete arg1;
+
+}
+
+
SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_API_VERSION_get() {
int jresult ;
int result;
@@ -25536,14 +25624,15 @@
}
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_say(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, void * jarg6) {
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_say(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, void * jarg7) {
int jresult ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg4 = (char *) 0 ;
char *arg5 = (char *) 0 ;
- switch_input_args_t *arg6 = (switch_input_args_t *) 0 ;
+ char *arg6 = (char *) 0 ;
+ switch_input_args_t *arg7 = (switch_input_args_t *) 0 ;
switch_status_t result;
arg1 = (switch_core_session_t *)jarg1;
@@ -25551,8 +25640,9 @@
arg3 = (char *)jarg3;
arg4 = (char *)jarg4;
arg5 = (char *)jarg5;
- arg6 = (switch_input_args_t *)jarg6;
- result = (switch_status_t)switch_ivr_say(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6);
+ arg6 = (char *)jarg6;
+ arg7 = (switch_input_args_t *)jarg7;
+ result = (switch_status_t)switch_ivr_say(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,arg7);
jresult = result;
return jresult;
}
@@ -25570,6 +25660,18 @@
}
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_get_say_gender_by_name(char * jarg1) {
+ int jresult ;
+ char *arg1 = (char *) 0 ;
+ switch_say_gender_t result;
+
+ arg1 = (char *)jarg1;
+ result = (switch_say_gender_t)switch_ivr_get_say_gender_by_name((char const *)arg1);
+ jresult = result;
+ return jresult;
+}
+
+
SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_get_say_type_by_name(char * jarg1) {
int jresult ;
char *arg1 = (char *) 0 ;
@@ -31025,19 +31127,21 @@
}
-SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_Say(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5) {
+SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_Say(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6) {
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg4 = (char *) 0 ;
char *arg5 = (char *) 0 ;
+ char *arg6 = (char *) NULL ;
arg1 = (CoreSession *)jarg1;
arg2 = (char *)jarg2;
arg3 = (char *)jarg3;
arg4 = (char *)jarg4;
arg5 = (char *)jarg5;
- (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5);
+ arg6 = (char *)jarg6;
+ (arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6);
}
Modified: freeswitch/trunk/src/mod/languages/mod_managed/managed/swig.cs (16929 => 16930)
--- freeswitch/trunk/src/mod/languages/mod_managed/managed/swig.cs 2010-03-07 19:34:05 UTC (rev 16929)
+++ freeswitch/trunk/src/mod/languages/mod_managed/managed/swig.cs 2010-03-07 19:36:20 UTC (rev 16930)
@@ -256,8 +256,8 @@
return ret;
}
- public void Say(string tosay, string module_name, string say_type, string say_method) {
- freeswitchPINVOKE.CoreSession_Say(swigCPtr, tosay, module_name, say_type, say_method);
+ public void Say(string tosay, string module_name, string say_type, string say_method, string say_gender) {
+ freeswitchPINVOKE.CoreSession_Say(swigCPtr, tosay, module_name, say_type, say_method, say_gender);
}
public void SayPhrase(string phrase_name, string phrase_data, string phrase_lang) {
@@ -3907,8 +3907,8 @@
return ret;
}
- public static switch_status_t switch_ivr_say(SWIGTYPE_p_switch_core_session session, string tosay, string module_name, string say_type, string say_method, switch_input_args_t args) {
- switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_say(SWIGTYPE_p_switch_core_session.getCPtr(session), tosay, module_name, say_type, say_method, switch_input_args_t.getCPtr(args));
+ public static switch_status_t switch_ivr_say(SWIGTYPE_p_switch_core_session session, string tosay, string module_name, string say_type, string say_method, string say_gender, switch_input_args_t args) {
+ switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_say(SWIGTYPE_p_switch_core_session.getCPtr(session), tosay, module_name, say_type, say_method, say_gender, switch_input_args_t.getCPtr(args));
return ret;
}
@@ -3917,6 +3917,11 @@
return ret;
}
+ public static switch_say_gender_t switch_ivr_get_say_gender_by_name(string name) {
+ switch_say_gender_t ret = (switch_say_gender_t)freeswitchPINVOKE.switch_ivr_get_say_gender_by_name(name);
+ return ret;
+ }
+
public static switch_say_type_t switch_ivr_get_say_type_by_name(string name) {
switch_say_type_t ret = (switch_say_type_t)freeswitchPINVOKE.switch_ivr_get_say_type_by_name(name);
return ret;
@@ -5966,6 +5971,30 @@
[DllImport("mod_managed", EntryPoint="CSharp_delete_switch_input_args_t")]
public static extern void delete_switch_input_args_t(HandleRef jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_type_set")]
+ public static extern void switch_say_args_t_type_set(HandleRef jarg1, int jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_type_get")]
+ public static extern int switch_say_args_t_type_get(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_method_set")]
+ public static extern void switch_say_args_t_method_set(HandleRef jarg1, int jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_method_get")]
+ public static extern int switch_say_args_t_method_get(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_gender_set")]
+ public static extern void switch_say_args_t_gender_set(HandleRef jarg1, int jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_say_args_t_gender_get")]
+ public static extern int switch_say_args_t_gender_get(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_new_switch_say_args_t")]
+ public static extern IntPtr new_switch_say_args_t();
+
+ [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_say_args_t")]
+ public static extern void delete_switch_say_args_t(HandleRef jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_SWITCH_API_VERSION_get")]
public static extern int SWITCH_API_VERSION_get();
@@ -11019,11 +11048,14 @@
public static extern int switch_ivr_soft_hold(HandleRef jarg1, string jarg2, string jarg3, string jarg4);
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_say")]
- public static extern int switch_ivr_say(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, HandleRef jarg6);
+ public static extern int switch_ivr_say(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6, HandleRef jarg7);
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_get_say_method_by_name")]
public static extern int switch_ivr_get_say_method_by_name(string jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_get_say_gender_by_name")]
+ public static extern int switch_ivr_get_say_gender_by_name(string jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_get_say_type_by_name")]
public static extern int switch_ivr_get_say_type_by_name(string jarg1);
@@ -12327,7 +12359,7 @@
public static extern string CoreSession_GetVariable(HandleRef jarg1, string jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Say")]
- public static extern void CoreSession_Say(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5);
+ public static extern void CoreSession_Say(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, string jarg6);
[DllImport("mod_managed", EntryPoint="CSharp_CoreSession_SayPhrase")]
public static extern void CoreSession_SayPhrase(HandleRef jarg1, string jarg2, string jarg3, string jarg4);
@@ -13502,18 +13534,18 @@
using System;
using System.Runtime.InteropServices;
-public class SWIGTYPE_p_f_p_switch_core_session_p_char_enum_switch_say_type_t_enum_switch_say_method_t_p_switch_input_args_t__switch_status_t {
+public class SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t {
private HandleRef swigCPtr;
- internal SWIGTYPE_p_f_p_switch_core_session_p_char_enum_switch_say_type_t_enum_switch_say_method_t_p_switch_input_args_t__switch_status_t(IntPtr cPtr, bool futureUse) {
+ internal SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
- protected SWIGTYPE_p_f_p_switch_core_session_p_char_enum_switch_say_type_t_enum_switch_say_method_t_p_switch_input_args_t__switch_status_t() {
+ protected SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
- internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_char_enum_switch_say_type_t_enum_switch_say_method_t_p_switch_input_args_t__switch_status_t obj) {
+ internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
}
@@ -26205,6 +26237,100 @@
using System;
using System.Runtime.InteropServices;
+public class switch_say_args_t : IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+
+ internal switch_say_args_t(IntPtr cPtr, bool cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ internal static HandleRef getCPtr(switch_say_args_t obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ ~switch_say_args_t() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
+ swigCMemOwn = false;
+ freeswitchPINVOKE.delete_switch_say_args_t(swigCPtr);
+ }
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ GC.SuppressFinalize(this);
+ }
+ }
+
+ public switch_say_type_t type {
+ set {
+ freeswitchPINVOKE.switch_say_args_t_type_set(swigCPtr, (int)value);
+ }
+ get {
+ switch_say_type_t ret = (switch_say_type_t)freeswitchPINVOKE.switch_say_args_t_type_get(swigCPtr);
+ return ret;
+ }
+ }
+
+ public switch_say_method_t method {
+ set {
+ freeswitchPINVOKE.switch_say_args_t_method_set(swigCPtr, (int)value);
+ }
+ get {
+ switch_say_method_t ret = (switch_say_method_t)freeswitchPINVOKE.switch_say_args_t_method_get(swigCPtr);
+ return ret;
+ }
+ }
+
+ public switch_say_gender_t gender {
+ set {
+ freeswitchPINVOKE.switch_say_args_t_gender_set(swigCPtr, (int)value);
+ }
+ get {
+ switch_say_gender_t ret = (switch_say_gender_t)freeswitchPINVOKE.switch_say_args_t_gender_get(swigCPtr);
+ return ret;
+ }
+ }
+
+ public switch_say_args_t() : this(freeswitchPINVOKE.new_switch_say_args_t(), true) {
+ }
+
+}
+
+}
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.35
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+namespace FreeSWITCH.Native {
+
+public enum switch_say_gender_t {
+ SSG_MASCULINE,
+ SSG_FEMININE,
+ SSG_NEUTER
+}
+
+}
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.35
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+namespace FreeSWITCH.Native {
+
+using System;
+using System.Runtime.InteropServices;
+
public class switch_say_interface : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
@@ -26243,13 +26369,13 @@
}
}
- public SWIGTYPE_p_f_p_switch_core_session_p_char_enum_switch_say_type_t_enum_switch_say_method_t_p_switch_input_args_t__switch_status_t say_function {
+ public SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t say_function {
set {
- freeswitchPINVOKE.switch_say_interface_say_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_char_enum_switch_say_type_t_enum_switch_say_method_t_p_switch_input_args_t__switch_status_t.getCPtr(value));
+ freeswitchPINVOKE.switch_say_interface_say_function_set(swigCPtr, SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t.getCPtr(value));
}
get {
IntPtr cPtr = freeswitchPINVOKE.switch_say_interface_say_function_get(swigCPtr);
- SWIGTYPE_p_f_p_switch_core_session_p_char_enum_switch_say_type_t_enum_switch_say_method_t_p_switch_input_args_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_char_enum_switch_say_type_t_enum_switch_say_method_t_p_switch_input_args_t__switch_status_t(cPtr, false);
+ SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_core_session_p_char_p_switch_say_args_t_p_switch_input_args_t__switch_status_t(cPtr, false);
return ret;
}
}