]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
reswig
authorBrian West <brian@freeswitch.org>
Thu, 3 Jul 2014 13:09:18 +0000 (08:09 -0500)
committerBrian West <brian@freeswitch.org>
Thu, 3 Jul 2014 13:09:18 +0000 (08:09 -0500)
src/mod/languages/mod_managed/freeswitch_wrap.cxx
src/mod/languages/mod_managed/managed/swig.cs

index b9e57c42f949f881ac1a70518a5641d46aa3ea08..504e121dbb979e2a5d67111c8915a0a443a455fe 100644 (file)
@@ -3016,7 +3016,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RECOMMENDED_BUFFER_SIZE_get() {
   int jresult ;
   int result;
   
-  result = (int)(4096);
+  result = (int)(8192);
   jresult = result; 
   return jresult;
 }
@@ -29061,8 +29061,8 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_slin_data_frame_data_set(void * jarg1,
   arg2 = (char *)jarg2; 
   {
     if(arg2) {
-      strncpy((char*)arg1->frame_data, (const char *)arg2, 4096-1);
-      arg1->frame_data[4096-1] = 0;
+      strncpy((char*)arg1->frame_data, (const char *)arg2, 8192-1);
+      arg1->frame_data[8192-1] = 0;
     } else {
       arg1->frame_data[0] = 0;
     }
@@ -33927,7 +33927,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_write_frame_data_set(
   {
     size_t ii;
     switch_byte_t *b = (switch_byte_t *) arg1->write_frame_data;
-    for (ii = 0; ii < (size_t)4096; ii++) b[ii] = *((switch_byte_t *) arg2 + ii);
+    for (ii = 0; ii < (size_t)8192; ii++) b[ii] = *((switch_byte_t *) arg2 + ii);
   }
 }
 
@@ -37655,6 +37655,14 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_udptl_mode(void * jarg1) {
 }
 
 
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_reset(void * jarg1) {
+  switch_rtp_t *arg1 = (switch_rtp_t *) 0 ;
+  
+  arg1 = (switch_rtp_t *)jarg1; 
+  switch_rtp_reset(arg1);
+}
+
+
 SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_local_address(void * jarg1, char * jarg2, unsigned short jarg3, void * jarg4) {
   int jresult ;
   switch_rtp_t *arg1 = (switch_rtp_t *) 0 ;
@@ -37943,13 +37951,13 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_get_default_payload(void
 }
 
 
-SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_invald_handler(void * jarg1, void * jarg2) {
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_set_invalid_handler(void * jarg1, void * jarg2) {
   switch_rtp_t *arg1 = (switch_rtp_t *) 0 ;
   switch_rtp_invalid_handler_t arg2 = (switch_rtp_invalid_handler_t) 0 ;
   
   arg1 = (switch_rtp_t *)jarg1; 
   arg2 = (switch_rtp_invalid_handler_t)jarg2; 
-  switch_rtp_set_invald_handler(arg1,arg2);
+  switch_rtp_set_invalid_handler(arg1,arg2);
 }
 
 
index 14f55d984810b089008c8e5f11be5b9f251bcb6d..45d45218996368cd23b374010b7264a49cc3f60d 100644 (file)
@@ -6104,6 +6104,10 @@ public class freeswitch {
     return ret;
   }
 
+  public static void switch_rtp_reset(SWIGTYPE_p_switch_rtp rtp_session) {
+    freeswitchPINVOKE.switch_rtp_reset(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session));
+  }
+
   public static switch_status_t switch_rtp_set_local_address(SWIGTYPE_p_switch_rtp rtp_session, string host, ushort port, ref string err) {
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_local_address(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), host, port, ref err);
     return ret;
@@ -6211,8 +6215,8 @@ public class freeswitch {
     return ret;
   }
 
-  public static void switch_rtp_set_invald_handler(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void on_invalid) {
-    freeswitchPINVOKE.switch_rtp_set_invald_handler(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void.getCPtr(on_invalid));
+  public static void switch_rtp_set_invalid_handler(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void on_invalid) {
+    freeswitchPINVOKE.switch_rtp_set_invalid_handler(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_f_p_switch_rtp_p_switch_socket_t_p_void_switch_size_t_p_switch_sockaddr_t__void.getCPtr(on_invalid));
   }
 
   public static switch_status_t switch_rtp_read(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_void data, SWIGTYPE_p_unsigned_long datalen, SWIGTYPE_p_unsigned_char payload_type, SWIGTYPE_p_unsigned_long flags, uint io_flags) {
@@ -16374,6 +16378,9 @@ class freeswitchPINVOKE {
   [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_udptl_mode")]
   public static extern int switch_rtp_udptl_mode(HandleRef jarg1);
 
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_reset")]
+  public static extern void switch_rtp_reset(HandleRef jarg1);
+
   [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_local_address")]
   public static extern int switch_rtp_set_local_address(HandleRef jarg1, string jarg2, ushort jarg3, ref string jarg4);
 
@@ -16443,8 +16450,8 @@ class freeswitchPINVOKE {
   [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_default_payload")]
   public static extern uint switch_rtp_get_default_payload(HandleRef jarg1);
 
-  [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_invald_handler")]
-  public static extern void switch_rtp_set_invald_handler(HandleRef jarg1, HandleRef jarg2);
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_invalid_handler")]
+  public static extern void switch_rtp_set_invalid_handler(HandleRef jarg1, HandleRef jarg2);
 
   [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_read")]
   public static extern int switch_rtp_read(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, uint jarg6);
@@ -26526,7 +26533,8 @@ public enum switch_call_cause_t {
   SWITCH_CAUSE_GATEWAY_DOWN = 609,
   SWITCH_CAUSE_INVALID_URL = 610,
   SWITCH_CAUSE_INVALID_PROFILE = 611,
-  SWITCH_CAUSE_NO_PICKUP = 612
+  SWITCH_CAUSE_NO_PICKUP = 612,
+  SWITCH_CAUSE_SRTP_READ_ERROR = 613
 }
 
 }