git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16580 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2010-02-06 04:36:08 +00:00
parent 886e1ddb4d
commit df50d5ce9d
2 changed files with 167 additions and 23 deletions

View File

@ -6421,6 +6421,22 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_pool(void * jarg1)
}
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_request_xml(void * jarg1, void * jarg2, void * jarg3) {
void * jresult ;
switch_endpoint_interface_t *arg1 = (switch_endpoint_interface_t *) 0 ;
switch_memory_pool_t **arg2 = (switch_memory_pool_t **) 0 ;
switch_xml_t arg3 = (switch_xml_t) 0 ;
switch_core_session_t *result = 0 ;
arg1 = (switch_endpoint_interface_t *)jarg1;
arg2 = (switch_memory_pool_t **)jarg2;
arg3 = (switch_xml_t)jarg3;
result = (switch_core_session_t *)switch_core_session_request_xml(arg1,arg2,arg3);
jresult = (void *)result;
return jresult;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_request_uuid(void * jarg1, int jarg2, void * jarg3, char * jarg4) {
void * jresult ;
switch_endpoint_interface_t *arg1 = (switch_endpoint_interface_t *) 0 ;
@ -20680,6 +20696,35 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_transferred_get(vo
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_resurrected_set(void * jarg1, void * jarg2) {
switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ;
switch_time_t arg2 ;
switch_time_t *argp2 ;
arg1 = (switch_channel_timetable *)jarg1;
argp2 = (switch_time_t *)jarg2;
if (!argp2) {
SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0);
return ;
}
arg2 = *argp2;
if (arg1) (arg1)->resurrected = arg2;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_timetable_resurrected_get(void * jarg1) {
void * jresult ;
switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ;
switch_time_t result;
arg1 = (switch_channel_timetable *)jarg1;
result = ((arg1)->resurrected);
jresult = new switch_time_t((switch_time_t &)result);
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_timetable_next_set(void * jarg1, void * jarg2) {
switch_channel_timetable *arg1 = (switch_channel_timetable *) 0 ;
switch_channel_timetable *arg2 = (switch_channel_timetable *) 0 ;
@ -20746,15 +20791,17 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_get_running_state(void * jarg1)
}
SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_test_ready(void * jarg1, int jarg2) {
SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_test_ready(void * jarg1, int jarg2, int jarg3) {
int jresult ;
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
switch_bool_t arg2 ;
switch_bool_t arg3 ;
int result;
arg1 = (switch_channel_t *)jarg1;
arg2 = (switch_bool_t)jarg2;
result = (int)switch_channel_test_ready(arg1,arg2);
arg3 = (switch_bool_t)jarg3;
result = (int)switch_channel_test_ready(arg1,arg2,arg3);
jresult = result;
return jresult;
}
@ -21160,15 +21207,17 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_variable_partner(void *
}
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_variable(void * jarg1, char * jarg2) {
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_variable_dup(void * jarg1, char * jarg2, int jarg3) {
char * jresult ;
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
char *arg2 = (char *) 0 ;
switch_bool_t arg3 ;
char *result = 0 ;
arg1 = (switch_channel_t *)jarg1;
arg2 = (char *)jarg2;
result = (char *)switch_channel_get_variable(arg1,(char const *)arg2);
arg3 = (switch_bool_t)jarg3;
result = (char *)switch_channel_get_variable_dup(arg1,(char const *)arg2,arg3);
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
@ -21282,13 +21331,15 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_channel_test_flag(void * jarg
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_flag(void * jarg1, int jarg2) {
SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_flag_value(void * jarg1, int jarg2, unsigned long jarg3) {
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
switch_channel_flag_t arg2 ;
uint32_t arg3 ;
arg1 = (switch_channel_t *)jarg1;
arg2 = (switch_channel_flag_t)jarg2;
switch_channel_set_flag(arg1,arg2);
arg3 = (uint32_t)jarg3;
switch_channel_set_flag_value(arg1,arg2,arg3);
}
@ -21302,13 +21353,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_flag_recursive(void * jarg
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_cap(void * jarg1, int jarg2) {
SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_set_cap_value(void * jarg1, int jarg2, unsigned long jarg3) {
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
switch_channel_cap_t arg2 ;
uint32_t arg3 ;
arg1 = (switch_channel_t *)jarg1;
arg2 = (switch_channel_cap_t)jarg2;
switch_channel_set_cap(arg1,arg2);
arg3 = (uint32_t)jarg3;
switch_channel_set_cap_value(arg1,arg2,arg3);
}
@ -21932,6 +21985,30 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_channel_get_session(void * jarg1) {
}
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_flag_string(void * jarg1) {
char * jresult ;
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
char *result = 0 ;
arg1 = (switch_channel_t *)jarg1;
result = (char *)switch_channel_get_flag_string(arg1);
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_channel_get_cap_string(void * jarg1) {
char * jresult ;
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
char *result = 0 ;
arg1 = (switch_channel_t *)jarg1;
result = (char *)switch_channel_get_cap_string(arg1);
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
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 ;
@ -25744,6 +25821,20 @@ SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtp_set_start_port(unsigned
}
SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_ssrc(void * jarg1, unsigned long jarg2) {
int jresult ;
switch_rtp_t *arg1 = (switch_rtp_t *) 0 ;
uint32_t arg2 ;
switch_status_t result;
arg1 = (switch_rtp_t *)jarg1;
arg2 = (uint32_t)jarg2;
result = (switch_status_t)switch_rtp_set_ssrc(arg1,arg2);
jresult = result;
return jresult;
}
SWIGEXPORT unsigned short SWIGSTDCALL CSharp_switch_rtp_set_end_port(unsigned short jarg1) {
unsigned short jresult ;
switch_port_t arg1 ;

View File

@ -1169,6 +1169,12 @@ public class freeswitch {
return ret;
}
public static SWIGTYPE_p_switch_core_session switch_core_session_request_xml(switch_endpoint_interface endpoint_interface, SWIGTYPE_p_p_apr_pool_t pool, switch_xml xml) {
IntPtr cPtr = freeswitchPINVOKE.switch_core_session_request_xml(switch_endpoint_interface.getCPtr(endpoint_interface), SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), switch_xml.getCPtr(xml));
SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false);
return ret;
}
public static SWIGTYPE_p_switch_core_session switch_core_session_request_uuid(switch_endpoint_interface endpoint_interface, switch_call_direction_t direction, SWIGTYPE_p_p_apr_pool_t pool, string use_uuid) {
IntPtr cPtr = freeswitchPINVOKE.switch_core_session_request_uuid(switch_endpoint_interface.getCPtr(endpoint_interface), (int)direction, SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), use_uuid);
SWIGTYPE_p_switch_core_session ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_core_session(cPtr, false);
@ -2720,8 +2726,8 @@ public class freeswitch {
return ret;
}
public static int switch_channel_test_ready(SWIGTYPE_p_switch_channel channel, switch_bool_t media) {
int ret = freeswitchPINVOKE.switch_channel_test_ready(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)media);
public static int switch_channel_test_ready(SWIGTYPE_p_switch_channel channel, switch_bool_t check_ready, switch_bool_t check_media) {
int ret = freeswitchPINVOKE.switch_channel_test_ready(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)check_ready, (int)check_media);
return ret;
}
@ -2866,8 +2872,8 @@ public class freeswitch {
return ret;
}
public static string switch_channel_get_variable(SWIGTYPE_p_switch_channel channel, string varname) {
string ret = freeswitchPINVOKE.switch_channel_get_variable(SWIGTYPE_p_switch_channel.getCPtr(channel), varname);
public static string switch_channel_get_variable_dup(SWIGTYPE_p_switch_channel channel, string varname, switch_bool_t dup) {
string ret = freeswitchPINVOKE.switch_channel_get_variable_dup(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, (int)dup);
return ret;
}
@ -2915,16 +2921,16 @@ public class freeswitch {
return ret;
}
public static void switch_channel_set_flag(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) {
freeswitchPINVOKE.switch_channel_set_flag(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag);
public static void switch_channel_set_flag_value(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag, uint value) {
freeswitchPINVOKE.switch_channel_set_flag_value(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag, value);
}
public static void switch_channel_set_flag_recursive(SWIGTYPE_p_switch_channel channel, switch_channel_flag_t flag) {
freeswitchPINVOKE.switch_channel_set_flag_recursive(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)flag);
}
public static void switch_channel_set_cap(SWIGTYPE_p_switch_channel channel, switch_channel_cap_t cap) {
freeswitchPINVOKE.switch_channel_set_cap(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cap);
public static void switch_channel_set_cap_value(SWIGTYPE_p_switch_channel channel, switch_channel_cap_t cap, uint value) {
freeswitchPINVOKE.switch_channel_set_cap_value(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cap, value);
}
public static void switch_channel_clear_cap(SWIGTYPE_p_switch_channel channel, switch_channel_cap_t cap) {
@ -3152,6 +3158,16 @@ public class freeswitch {
return ret;
}
public static string switch_channel_get_flag_string(SWIGTYPE_p_switch_channel channel) {
string ret = freeswitchPINVOKE.switch_channel_get_flag_string(SWIGTYPE_p_switch_channel.getCPtr(channel));
return ret;
}
public static string switch_channel_get_cap_string(SWIGTYPE_p_switch_channel channel) {
string ret = freeswitchPINVOKE.switch_channel_get_cap_string(SWIGTYPE_p_switch_channel.getCPtr(channel));
return ret;
}
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();
@ -3932,6 +3948,11 @@ public class freeswitch {
return ret;
}
public static switch_status_t switch_rtp_set_ssrc(SWIGTYPE_p_switch_rtp rtp_session, uint ssrc) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_ssrc(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), ssrc);
return ret;
}
public static ushort switch_rtp_set_end_port(ushort port) {
ushort ret = freeswitchPINVOKE.switch_rtp_set_end_port(port);
return ret;
@ -6515,6 +6536,9 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_pool")]
public static extern IntPtr switch_core_session_get_pool(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_request_xml")]
public static extern IntPtr switch_core_session_request_xml(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_request_uuid")]
public static extern IntPtr switch_core_session_request_uuid(HandleRef jarg1, int jarg2, HandleRef jarg3, string jarg4);
@ -9947,6 +9971,12 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_transferred_get")]
public static extern IntPtr switch_channel_timetable_transferred_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_resurrected_set")]
public static extern void switch_channel_timetable_resurrected_set(HandleRef jarg1, HandleRef jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_resurrected_get")]
public static extern IntPtr switch_channel_timetable_resurrected_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_timetable_next_set")]
public static extern void switch_channel_timetable_next_set(HandleRef jarg1, HandleRef jarg2);
@ -9966,7 +9996,7 @@ class freeswitchPINVOKE {
public static extern int switch_channel_get_running_state(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_ready")]
public static extern int switch_channel_test_ready(HandleRef jarg1, int jarg2);
public static extern int switch_channel_test_ready(HandleRef jarg1, int jarg2, int jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_wait_for_state")]
public static extern void switch_channel_wait_for_state(HandleRef jarg1, HandleRef jarg2, int jarg3);
@ -10055,8 +10085,8 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_variable_partner")]
public static extern string switch_channel_get_variable_partner(HandleRef jarg1, string jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_variable")]
public static extern string switch_channel_get_variable(HandleRef jarg1, string jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_variable_dup")]
public static extern string switch_channel_get_variable_dup(HandleRef jarg1, string jarg2, int jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_variables")]
public static extern int switch_channel_get_variables(HandleRef jarg1, HandleRef jarg2);
@ -10085,14 +10115,14 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_test_flag")]
public static extern uint switch_channel_test_flag(HandleRef jarg1, int jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_flag")]
public static extern void switch_channel_set_flag(HandleRef jarg1, int jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_flag_value")]
public static extern void switch_channel_set_flag_value(HandleRef jarg1, int jarg2, uint jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_flag_recursive")]
public static extern void switch_channel_set_flag_recursive(HandleRef jarg1, int jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_cap")]
public static extern void switch_channel_set_cap(HandleRef jarg1, int jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_cap_value")]
public static extern void switch_channel_set_cap_value(HandleRef jarg1, int jarg2, uint jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_clear_cap")]
public static extern void switch_channel_clear_cap(HandleRef jarg1, int jarg2);
@ -10235,6 +10265,12 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_session")]
public static extern IntPtr switch_channel_get_session(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_flag_string")]
public static extern string switch_channel_get_flag_string(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_cap_string")]
public static extern string switch_channel_get_cap_string(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_create")]
public static extern int switch_buffer_create(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
@ -11024,6 +11060,9 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_start_port")]
public static extern ushort switch_rtp_set_start_port(ushort jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_ssrc")]
public static extern int switch_rtp_set_ssrc(HandleRef jarg1, uint jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_end_port")]
public static extern ushort switch_rtp_set_end_port(ushort jarg1);
@ -19664,6 +19703,18 @@ public class switch_channel_timetable : IDisposable {
}
}
public SWIGTYPE_p_switch_time_t resurrected {
set {
freeswitchPINVOKE.switch_channel_timetable_resurrected_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value));
if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
}
get {
SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_channel_timetable_resurrected_get(swigCPtr), true);
if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public switch_channel_timetable next {
set {
freeswitchPINVOKE.switch_channel_timetable_next_set(swigCPtr, switch_channel_timetable.getCPtr(value));
@ -21214,6 +21265,8 @@ public enum switch_core_session_message_types_t {
SWITCH_MESSAGE_INDICATE_SIMPLIFY,
SWITCH_MESSAGE_INDICATE_DEBUG_AUDIO,
SWITCH_MESSAGE_INDICATE_PROXY_MEDIA,
SWITCH_MESSAGE_INDICATE_APPLICATION_EXEC,
SWITCH_MESSAGE_INDICATE_APPLICATION_EXEC_COMPLETE,
SWITCH_MESSAGE_INVALID
}