int jresult ;
int result;
- result = (int)(4096);
+ result = (int)(8192);
jresult = result;
return jresult;
}
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;
}
{
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);
}
}
}
+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 ;
}
-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);
}
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;
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) {
[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);
[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);
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
}
}