git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16038 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-12-23 01:53:44 +00:00
parent febad39b28
commit 884a8cb10c
2 changed files with 208 additions and 6 deletions

View File

@ -3565,6 +3565,29 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_console_callback_match_end_get(void
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_count_set(void * jarg1, int jarg2) {
switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ;
int arg2 ;
arg1 = (switch_console_callback_match *)jarg1;
arg2 = (int)jarg2;
if (arg1) (arg1)->count = arg2;
}
SWIGEXPORT int SWIGSTDCALL CSharp_switch_console_callback_match_count_get(void * jarg1) {
int jresult ;
switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ;
int result;
arg1 = (switch_console_callback_match *)jarg1;
result = (int) ((arg1)->count);
jresult = result;
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_callback_match_dynamic_set(void * jarg1, int jarg2) {
switch_console_callback_match *arg1 = (switch_console_callback_match *) 0 ;
int arg2 ;
@ -5729,6 +5752,34 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_test_flag(void
}
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_set_flag(void * jarg1, unsigned long jarg2) {
unsigned long jresult ;
switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ;
uint32_t arg2 ;
uint32_t result;
arg1 = (switch_media_bug_t *)jarg1;
arg2 = (uint32_t)jarg2;
result = (uint32_t)switch_core_media_bug_set_flag(arg1,arg2);
jresult = (unsigned long)result;
return jresult;
}
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_clear_flag(void * jarg1, unsigned long jarg2) {
unsigned long jresult ;
switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ;
uint32_t arg2 ;
uint32_t result;
arg1 = (switch_media_bug_t *)jarg1;
arg2 = (uint32_t)jarg2;
result = (uint32_t)switch_core_media_bug_clear_flag(arg1,arg2);
jresult = (unsigned long)result;
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_set_read_replace_frame(void * jarg1, void * jarg2) {
switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ;
switch_frame_t *arg2 = (switch_frame_t *) 0 ;
@ -9622,17 +9673,21 @@ SWIGEXPORT int SWIGSTDCALL CSharp__switch_core_db_handle(void * jarg1, char * ja
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_test_reactive(void * jarg1, char * jarg2, char * jarg3, char * jarg4) {
SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_test_reactive(void * jarg1, char * jarg2, char * jarg3, char * jarg4) {
int jresult ;
switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg4 = (char *) 0 ;
switch_bool_t result;
arg1 = (switch_cache_db_handle_t *)jarg1;
arg2 = (char *)jarg2;
arg3 = (char *)jarg3;
arg4 = (char *)jarg4;
switch_cache_db_test_reactive(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
result = (switch_bool_t)switch_cache_db_test_reactive(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
jresult = result;
return jresult;
}
@ -9683,6 +9738,11 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_debug_level() {
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_flush_handles() {
switch_cache_db_flush_handles();
}
SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CMD_CHUNK_LEN_get() {
int jresult ;
int result;
@ -9839,6 +9899,14 @@ SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_console_complete(char * jarg1
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_console_sort_matches(void * jarg1) {
switch_console_callback_match_t *arg1 = (switch_console_callback_match_t *) 0 ;
arg1 = (switch_console_callback_match_t *)jarg1;
switch_console_sort_matches(arg1);
}
SWIGEXPORT int SWIGSTDCALL CSharp_switch_toupper(int jarg1) {
int jresult ;
int arg1 ;
@ -18913,6 +18981,29 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_mutex_get(void * jarg1) {
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_next_set(void * jarg1, void * jarg2) {
switch_codec *arg1 = (switch_codec *) 0 ;
switch_codec *arg2 = (switch_codec *) 0 ;
arg1 = (switch_codec *)jarg1;
arg2 = (switch_codec *)jarg2;
if (arg1) (arg1)->next = arg2;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_next_get(void * jarg1) {
void * jresult ;
switch_codec *arg1 = (switch_codec *) 0 ;
switch_codec *result = 0 ;
arg1 = (switch_codec *)jarg1;
result = (switch_codec *) ((arg1)->next);
jresult = (void *)result;
return jresult;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_codec() {
void * jresult ;
switch_codec *result = 0 ;
@ -23941,6 +24032,36 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_record_session(void * jarg1, c
}
SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_session_audio(void * jarg1, char * jarg2, char * jarg3, int jarg4) {
int jresult ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
int arg4 ;
switch_status_t result;
arg1 = (switch_core_session_t *)jarg1;
arg2 = (char *)jarg2;
arg3 = (char *)jarg3;
arg4 = (int)jarg4;
result = (switch_status_t)switch_ivr_session_audio(arg1,(char const *)arg2,(char const *)arg3,arg4);
jresult = result;
return jresult;
}
SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_stop_session_audio(void * jarg1) {
int jresult ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
switch_status_t result;
arg1 = (switch_core_session_t *)jarg1;
result = (switch_status_t)switch_ivr_stop_session_audio(arg1);
jresult = result;
return jresult;
}
SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_inband_dtmf_session(void * jarg1) {
int jresult ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;

View File

@ -954,6 +954,16 @@ public class freeswitch {
return ret;
}
public static uint switch_core_media_bug_set_flag(SWIGTYPE_p_switch_media_bug bug, uint flag) {
uint ret = freeswitchPINVOKE.switch_core_media_bug_set_flag(SWIGTYPE_p_switch_media_bug.getCPtr(bug), flag);
return ret;
}
public static uint switch_core_media_bug_clear_flag(SWIGTYPE_p_switch_media_bug bug, uint flag) {
uint ret = freeswitchPINVOKE.switch_core_media_bug_clear_flag(SWIGTYPE_p_switch_media_bug.getCPtr(bug), flag);
return ret;
}
public static void switch_core_media_bug_set_read_replace_frame(SWIGTYPE_p_switch_media_bug bug, switch_frame frame) {
freeswitchPINVOKE.switch_core_media_bug_set_read_replace_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug), switch_frame.getCPtr(frame));
}
@ -2151,8 +2161,9 @@ public class freeswitch {
return ret;
}
public static void switch_cache_db_test_reactive(switch_cache_db_handle_t db, string test_sql, string drop_sql, string reactive_sql) {
freeswitchPINVOKE.switch_cache_db_test_reactive(switch_cache_db_handle_t.getCPtr(db), test_sql, drop_sql, reactive_sql);
public static switch_bool_t switch_cache_db_test_reactive(switch_cache_db_handle_t db, string test_sql, string drop_sql, string reactive_sql) {
switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_cache_db_test_reactive(switch_cache_db_handle_t.getCPtr(db), test_sql, drop_sql, reactive_sql);
return ret;
}
public static switch_status_t switch_cache_db_persistant_execute(switch_cache_db_handle_t dbh, string sql, uint retries) {
@ -2174,6 +2185,10 @@ public class freeswitch {
return ret;
}
public static void switch_cache_db_flush_handles() {
freeswitchPINVOKE.switch_cache_db_flush_handles();
}
public static void switch_console_loop() {
freeswitchPINVOKE.switch_console_loop();
}
@ -2227,6 +2242,10 @@ public class freeswitch {
return ret;
}
public static void switch_console_sort_matches(switch_console_callback_match matches) {
freeswitchPINVOKE.switch_console_sort_matches(switch_console_callback_match.getCPtr(matches));
}
public static int switch_toupper(int c) {
int ret = freeswitchPINVOKE.switch_toupper(c);
return ret;
@ -3473,6 +3492,16 @@ public class freeswitch {
return ret;
}
public static switch_status_t switch_ivr_session_audio(SWIGTYPE_p_switch_core_session session, string cmd, string direction, int level) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_session_audio(SWIGTYPE_p_switch_core_session.getCPtr(session), cmd, direction, level);
return ret;
}
public static switch_status_t switch_ivr_stop_session_audio(SWIGTYPE_p_switch_core_session session) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_stop_session_audio(SWIGTYPE_p_switch_core_session.getCPtr(session));
return ret;
}
public static switch_status_t switch_ivr_inband_dtmf_session(SWIGTYPE_p_switch_core_session session) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_inband_dtmf_session(SWIGTYPE_p_switch_core_session.getCPtr(session));
return ret;
@ -5740,6 +5769,12 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_end_get")]
public static extern IntPtr switch_console_callback_match_end_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_count_set")]
public static extern void switch_console_callback_match_count_set(HandleRef jarg1, int jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_count_get")]
public static extern int switch_console_callback_match_count_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_console_callback_match_dynamic_set")]
public static extern void switch_console_callback_match_dynamic_set(HandleRef jarg1, int jarg2);
@ -6268,6 +6303,12 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_test_flag")]
public static extern uint switch_core_media_bug_test_flag(HandleRef jarg1, uint jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_flag")]
public static extern uint switch_core_media_bug_set_flag(HandleRef jarg1, uint jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_clear_flag")]
public static extern uint switch_core_media_bug_clear_flag(HandleRef jarg1, uint jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_read_replace_frame")]
public static extern void switch_core_media_bug_set_read_replace_frame(HandleRef jarg1, HandleRef jarg2);
@ -7145,7 +7186,7 @@ class freeswitchPINVOKE {
public static extern int _switch_core_db_handle(HandleRef jarg1, string jarg2, string jarg3, int jarg4);
[DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_test_reactive")]
public static extern void switch_cache_db_test_reactive(HandleRef jarg1, string jarg2, string jarg3, string jarg4);
public static extern int switch_cache_db_test_reactive(HandleRef jarg1, string jarg2, string jarg3, string jarg4);
[DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_persistant_execute")]
public static extern int switch_cache_db_persistant_execute(HandleRef jarg1, string jarg2, uint jarg3);
@ -7159,6 +7200,9 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_debug_level")]
public static extern uint switch_core_debug_level();
[DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_flush_handles")]
public static extern void switch_cache_db_flush_handles();
[DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CMD_CHUNK_LEN_get")]
public static extern int SWITCH_CMD_CHUNK_LEN_get();
@ -7195,6 +7239,9 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_console_complete")]
public static extern byte switch_console_complete(string jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5);
[DllImport("mod_managed", EntryPoint="CSharp_switch_console_sort_matches")]
public static extern void switch_console_sort_matches(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_toupper")]
public static extern int switch_toupper(int jarg1);
@ -9412,6 +9459,12 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_codec_mutex_get")]
public static extern IntPtr switch_codec_mutex_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_codec_next_set")]
public static extern void switch_codec_next_set(HandleRef jarg1, HandleRef jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_codec_next_get")]
public static extern IntPtr switch_codec_next_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_new_switch_codec")]
public static extern IntPtr new_switch_codec();
@ -10564,6 +10617,12 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_record_session")]
public static extern int switch_ivr_stop_record_session(HandleRef jarg1, string jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_session_audio")]
public static extern int switch_ivr_session_audio(HandleRef jarg1, string jarg2, string jarg3, int jarg4);
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_stop_session_audio")]
public static extern int switch_ivr_stop_session_audio(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_inband_dtmf_session")]
public static extern int switch_ivr_inband_dtmf_session(HandleRef jarg1);
@ -19759,6 +19818,17 @@ public class switch_codec : IDisposable {
}
}
public switch_codec next {
set {
freeswitchPINVOKE.switch_codec_next_set(swigCPtr, switch_codec.getCPtr(value));
}
get {
IntPtr cPtr = freeswitchPINVOKE.switch_codec_next_get(swigCPtr);
switch_codec ret = (cPtr == IntPtr.Zero) ? null : new switch_codec(cPtr, false);
return ret;
}
}
public switch_codec() : this(freeswitchPINVOKE.new_switch_codec(), true) {
}
@ -20598,6 +20668,16 @@ public class switch_console_callback_match : IDisposable {
}
}
public int count {
set {
freeswitchPINVOKE.switch_console_callback_match_count_set(swigCPtr, value);
}
get {
int ret = freeswitchPINVOKE.switch_console_callback_match_count_get(swigCPtr);
return ret;
}
}
public int dynamic {
set {
freeswitchPINVOKE.switch_console_callback_match_dynamic_set(swigCPtr, value);
@ -26154,7 +26234,8 @@ public enum switch_session_ctl_t {
SCSC_SHUTDOWN_ASAP,
SCSC_CANCEL_SHUTDOWN,
SCSC_SEND_SIGHUP,
SCSC_DEBUG_LEVEL
SCSC_DEBUG_LEVEL,
SCSC_FLUSH_DB_HANDLES
}
}