diff --git a/debian/bootstrap.sh b/debian/bootstrap.sh index 1f1c3b0835..b77589baf1 100755 --- a/debian/bootstrap.sh +++ b/debian/bootstrap.sh @@ -31,7 +31,6 @@ avoid_mods=( endpoints/mod_reference endpoints/mod_unicall event_handlers/mod_amqp - languages/mod_managed sdk/autotools xml_int/mod_xml_ldap xml_int/mod_xml_radius diff --git a/debian/control-modules b/debian/control-modules index 8b6575daa7..11609d1e7c 100644 --- a/debian/control-modules +++ b/debian/control-modules @@ -578,7 +578,7 @@ Description: mod_lua Module: languages/mod_managed Description: mod_managed Adds mod_managed. -Build-Depends: libmono-2.0-dev, mono-gmcs +Build-Depends: libmono-2.0-dev, mono-mcs Module: languages/mod_perl Description: mod_perl diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index c4c986a180..db8f236870 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -1940,6 +1940,36 @@ SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_CORE_SESSION_MAX_PRIVATES_get() { } +SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_DEFAULT_VIDEO_SIZE_get() { + int jresult ; + int result; + + result = (int)(1200); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_RTCP_AUDIO_INTERVAL_MSEC_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("5000"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_RTCP_VIDEO_INTERVAL_MSEC_get() { + char * jresult ; + char *result = 0 ; + + result = (char *)("1000"); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT double SWIGSTDCALL CSharp_JITTER_VARIANCE_THRESHOLD_get() { double jresult ; double result; @@ -2870,6 +2900,126 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_certs_dir_get(void * jar } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_fonts_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->fonts_dir; + if (arg2) { + arg1->fonts_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->fonts_dir, (const char *)arg2); + } else { + arg1->fonts_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_fonts_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->fonts_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_images_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->images_dir; + if (arg2) { + arg1->images_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->images_dir, (const char *)arg2); + } else { + arg1->images_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_images_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->images_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_data_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->data_dir; + if (arg2) { + arg1->data_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->data_dir, (const char *)arg2); + } else { + arg1->data_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_data_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->data_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_directories_localstate_dir_set(void * jarg1, char * jarg2) { + switch_directories *arg1 = (switch_directories *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_directories *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->localstate_dir; + if (arg2) { + arg1->localstate_dir = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->localstate_dir, (const char *)arg2); + } else { + arg1->localstate_dir = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_directories_localstate_dir_get(void * jarg1) { + char * jresult ; + switch_directories *arg1 = (switch_directories *) 0 ; + char *result = 0 ; + + arg1 = (switch_directories *)jarg1; + result = (char *) ((arg1)->localstate_dir); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_directories() { void * jresult ; switch_directories *result = 0 ; @@ -4726,6 +4876,93 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_hdr_ext_t(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_sdes_unit_t_type_set(void * jarg1, unsigned char jarg2) { + switch_rtcp_sdes_unit_s *arg1 = (switch_rtcp_sdes_unit_s *) 0 ; + unsigned char arg2 ; + + arg1 = (switch_rtcp_sdes_unit_s *)jarg1; + arg2 = (unsigned char)jarg2; + if (arg1) (arg1)->type = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_rtcp_sdes_unit_t_type_get(void * jarg1) { + unsigned char jresult ; + switch_rtcp_sdes_unit_s *arg1 = (switch_rtcp_sdes_unit_s *) 0 ; + unsigned char result; + + arg1 = (switch_rtcp_sdes_unit_s *)jarg1; + result = (unsigned char) ((arg1)->type); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_sdes_unit_t_length_set(void * jarg1, unsigned char jarg2) { + switch_rtcp_sdes_unit_s *arg1 = (switch_rtcp_sdes_unit_s *) 0 ; + unsigned char arg2 ; + + arg1 = (switch_rtcp_sdes_unit_s *)jarg1; + arg2 = (unsigned char)jarg2; + if (arg1) (arg1)->length = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_rtcp_sdes_unit_t_length_get(void * jarg1) { + unsigned char jresult ; + switch_rtcp_sdes_unit_s *arg1 = (switch_rtcp_sdes_unit_s *) 0 ; + unsigned char result; + + arg1 = (switch_rtcp_sdes_unit_s *)jarg1; + result = (unsigned char) ((arg1)->length); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_sdes_unit_t_value_set(void * jarg1, char * jarg2) { + switch_rtcp_sdes_unit_s *arg1 = (switch_rtcp_sdes_unit_s *) 0 ; + char *arg2 ; + + arg1 = (switch_rtcp_sdes_unit_s *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) strcpy((char *)arg1->value, (const char *)arg2); + else arg1->value[0] = 0; + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_rtcp_sdes_unit_t_value_get(void * jarg1) { + char * jresult ; + switch_rtcp_sdes_unit_s *arg1 = (switch_rtcp_sdes_unit_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_rtcp_sdes_unit_s *)jarg1; + result = (char *)(char *) ((arg1)->value); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtcp_sdes_unit_t() { + void * jresult ; + switch_rtcp_sdes_unit_s *result = 0 ; + + result = (switch_rtcp_sdes_unit_s *)new switch_rtcp_sdes_unit_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtcp_sdes_unit_t(void * jarg1) { + switch_rtcp_sdes_unit_s *arg1 = (switch_rtcp_sdes_unit_s *) 0 ; + + arg1 = (switch_rtcp_sdes_unit_s *)jarg1; + delete arg1; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtcp_hdr_t_version_set(void * jarg1, unsigned int jarg2) { switch_rtcp_hdr_s *arg1 = (switch_rtcp_hdr_s *) 0 ; unsigned int arg2 ; @@ -5306,6 +5543,68 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_t38_options_t(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_vid_params_t_width_set(void * jarg1, int jarg2) { + switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ; + int arg2 ; + + arg1 = (switch_vid_params_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->width = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_vid_params_t_width_get(void * jarg1) { + int jresult ; + switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ; + int result; + + arg1 = (switch_vid_params_s *)jarg1; + result = (int) ((arg1)->width); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_vid_params_t_height_set(void * jarg1, int jarg2) { + switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ; + int arg2 ; + + arg1 = (switch_vid_params_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->height = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_vid_params_t_height_get(void * jarg1) { + int jresult ; + switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ; + int result; + + arg1 = (switch_vid_params_s *)jarg1; + result = (int) ((arg1)->height); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_vid_params_t() { + void * jresult ; + switch_vid_params_s *result = 0 ; + + result = (switch_vid_params_s *)new switch_vid_params_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_vid_params_t(void * jarg1) { + switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ; + + arg1 = (switch_vid_params_s *)jarg1; + delete arg1; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MEDIA_TYPE_TOTAL_get() { int jresult ; int result; @@ -6316,6 +6615,36 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_payload_map_t_iananame_get(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_modname_set(void * jarg1, char * jarg2) { + payload_map_s *arg1 = (payload_map_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (payload_map_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->modname; + if (arg2) { + arg1->modname = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->modname, (const char *)arg2); + } else { + arg1->modname = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_payload_map_t_modname_get(void * jarg1) { + char * jresult ; + payload_map_s *arg1 = (payload_map_s *) 0 ; + char *result = 0 ; + + arg1 = (payload_map_s *)jarg1; + result = (char *) ((arg1)->modname); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_payload_map_t_pt_set(void * jarg1, unsigned char jarg2) { payload_map_s *arg1 = (payload_map_s *) 0 ; switch_payload_t arg2 ; @@ -10252,6 +10581,20 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_exec_all(void * jarg1, c } +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_patch_video(void * jarg1, void * jarg2) { + unsigned long jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + uint32_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + result = (uint32_t)switch_core_media_bug_patch_video(arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_count(void * jarg1, char * jarg2) { unsigned long jresult ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; @@ -10374,6 +10717,18 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_native_write_fram } +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_video_ping_frame(void * jarg1) { + void * jresult ; + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_frame_t *result = 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + result = (switch_frame_t *)switch_core_media_bug_get_video_ping_frame(arg1); + jresult = (void *)result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_set_write_replace_frame(void * jarg1, void * jarg2) { switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; switch_frame_t *arg2 = (switch_frame_t *) 0 ; @@ -11548,6 +11903,14 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_codec_slin(void * jarg } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_raw_read(void * jarg1) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + + arg1 = (switch_core_session_t *)jarg1; + switch_core_session_raw_read(arg1); +} + + SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_get_uuid() { char * jresult ; char *result = 0 ; @@ -12348,6 +12711,24 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_write_video_frame(void * j } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_write_encoded_video_frame(void * jarg1, void * jarg2, unsigned long jarg3, int jarg4) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + switch_io_flag_t arg3 ; + int arg4 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + arg3 = (switch_io_flag_t)jarg3; + arg4 = (int)jarg4; + result = (switch_status_t)switch_core_session_write_encoded_video_frame(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_read_impl(void * jarg1, void * jarg2) { int jresult ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; @@ -12576,16 +12957,16 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_insert_wrlock(void * jarg1, c } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_hash_delete(void * jarg1, char * jarg2) { - int jresult ; +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_hash_delete(void * jarg1, char * jarg2) { + void * jresult ; switch_hash_t *arg1 = (switch_hash_t *) 0 ; char *arg2 = (char *) 0 ; - switch_status_t result; + void *result = 0 ; arg1 = (switch_hash_t *)jarg1; arg2 = (char *)jarg2; - result = (switch_status_t)switch_core_hash_delete(arg1,(char const *)arg2); - jresult = result; + result = (void *)switch_core_hash_delete(arg1,(char const *)arg2); + jresult = (void *)result; return jresult; } @@ -12736,6 +13117,84 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_hash_this(void * jarg1, void * ja } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_hash_this_val(void * jarg1, void * jarg2) { + switch_hash_index_t *arg1 = (switch_hash_index_t *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (switch_hash_index_t *)jarg1; + arg2 = (void *)jarg2; + switch_core_hash_this_val(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_inthash_init(void * jarg1) { + int jresult ; + switch_inthash_t **arg1 = (switch_inthash_t **) 0 ; + switch_status_t result; + + arg1 = (switch_inthash_t **)jarg1; + result = (switch_status_t)switch_core_inthash_init(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_inthash_destroy(void * jarg1) { + int jresult ; + switch_inthash_t **arg1 = (switch_inthash_t **) 0 ; + switch_status_t result; + + arg1 = (switch_inthash_t **)jarg1; + result = (switch_status_t)switch_core_inthash_destroy(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_inthash_insert(void * jarg1, unsigned long jarg2, void * jarg3) { + int jresult ; + switch_inthash_t *arg1 = (switch_inthash_t *) 0 ; + uint32_t arg2 ; + void *arg3 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_inthash_t *)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (void *)jarg3; + result = (switch_status_t)switch_core_inthash_insert(arg1,arg2,(void const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_inthash_delete(void * jarg1, unsigned long jarg2) { + void * jresult ; + switch_inthash_t *arg1 = (switch_inthash_t *) 0 ; + uint32_t arg2 ; + void *result = 0 ; + + arg1 = (switch_inthash_t *)jarg1; + arg2 = (uint32_t)jarg2; + result = (void *)switch_core_inthash_delete(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_inthash_find(void * jarg1, unsigned long jarg2) { + void * jresult ; + switch_inthash_t *arg1 = (switch_inthash_t *) 0 ; + uint32_t arg2 ; + void *result = 0 ; + + arg1 = (switch_inthash_t *)jarg1; + arg2 = (uint32_t)jarg2; + result = (void *)switch_core_inthash_find(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_init(void * jarg1, char * jarg2, int jarg3, int jarg4, void * jarg5) { int jresult ; switch_timer_t *arg1 = (switch_timer_t *) 0 ; @@ -12823,31 +13282,33 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_timer_destroy(void * jarg1) { } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_init_with_bitrate(void * jarg1, char * jarg2, char * jarg3, unsigned long jarg4, int jarg5, int jarg6, unsigned long jarg7, unsigned long jarg8, void * jarg9, void * jarg10) { +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_init_with_bitrate(void * jarg1, char * jarg2, char * jarg3, char * jarg4, unsigned long jarg5, int jarg6, int jarg7, unsigned long jarg8, unsigned long jarg9, void * jarg10, void * jarg11) { int jresult ; switch_codec_t *arg1 = (switch_codec_t *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; - uint32_t arg4 ; - int arg5 ; + char *arg4 = (char *) 0 ; + uint32_t arg5 ; int arg6 ; - uint32_t arg7 ; + int arg7 ; uint32_t arg8 ; - switch_codec_settings_t *arg9 = (switch_codec_settings_t *) 0 ; - switch_memory_pool_t *arg10 = (switch_memory_pool_t *) 0 ; + uint32_t arg9 ; + switch_codec_settings_t *arg10 = (switch_codec_settings_t *) 0 ; + switch_memory_pool_t *arg11 = (switch_memory_pool_t *) 0 ; switch_status_t result; arg1 = (switch_codec_t *)jarg1; arg2 = (char *)jarg2; arg3 = (char *)jarg3; - arg4 = (uint32_t)jarg4; - arg5 = (int)jarg5; + arg4 = (char *)jarg4; + arg5 = (uint32_t)jarg5; arg6 = (int)jarg6; - arg7 = (uint32_t)jarg7; + arg7 = (int)jarg7; arg8 = (uint32_t)jarg8; - arg9 = (switch_codec_settings_t *)jarg9; - arg10 = (switch_memory_pool_t *)jarg10; - result = (switch_status_t)switch_core_codec_init_with_bitrate(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8,(switch_codec_settings const *)arg9,arg10); + arg9 = (uint32_t)jarg9; + arg10 = (switch_codec_settings_t *)jarg10; + arg11 = (switch_memory_pool_t *)jarg11; + result = (switch_status_t)switch_core_codec_init_with_bitrate(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7,arg8,arg9,(switch_codec_settings const *)arg10,arg11); jresult = result; return jresult; } @@ -12957,6 +13418,56 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_decode(void * jarg1, void * } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_encode_video(void * jarg1, void * jarg2) { + int jresult ; + switch_codec_t *arg1 = (switch_codec_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + switch_status_t result; + + arg1 = (switch_codec_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + result = (switch_status_t)switch_core_codec_encode_video(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_control(void * jarg1, int jarg2, int jarg3, void * jarg4, void * jarg5, void * jarg6) { + int jresult ; + switch_codec_t *arg1 = (switch_codec_t *) 0 ; + switch_codec_control_command_t arg2 ; + switch_codec_control_type_t arg3 ; + void *arg4 = (void *) 0 ; + switch_codec_control_type_t *arg5 = (switch_codec_control_type_t *) 0 ; + void **arg6 = (void **) 0 ; + switch_status_t result; + + arg1 = (switch_codec_t *)jarg1; + arg2 = (switch_codec_control_command_t)jarg2; + arg3 = (switch_codec_control_type_t)jarg3; + arg4 = (void *)jarg4; + arg5 = (switch_codec_control_type_t *)jarg5; + arg6 = (void **)jarg6; + result = (switch_status_t)switch_core_codec_control(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_decode_video(void * jarg1, void * jarg2) { + int jresult ; + switch_codec_t *arg1 = (switch_codec_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + switch_status_t result; + + arg1 = (switch_codec_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + result = (switch_status_t)switch_core_codec_decode_video(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_destroy(void * jarg1) { int jresult ; switch_codec_t *arg1 = (switch_codec_t *) 0 ; @@ -13347,17 +13858,31 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_write(void * jarg1, void * ja } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_write_video(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_write_video(void * jarg1, void * jarg2) { int jresult ; switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; - void *arg2 = (void *) 0 ; - switch_size_t *arg3 = (switch_size_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; switch_status_t result; arg1 = (switch_file_handle_t *)jarg1; - arg2 = (void *)jarg2; - arg3 = (switch_size_t *)jarg3; - result = (switch_status_t)switch_core_file_write_video(arg1,arg2,arg3); + arg2 = (switch_frame_t *)jarg2; + result = (switch_status_t)switch_core_file_write_video(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_read_video(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + switch_video_read_flag_t arg3 ; + switch_status_t result; + + arg1 = (switch_file_handle_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + arg3 = (switch_video_read_flag_t)jarg3; + result = (switch_status_t)switch_core_file_read_video(arg1,arg2,arg3); jresult = result; return jresult; } @@ -13439,6 +13964,18 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_truncate(void * jarg1, long l } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_has_video(void * jarg1) { + int jresult ; + switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ; + switch_bool_t result; + + arg1 = (switch_file_handle_t *)jarg1; + result = (switch_bool_t)switch_core_file_has_video(arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_speech_open(void * jarg1, char * jarg2, char * jarg3, unsigned int jarg4, unsigned int jarg5, unsigned int jarg6, void * jarg7, void * jarg8) { int jresult ; switch_speech_handle_t *arg1 = (switch_speech_handle_t *) 0 ; @@ -14138,6 +14675,36 @@ SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_core_session_check_interface( } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_set_video_read_callback(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_video_thread_callback_func_t *arg2 = (switch_core_video_thread_callback_func_t *) 0 ; + void *arg3 = (void *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_video_thread_callback_func_t *)jarg2; + arg3 = (void *)jarg3; + result = (switch_status_t)switch_core_session_set_video_read_callback(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_video_read_callback(void * jarg1, void * jarg2) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + switch_status_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + result = (switch_status_t)switch_core_session_video_read_callback(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_mime_index() { void * jresult ; switch_hash_index_t *result = 0 ; @@ -15897,6 +16464,18 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_request_video_refresh(void } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_send_and_request_video_refresh(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_core_session_send_and_request_video_refresh(arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_stream_system_fork(char * jarg1, void * jarg2) { int jresult ; char *arg1 = (char *) 0 ; @@ -16495,25 +17074,28 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_endpoint_interfa } -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_codec_interface(char * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_codec_interface(char * jarg1, char * jarg2) { void * jresult ; char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; switch_codec_interface_t *result = 0 ; arg1 = (char *)jarg1; - result = (switch_codec_interface_t *)switch_loadable_module_get_codec_interface((char const *)arg1); + arg2 = (char *)jarg2; + result = (switch_codec_interface_t *)switch_loadable_module_get_codec_interface((char const *)arg1,(char const *)arg2); jresult = (void *)result; return jresult; } -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_parse_codec_buf(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_parse_codec_buf(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { char * jresult ; char *arg1 = (char *) 0 ; uint32_t *arg2 = (uint32_t *) 0 ; uint32_t *arg3 = (uint32_t *) 0 ; uint32_t *arg4 = (uint32_t *) 0 ; uint32_t *arg5 = (uint32_t *) 0 ; + char **arg6 = (char **) 0 ; char *result = 0 ; arg1 = (char *)jarg1; @@ -16521,7 +17103,8 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_parse_codec_buf(char * jarg1, void * arg3 = (uint32_t *)jarg3; arg4 = (uint32_t *)jarg4; arg5 = (uint32_t *)jarg5; - result = (char *)switch_parse_codec_buf(arg1,arg2,arg3,arg4,arg5); + arg6 = (char **)jarg6; + result = (char *)switch_parse_codec_buf(arg1,arg2,arg3,arg4,arg5,arg6); jresult = SWIG_csharp_string_callback((const char *)result); return jresult; } @@ -16665,13 +17248,15 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_json_api_interfa } -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_file_interface(char * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_file_interface(char * jarg1, char * jarg2) { void * jresult ; char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; switch_file_interface_t *result = 0 ; arg1 = (char *)jarg1; - result = (switch_file_interface_t *)switch_loadable_module_get_file_interface((char const *)arg1); + arg2 = (char *)jarg2; + result = (switch_file_interface_t *)switch_loadable_module_get_file_interface((char const *)arg1,(char const *)arg2); jresult = (void *)result; return jresult; } @@ -16943,6 +17528,32 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_codec_add_implementation(void * j } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_codec_add_video_implementation(void * jarg1, void * jarg2, unsigned char jarg3, char * jarg4, char * jarg5, void * jarg6, void * jarg7, void * jarg8, void * jarg9, void * jarg10) { + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + switch_codec_interface_t *arg2 = (switch_codec_interface_t *) 0 ; + switch_payload_t arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + switch_core_codec_init_func_t arg6 = (switch_core_codec_init_func_t) 0 ; + switch_core_codec_video_encode_func_t arg7 = (switch_core_codec_video_encode_func_t) 0 ; + switch_core_codec_video_decode_func_t arg8 = (switch_core_codec_video_decode_func_t) 0 ; + switch_core_codec_control_func_t arg9 = (switch_core_codec_control_func_t) 0 ; + switch_core_codec_destroy_func_t arg10 = (switch_core_codec_destroy_func_t) 0 ; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (switch_codec_interface_t *)jarg2; + arg3 = (switch_payload_t)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = (switch_core_codec_init_func_t)jarg6; + arg7 = (switch_core_codec_video_encode_func_t)jarg7; + arg8 = (switch_core_codec_video_decode_func_t)jarg8; + arg9 = (switch_core_codec_control_func_t)jarg9; + arg10 = (switch_core_codec_destroy_func_t)jarg10; + switch_core_codec_add_video_implementation(arg1,arg2,arg3,(char const *)arg4,arg5,arg6,arg7,arg8,arg9,arg10); +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_codec_ready(void * jarg1) { int jresult ; switch_codec_t *arg1 = (switch_codec_t *) 0 ; @@ -17207,6 +17818,20 @@ result = (char *)("\r\n #%&+:;<=>?@[\\]^`{|}\""); } +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_round_to_step(unsigned long jarg1, unsigned long jarg2) { + unsigned long jresult ; + uint32_t arg1 ; + uint32_t arg2 ; + uint32_t result; + + arg1 = (uint32_t)jarg1; + arg2 = (uint32_t)jarg2; + result = (uint32_t)switch_round_to_step(arg1,arg2); + jresult = (unsigned long)result; + return jresult; +} + + SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_toupper(unsigned long jarg1) { unsigned long jresult ; uint32_t arg1 ; @@ -18037,6 +18662,20 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_cmp_addr(void * jarg1, void * jarg2) { } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cp_addr(void * jarg1, void * jarg2) { + int jresult ; + switch_sockaddr_t *arg1 = (switch_sockaddr_t *) 0 ; + switch_sockaddr_t *arg2 = (switch_sockaddr_t *) 0 ; + int result; + + arg1 = (switch_sockaddr_t *)jarg1; + arg2 = (switch_sockaddr_t *)jarg2; + result = (int)switch_cp_addr(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT unsigned short SWIGSTDCALL CSharp_get_port(void * jarg1) { unsigned short jresult ; sockaddr *arg1 = (sockaddr *) 0 ; @@ -18606,6 +19245,18 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_util_quote_shell_arg_pool(char * jar } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_parse_bandwidth_string(char * jarg1) { + int jresult ; + char *arg1 = (char *) 0 ; + int32_t result; + + arg1 = (char *)jarg1; + result = (int32_t)switch_parse_bandwidth_string((char const *)arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_needs_url_encode(char * jarg1) { int jresult ; char *arg1 = (char *) 0 ; @@ -19627,6 +20278,60 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_parse_qs(void * jarg1, char * jar } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_frame_buffer_free(void * jarg1, void * jarg2) { + int jresult ; + switch_frame_buffer_t *arg1 = (switch_frame_buffer_t *) 0 ; + switch_frame_t **arg2 = (switch_frame_t **) 0 ; + switch_status_t result; + + arg1 = (switch_frame_buffer_t *)jarg1; + arg2 = (switch_frame_t **)jarg2; + result = (switch_status_t)switch_frame_buffer_free(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_frame_buffer_dup(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_frame_buffer_t *arg1 = (switch_frame_buffer_t *) 0 ; + switch_frame_t *arg2 = (switch_frame_t *) 0 ; + switch_frame_t **arg3 = (switch_frame_t **) 0 ; + switch_status_t result; + + arg1 = (switch_frame_buffer_t *)jarg1; + arg2 = (switch_frame_t *)jarg2; + arg3 = (switch_frame_t **)jarg3; + result = (switch_status_t)switch_frame_buffer_dup(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_frame_buffer_destroy(void * jarg1) { + int jresult ; + switch_frame_buffer_t **arg1 = (switch_frame_buffer_t **) 0 ; + switch_status_t result; + + arg1 = (switch_frame_buffer_t **)jarg1; + result = (switch_status_t)switch_frame_buffer_destroy(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_frame_buffer_create(void * jarg1) { + int jresult ; + switch_frame_buffer_t **arg1 = (switch_frame_buffer_t **) 0 ; + switch_status_t result; + + arg1 = (switch_frame_buffer_t **)jarg1; + result = (switch_status_t)switch_frame_buffer_create(arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_var_set(void * jarg1, char * jarg2) { profile_node_s *arg1 = (profile_node_s *) 0 ; char *arg2 = (char *) 0 ; @@ -21552,30 +22257,24 @@ SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_frame_payload_get(void * jarg } -SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_timestamp_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_timestamp_set(void * jarg1, unsigned long jarg2) { switch_frame *arg1 = (switch_frame *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; + uint32_t arg2 ; arg1 = (switch_frame *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; + arg2 = (uint32_t)jarg2; if (arg1) (arg1)->timestamp = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_timestamp_get(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_timestamp_get(void * jarg1) { + unsigned long jresult ; switch_frame *arg1 = (switch_frame *) 0 ; - switch_size_t result; + uint32_t result; arg1 = (switch_frame *)jarg1; - result = ((arg1)->timestamp); - jresult = new switch_size_t((const switch_size_t &)result); + result = (uint32_t) ((arg1)->timestamp); + jresult = (unsigned long)result; return jresult; } @@ -21712,6 +22411,28 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_pmap_get(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_img_set(void * jarg1, void * jarg2) { + switch_frame *arg1 = (switch_frame *) 0 ; + switch_image_t *arg2 = (switch_image_t *) 0 ; + + arg1 = (switch_frame *)jarg1; + arg2 = (switch_image_t *)jarg2; + if (arg1) (arg1)->img = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_frame_img_get(void * jarg1) { + void * jresult ; + switch_frame *arg1 = (switch_frame *) 0 ; + switch_image_t *result = 0 ; + + arg1 = (switch_frame *)jarg1; + result = (switch_image_t *) ((arg1)->img); + jresult = (void *)result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_frame() { void * jresult ; switch_frame *result = 0 ; @@ -23734,10 +24455,10 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_write_get(void * SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_read_video_set(void * jarg1, void * jarg2) { switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*arg2)(switch_file_handle_t *,void *,switch_size_t *) = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) 0 ; + switch_status_t (*arg2)(switch_file_handle_t *,switch_frame_t *,switch_video_read_flag_t) = (switch_status_t (*)(switch_file_handle_t *,switch_frame_t *,switch_video_read_flag_t)) 0 ; arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *))jarg2; + arg2 = (switch_status_t (*)(switch_file_handle_t *,switch_frame_t *,switch_video_read_flag_t))jarg2; if (arg1) (arg1)->file_read_video = arg2; } @@ -23745,10 +24466,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_read_video_set(voi SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_read_video_get(void * jarg1) { void * jresult ; switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*result)(switch_file_handle_t *,void *,switch_size_t *) = 0 ; + switch_status_t (*result)(switch_file_handle_t *,switch_frame_t *,switch_video_read_flag_t) = 0 ; arg1 = (switch_file_interface *)jarg1; - result = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) ((arg1)->file_read_video); + result = (switch_status_t (*)(switch_file_handle_t *,switch_frame_t *,switch_video_read_flag_t)) ((arg1)->file_read_video); jresult = (void *)result; return jresult; } @@ -23756,10 +24477,10 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_read_video_get(v SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_write_video_set(void * jarg1, void * jarg2) { switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*arg2)(switch_file_handle_t *,void *,switch_size_t *) = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) 0 ; + switch_status_t (*arg2)(switch_file_handle_t *,switch_frame_t *) = (switch_status_t (*)(switch_file_handle_t *,switch_frame_t *)) 0 ; arg1 = (switch_file_interface *)jarg1; - arg2 = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *))jarg2; + arg2 = (switch_status_t (*)(switch_file_handle_t *,switch_frame_t *))jarg2; if (arg1) (arg1)->file_write_video = arg2; } @@ -23767,10 +24488,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_write_video_set(vo SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_write_video_get(void * jarg1) { void * jresult ; switch_file_interface *arg1 = (switch_file_interface *) 0 ; - switch_status_t (*result)(switch_file_handle_t *,void *,switch_size_t *) = 0 ; + switch_status_t (*result)(switch_file_handle_t *,switch_frame_t *) = 0 ; arg1 = (switch_file_interface *)jarg1; - result = (switch_status_t (*)(switch_file_handle_t *,void *,switch_size_t *)) ((arg1)->file_write_video); + result = (switch_status_t (*)(switch_file_handle_t *,switch_frame_t *)) ((arg1)->file_write_video); jresult = (void *)result; return jresult; } @@ -23992,6 +24713,222 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_file_interface(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_samplerate_set(void * jarg1, int jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->samplerate = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_samplerate_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int result; + + arg1 = (switch_mm_s *)jarg1; + result = (int) ((arg1)->samplerate); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_channels_set(void * jarg1, int jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->channels = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_channels_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int result; + + arg1 = (switch_mm_s *)jarg1; + result = (int) ((arg1)->channels); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_keyint_set(void * jarg1, int jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->keyint = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_keyint_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int result; + + arg1 = (switch_mm_s *)jarg1; + result = (int) ((arg1)->keyint); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_ab_set(void * jarg1, int jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->ab = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_ab_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int result; + + arg1 = (switch_mm_s *)jarg1; + result = (int) ((arg1)->ab); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_vb_set(void * jarg1, int jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->vb = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_vb_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int result; + + arg1 = (switch_mm_s *)jarg1; + result = (int) ((arg1)->vb); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_vw_set(void * jarg1, int jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->vw = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_vw_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int result; + + arg1 = (switch_mm_s *)jarg1; + result = (int) ((arg1)->vw); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_vh_set(void * jarg1, int jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->vh = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_vh_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int result; + + arg1 = (switch_mm_s *)jarg1; + result = (int) ((arg1)->vh); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_fps_set(void * jarg1, float jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + float arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->fps = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_switch_mm_t_fps_get(void * jarg1) { + float jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + float result; + + arg1 = (switch_mm_s *)jarg1; + result = (float) ((arg1)->fps); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_vbuf_set(void * jarg1, int jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->vbuf = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_vbuf_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int result; + + arg1 = (switch_mm_s *)jarg1; + result = (int) ((arg1)->vbuf); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_mm_t() { + void * jresult ; + switch_mm_s *result = 0 ; + + result = (switch_mm_s *)new switch_mm_s(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_mm_t(void * jarg1) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + + arg1 = (switch_mm_s *)jarg1; + delete arg1; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_file_interface_set(void * jarg1, void * jarg2) { switch_file_handle *arg1 = (switch_file_handle *) 0 ; switch_file_interface_t *arg2 = (switch_file_interface_t *) 0 ; @@ -25035,6 +25972,88 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_file_handle_cur_samplerate_ge } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_stream_name_set(void * jarg1, char * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->stream_name; + if (arg2) { + arg1->stream_name = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->stream_name, (const char *)arg2); + } else { + arg1->stream_name = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_stream_name_get(void * jarg1) { + char * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (char *) ((arg1)->stream_name); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_modname_set(void * jarg1, char * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->modname; + if (arg2) { + arg1->modname = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->modname, (const char *)arg2); + } else { + arg1->modname = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_file_handle_modname_get(void * jarg1) { + char * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + char *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (char *) ((arg1)->modname); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_mm_set(void * jarg1, void * jarg2) { + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_mm_t *arg2 = (switch_mm_t *) 0 ; + + arg1 = (switch_file_handle *)jarg1; + arg2 = (switch_mm_t *)jarg2; + if (arg1) (arg1)->mm = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_mm_get(void * jarg1) { + void * jresult ; + switch_file_handle *arg1 = (switch_file_handle *) 0 ; + switch_mm_t *result = 0 ; + + arg1 = (switch_file_handle *)jarg1; + result = (switch_mm_t *)& ((arg1)->mm); + jresult = (void *)result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_file_handle() { void * jresult ; switch_file_handle *result = 0 ; @@ -28019,28 +29038,174 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_directory_handle(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_settings_unused_set(void * jarg1, int jarg2) { - switch_codec_settings *arg1 = (switch_codec_settings *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_switch_audio_codec_settings_unused_set(void * jarg1, int jarg2) { + switch_audio_codec_settings *arg1 = (switch_audio_codec_settings *) 0 ; int arg2 ; - arg1 = (switch_codec_settings *)jarg1; + arg1 = (switch_audio_codec_settings *)jarg1; arg2 = (int)jarg2; if (arg1) (arg1)->unused = arg2; } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_codec_settings_unused_get(void * jarg1) { +SWIGEXPORT int SWIGSTDCALL CSharp_switch_audio_codec_settings_unused_get(void * jarg1) { int jresult ; - switch_codec_settings *arg1 = (switch_codec_settings *) 0 ; + switch_audio_codec_settings *arg1 = (switch_audio_codec_settings *) 0 ; int result; - arg1 = (switch_codec_settings *)jarg1; + arg1 = (switch_audio_codec_settings *)jarg1; result = (int) ((arg1)->unused); jresult = result; return jresult; } +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_audio_codec_settings() { + void * jresult ; + switch_audio_codec_settings *result = 0 ; + + result = (switch_audio_codec_settings *)new switch_audio_codec_settings(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_audio_codec_settings(void * jarg1) { + switch_audio_codec_settings *arg1 = (switch_audio_codec_settings *) 0 ; + + arg1 = (switch_audio_codec_settings *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_video_codec_settings_bandwidth_set(void * jarg1, unsigned long jarg2) { + switch_video_codec_settings *arg1 = (switch_video_codec_settings *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_video_codec_settings *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->bandwidth = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_video_codec_settings_bandwidth_get(void * jarg1) { + unsigned long jresult ; + switch_video_codec_settings *arg1 = (switch_video_codec_settings *) 0 ; + uint32_t result; + + arg1 = (switch_video_codec_settings *)jarg1; + result = (uint32_t) ((arg1)->bandwidth); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_video_codec_settings_width_set(void * jarg1, int jarg2) { + switch_video_codec_settings *arg1 = (switch_video_codec_settings *) 0 ; + int32_t arg2 ; + + arg1 = (switch_video_codec_settings *)jarg1; + arg2 = (int32_t)jarg2; + if (arg1) (arg1)->width = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_video_codec_settings_width_get(void * jarg1) { + int jresult ; + switch_video_codec_settings *arg1 = (switch_video_codec_settings *) 0 ; + int32_t result; + + arg1 = (switch_video_codec_settings *)jarg1; + result = (int32_t) ((arg1)->width); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_video_codec_settings_height_set(void * jarg1, int jarg2) { + switch_video_codec_settings *arg1 = (switch_video_codec_settings *) 0 ; + int32_t arg2 ; + + arg1 = (switch_video_codec_settings *)jarg1; + arg2 = (int32_t)jarg2; + if (arg1) (arg1)->height = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_video_codec_settings_height_get(void * jarg1) { + int jresult ; + switch_video_codec_settings *arg1 = (switch_video_codec_settings *) 0 ; + int32_t result; + + arg1 = (switch_video_codec_settings *)jarg1; + result = (int32_t) ((arg1)->height); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_video_codec_settings() { + void * jresult ; + switch_video_codec_settings *result = 0 ; + + result = (switch_video_codec_settings *)new switch_video_codec_settings(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_video_codec_settings(void * jarg1) { + switch_video_codec_settings *arg1 = (switch_video_codec_settings *) 0 ; + + arg1 = (switch_video_codec_settings *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_settings_audio_set(void * jarg1, void * jarg2) { + switch_codec_settings *arg1 = (switch_codec_settings *) 0 ; + switch_audio_codec_settings *arg2 = (switch_audio_codec_settings *) 0 ; + + arg1 = (switch_codec_settings *)jarg1; + arg2 = (switch_audio_codec_settings *)jarg2; + if (arg1) (arg1)->audio = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_settings_audio_get(void * jarg1) { + void * jresult ; + switch_codec_settings *arg1 = (switch_codec_settings *) 0 ; + switch_audio_codec_settings *result = 0 ; + + arg1 = (switch_codec_settings *)jarg1; + result = (switch_audio_codec_settings *)& ((arg1)->audio); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_settings_video_set(void * jarg1, void * jarg2) { + switch_codec_settings *arg1 = (switch_codec_settings *) 0 ; + switch_video_codec_settings *arg2 = (switch_video_codec_settings *) 0 ; + + arg1 = (switch_codec_settings *)jarg1; + arg2 = (switch_video_codec_settings *)jarg2; + if (arg1) (arg1)->video = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_settings_video_get(void * jarg1) { + void * jresult ; + switch_codec_settings *arg1 = (switch_codec_settings *) 0 ; + switch_video_codec_settings *result = 0 ; + + arg1 = (switch_codec_settings *)jarg1; + result = (switch_video_codec_settings *)& ((arg1)->video); + jresult = (void *)result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_codec_settings() { void * jresult ; switch_codec_settings *result = 0 ; @@ -28187,6 +29352,120 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_codec_fmtp(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_picture_width_set(void * jarg1, unsigned long jarg2) { + switch_picture *arg1 = (switch_picture *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_picture *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->width = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_picture_width_get(void * jarg1) { + unsigned long jresult ; + switch_picture *arg1 = (switch_picture *) 0 ; + uint32_t result; + + arg1 = (switch_picture *)jarg1; + result = (uint32_t) ((arg1)->width); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_picture_height_set(void * jarg1, unsigned long jarg2) { + switch_picture *arg1 = (switch_picture *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_picture *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->height = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_picture_height_get(void * jarg1) { + unsigned long jresult ; + switch_picture *arg1 = (switch_picture *) 0 ; + uint32_t result; + + arg1 = (switch_picture *)jarg1; + result = (uint32_t) ((arg1)->height); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_picture_planes_set(void * jarg1, void * jarg2) { + switch_picture *arg1 = (switch_picture *) 0 ; + uint8_t **arg2 ; + + arg1 = (switch_picture *)jarg1; + arg2 = (uint8_t **)jarg2; + { + size_t ii; + uint8_t * *b = (uint8_t * *) arg1->planes; + for (ii = 0; ii < (size_t)4; ii++) b[ii] = *((uint8_t * *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_picture_planes_get(void * jarg1) { + void * jresult ; + switch_picture *arg1 = (switch_picture *) 0 ; + uint8_t **result = 0 ; + + arg1 = (switch_picture *)jarg1; + result = (uint8_t **)(uint8_t **) ((arg1)->planes); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_picture_stride_set(void * jarg1, void * jarg2) { + switch_picture *arg1 = (switch_picture *) 0 ; + uint32_t *arg2 ; + + arg1 = (switch_picture *)jarg1; + arg2 = (uint32_t *)jarg2; + { + size_t ii; + uint32_t *b = (uint32_t *) arg1->stride; + for (ii = 0; ii < (size_t)4; ii++) b[ii] = *((uint32_t *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_picture_stride_get(void * jarg1) { + void * jresult ; + switch_picture *arg1 = (switch_picture *) 0 ; + uint32_t *result = 0 ; + + arg1 = (switch_picture *)jarg1; + result = (uint32_t *)(uint32_t *) ((arg1)->stride); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_picture() { + void * jresult ; + switch_picture *result = 0 ; + + result = (switch_picture *)new switch_picture(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_picture(void * jarg1) { + switch_picture *arg1 = (switch_picture *) 0 ; + + arg1 = (switch_picture *)jarg1; + delete arg1; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_codec_interface_set(void * jarg1, void * jarg2) { switch_codec *arg1 = (switch_codec *) 0 ; switch_codec_interface_t *arg2 = (switch_codec_interface_t *) 0 ; @@ -28853,6 +30132,72 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_decode_get(void } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_encode_video_set(void * jarg1, void * jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_video_encode_func_t arg2 = (switch_core_codec_video_encode_func_t) 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (switch_core_codec_video_encode_func_t)jarg2; + if (arg1) (arg1)->encode_video = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_encode_video_get(void * jarg1) { + void * jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_video_encode_func_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (switch_core_codec_video_encode_func_t) ((arg1)->encode_video); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_decode_video_set(void * jarg1, void * jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_video_decode_func_t arg2 = (switch_core_codec_video_decode_func_t) 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (switch_core_codec_video_decode_func_t)jarg2; + if (arg1) (arg1)->decode_video = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_decode_video_get(void * jarg1) { + void * jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_video_decode_func_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (switch_core_codec_video_decode_func_t) ((arg1)->decode_video); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_codec_control_set(void * jarg1, void * jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_control_func_t arg2 = (switch_core_codec_control_func_t) 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (switch_core_codec_control_func_t)jarg2; + if (arg1) (arg1)->codec_control = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_implementation_codec_control_get(void * jarg1) { + void * jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + switch_core_codec_control_func_t result; + + arg1 = (switch_codec_implementation *)jarg1; + result = (switch_core_codec_control_func_t) ((arg1)->codec_control); + jresult = (void *)result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_destroy_set(void * jarg1, void * jarg2) { switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; switch_core_codec_destroy_func_t arg2 = (switch_core_codec_destroy_func_t) 0 ; @@ -28919,6 +30264,36 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_codec_implementation_impl_id_ } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_modname_set(void * jarg1, char * jarg2) { + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->modname; + if (arg2) { + arg1->modname = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->modname, (const char *)arg2); + } else { + arg1->modname = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_codec_implementation_modname_get(void * jarg1) { + char * jresult ; + switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; + char *result = 0 ; + + arg1 = (switch_codec_implementation *)jarg1; + result = (char *) ((arg1)->modname); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_implementation_next_set(void * jarg1, void * jarg2) { switch_codec_implementation *arg1 = (switch_codec_implementation *) 0 ; switch_codec_implementation *arg2 = (switch_codec_implementation *) 0 ; @@ -29120,6 +30495,36 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_codec_interface_reflock_get(void * j } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_modname_set(void * jarg1, char * jarg2) { + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_codec_interface *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->modname; + if (arg2) { + arg1->modname = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->modname, (const char *)arg2); + } else { + arg1->modname = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_codec_interface_modname_get(void * jarg1) { + char * jresult ; + switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; + char *result = 0 ; + + arg1 = (switch_codec_interface *)jarg1; + result = (char *) ((arg1)->modname); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_codec_interface_parent_set(void * jarg1, void * jarg2) { switch_codec_interface *arg1 = (switch_codec_interface *) 0 ; switch_loadable_module_interface_t *arg2 = (switch_loadable_module_interface_t *) 0 ; @@ -32607,6 +34012,64 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_pass_sdp(void * jarg1, void * j } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_buffer_create_partition(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + int jresult ; + switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; + switch_buffer_t **arg2 = (switch_buffer_t **) 0 ; + void *arg3 = (void *) 0 ; + switch_size_t arg4 ; + switch_size_t *argp4 ; + switch_status_t result; + + arg1 = (switch_memory_pool_t *)jarg1; + arg2 = (switch_buffer_t **)jarg2; + arg3 = (void *)jarg3; + argp4 = (switch_size_t *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg4 = *argp4; + result = (switch_status_t)switch_buffer_create_partition(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_buffer_set_partition_data(void * jarg1, void * jarg2, void * jarg3) { + int jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_size_t arg3 ; + switch_size_t *argp3 ; + switch_status_t result; + + arg1 = (switch_buffer_t *)jarg1; + arg2 = (void *)jarg2; + argp3 = (switch_size_t *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return 0; + } + arg3 = *argp3; + result = (switch_status_t)switch_buffer_set_partition_data(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_buffer_reset_partition_data(void * jarg1) { + int jresult ; + switch_buffer_t *arg1 = (switch_buffer_t *) 0 ; + switch_status_t result; + + arg1 = (switch_buffer_t *)jarg1; + result = (switch_status_t)switch_buffer_reset_partition_data(arg1); + jresult = 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 ; @@ -37911,6 +39374,75 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_RTP_CRYPTO_KEY_80_get() { } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_packet_t_header_set(void * jarg1, void * jarg2) { + switch_rtp_packet_t *arg1 = (switch_rtp_packet_t *) 0 ; + switch_rtp_hdr_t *arg2 = (switch_rtp_hdr_t *) 0 ; + + arg1 = (switch_rtp_packet_t *)jarg1; + arg2 = (switch_rtp_hdr_t *)jarg2; + if (arg1) (arg1)->header = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_packet_t_header_get(void * jarg1) { + void * jresult ; + switch_rtp_packet_t *arg1 = (switch_rtp_packet_t *) 0 ; + switch_rtp_hdr_t *result = 0 ; + + arg1 = (switch_rtp_packet_t *)jarg1; + result = (switch_rtp_hdr_t *)& ((arg1)->header); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_packet_t_body_set(void * jarg1, char * jarg2) { + switch_rtp_packet_t *arg1 = (switch_rtp_packet_t *) 0 ; + char *arg2 ; + + arg1 = (switch_rtp_packet_t *)jarg1; + arg2 = (char *)jarg2; + { + if(arg2) { + strncpy((char*)arg1->body, (const char *)arg2, 16384-1); + arg1->body[16384-1] = 0; + } else { + arg1->body[0] = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_rtp_packet_t_body_get(void * jarg1) { + char * jresult ; + switch_rtp_packet_t *arg1 = (switch_rtp_packet_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_rtp_packet_t *)jarg1; + result = (char *)(char *) ((arg1)->body); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_rtp_packet_t() { + void * jresult ; + switch_rtp_packet_t *result = 0 ; + + result = (switch_rtp_packet_t *)new switch_rtp_packet_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_packet_t(void * jarg1) { + switch_rtp_packet_t *arg1 = (switch_rtp_packet_t *) 0 ; + + arg1 = (switch_rtp_packet_t *)jarg1; + delete arg1; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_srtp_crypto_suite_t_name_set(void * jarg1, char * jarg2) { switch_srtp_crypto_suite_s *arg1 = (switch_srtp_crypto_suite_s *) 0 ; char *arg2 = (char *) 0 ; @@ -39052,6 +40584,32 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_activate_rtcp(void * jarg1, int jar } +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_get_media_timer(void * jarg1) { + void * jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + switch_timer_t *result = 0 ; + + arg1 = (switch_rtp_t *)jarg1; + result = (switch_timer_t *)switch_rtp_get_media_timer(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_video_buffer_size(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_video_buffer_size(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_activate_jitter_buffer(void * jarg1, unsigned long jarg2, unsigned long jarg3, unsigned long jarg4, unsigned long jarg5, unsigned long jarg6) { int jresult ; switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; @@ -39450,6 +41008,24 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_write_manual(void * jarg1, void * j } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_write_raw(void * jarg1, void * jarg2, void * jarg3, int jarg4) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + void *arg2 = (void *) 0 ; + switch_size_t *arg3 = (switch_size_t *) 0 ; + switch_bool_t arg4 ; + switch_status_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (void *)jarg2; + arg3 = (switch_size_t *)jarg3; + arg4 = (switch_bool_t)jarg4; + result = (switch_status_t)switch_rtp_write_raw(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_rtp_get_ssrc(void * jarg1) { unsigned long jresult ; switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; @@ -39606,6 +41182,20 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_del_dtls(void * jarg1, int jarg2) { } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_dtls_state(void * jarg1, int jarg2) { + int jresult ; + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + dtls_type_t arg2 ; + dtls_state_t result; + + arg1 = (switch_rtp_t *)jarg1; + arg2 = (dtls_type_t)jarg2; + result = (dtls_state_t)switch_rtp_dtls_state(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_has_dtls() { int jresult ; int result; @@ -39624,6 +41214,14 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_video_refresh(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_video_loss(void * jarg1) { + switch_rtp_t *arg1 = (switch_rtp_t *) 0 ; + + arg1 = (switch_rtp_t *)jarg1; + switch_rtp_video_loss(arg1); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_data_set(void * jarg1, char * jarg2) { switch_log_node_t *arg1 = (switch_log_node_t *) 0 ; char *arg2 = (char *) 0 ; diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index 2102211faf..6ffbce46ae 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -633,6 +633,7 @@ public class dtls_fingerprint_t : IDisposable { namespace FreeSWITCH.Native { public enum dtls_state_t { + DS_OFF, DS_HANDSHAKE, DS_SETUP, DS_READY, @@ -1240,6 +1241,11 @@ public class freeswitch { return ret; } + public static uint switch_core_media_bug_patch_video(SWIGTYPE_p_switch_core_session orig_session, switch_frame frame) { + uint ret = freeswitchPINVOKE.switch_core_media_bug_patch_video(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), switch_frame.getCPtr(frame)); + return ret; + } + public static uint switch_core_media_bug_count(SWIGTYPE_p_switch_core_session orig_session, string function) { uint ret = freeswitchPINVOKE.switch_core_media_bug_count(SWIGTYPE_p_switch_core_session.getCPtr(orig_session), function); return ret; @@ -1287,6 +1293,12 @@ public class freeswitch { return ret; } + public static switch_frame switch_core_media_bug_get_video_ping_frame(SWIGTYPE_p_switch_media_bug bug) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_video_ping_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug)); + switch_frame ret = (cPtr == IntPtr.Zero) ? null : new switch_frame(cPtr, false); + return ret; + } + public static void switch_core_media_bug_set_write_replace_frame(SWIGTYPE_p_switch_media_bug bug, switch_frame frame) { freeswitchPINVOKE.switch_core_media_bug_set_write_replace_frame(SWIGTYPE_p_switch_media_bug.getCPtr(bug), switch_frame.getCPtr(frame)); } @@ -1735,6 +1747,10 @@ public class freeswitch { return ret; } + public static void switch_core_session_raw_read(SWIGTYPE_p_switch_core_session session) { + freeswitchPINVOKE.switch_core_session_raw_read(SWIGTYPE_p_switch_core_session.getCPtr(session)); + } + public static string switch_core_get_uuid() { string ret = freeswitchPINVOKE.switch_core_get_uuid(); return ret; @@ -2023,6 +2039,11 @@ public class freeswitch { return ret; } + public static switch_status_t switch_core_session_write_encoded_video_frame(SWIGTYPE_p_switch_core_session session, switch_frame frame, uint flags, int stream_id) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_write_encoded_video_frame(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_frame.getCPtr(frame), flags, stream_id); + return ret; + } + public static switch_status_t switch_core_session_set_read_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_read_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp)); return ret; @@ -2097,8 +2118,9 @@ public class freeswitch { return ret; } - public static switch_status_t switch_core_hash_delete(SWIGTYPE_p_switch_hashtable hash, string key) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_hash_delete(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key); + public static SWIGTYPE_p_void switch_core_hash_delete(SWIGTYPE_p_switch_hashtable hash, string key) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_hash_delete(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); return ret; } @@ -2156,6 +2178,37 @@ public class freeswitch { freeswitchPINVOKE.switch_core_hash_this(SWIGTYPE_p_switch_hashtable_iterator.getCPtr(hi), SWIGTYPE_p_p_void.getCPtr(key), SWIGTYPE_p_switch_ssize_t.getCPtr(klen), SWIGTYPE_p_p_void.getCPtr(val)); } + public static void switch_core_hash_this_val(SWIGTYPE_p_switch_hashtable_iterator hi, SWIGTYPE_p_void val) { + freeswitchPINVOKE.switch_core_hash_this_val(SWIGTYPE_p_switch_hashtable_iterator.getCPtr(hi), SWIGTYPE_p_void.getCPtr(val)); + } + + public static switch_status_t switch_core_inthash_init(SWIGTYPE_p_p_switch_hashtable hash) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_inthash_init(SWIGTYPE_p_p_switch_hashtable.getCPtr(hash)); + return ret; + } + + public static switch_status_t switch_core_inthash_destroy(SWIGTYPE_p_p_switch_hashtable hash) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_inthash_destroy(SWIGTYPE_p_p_switch_hashtable.getCPtr(hash)); + return ret; + } + + public static switch_status_t switch_core_inthash_insert(SWIGTYPE_p_switch_hashtable hash, uint key, SWIGTYPE_p_void data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_inthash_insert(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key, SWIGTYPE_p_void.getCPtr(data)); + return ret; + } + + public static SWIGTYPE_p_void switch_core_inthash_delete(SWIGTYPE_p_switch_hashtable hash, uint key) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_inthash_delete(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_void switch_core_inthash_find(SWIGTYPE_p_switch_hashtable hash, uint key) { + IntPtr cPtr = freeswitchPINVOKE.switch_core_inthash_find(SWIGTYPE_p_switch_hashtable.getCPtr(hash), key); + SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + public static switch_status_t switch_core_timer_init(switch_timer timer, string timer_name, int interval, int samples, SWIGTYPE_p_apr_pool_t pool) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_timer_init(switch_timer.getCPtr(timer), timer_name, interval, samples, SWIGTYPE_p_apr_pool_t.getCPtr(pool)); return ret; @@ -2190,8 +2243,8 @@ public class freeswitch { return ret; } - public static switch_status_t switch_core_codec_init_with_bitrate(switch_codec codec, string codec_name, string fmtp, uint rate, int ms, int channels, uint bitrate, uint flags, switch_codec_settings codec_settings, SWIGTYPE_p_apr_pool_t pool) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_init_with_bitrate(switch_codec.getCPtr(codec), codec_name, fmtp, rate, ms, channels, bitrate, flags, switch_codec_settings.getCPtr(codec_settings), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); + public static switch_status_t switch_core_codec_init_with_bitrate(switch_codec codec, string codec_name, string fmtp, string modname, uint rate, int ms, int channels, uint bitrate, uint flags, switch_codec_settings codec_settings, SWIGTYPE_p_apr_pool_t pool) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_init_with_bitrate(switch_codec.getCPtr(codec), codec_name, fmtp, modname, rate, ms, channels, bitrate, flags, switch_codec_settings.getCPtr(codec_settings), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); return ret; } @@ -2220,6 +2273,21 @@ public class freeswitch { return ret; } + public static switch_status_t switch_core_codec_encode_video(switch_codec codec, switch_frame frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_encode_video(switch_codec.getCPtr(codec), switch_frame.getCPtr(frame)); + return ret; + } + + public static switch_status_t switch_core_codec_control(switch_codec codec, switch_codec_control_command_t cmd, switch_codec_control_type_t ctype, SWIGTYPE_p_void cmd_data, SWIGTYPE_p_switch_codec_control_type_t rtype, SWIGTYPE_p_p_void ret_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_control(switch_codec.getCPtr(codec), (int)cmd, (int)ctype, SWIGTYPE_p_void.getCPtr(cmd_data), SWIGTYPE_p_switch_codec_control_type_t.getCPtr(rtype), SWIGTYPE_p_p_void.getCPtr(ret_data)); + return ret; + } + + public static switch_status_t switch_core_codec_decode_video(switch_codec codec, switch_frame frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_decode_video(switch_codec.getCPtr(codec), switch_frame.getCPtr(frame)); + return ret; + } + public static switch_status_t switch_core_codec_destroy(switch_codec codec) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_codec_destroy(switch_codec.getCPtr(codec)); return ret; @@ -2370,8 +2438,13 @@ public class freeswitch { return ret; } - public static switch_status_t switch_core_file_write_video(switch_file_handle fh, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t len) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_write_video(switch_file_handle.getCPtr(fh), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(len)); + public static switch_status_t switch_core_file_write_video(switch_file_handle fh, switch_frame frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_write_video(switch_file_handle.getCPtr(fh), switch_frame.getCPtr(frame)); + return ret; + } + + public static switch_status_t switch_core_file_read_video(switch_file_handle fh, switch_frame frame, switch_video_read_flag_t flags) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_read_video(switch_file_handle.getCPtr(fh), switch_frame.getCPtr(frame), (int)flags); return ret; } @@ -2400,6 +2473,11 @@ public class freeswitch { return ret; } + public static switch_bool_t switch_core_file_has_video(switch_file_handle fh) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_file_has_video(switch_file_handle.getCPtr(fh)); + return ret; + } + public static switch_status_t switch_core_speech_open(switch_speech_handle sh, string module_name, string voice_name, uint rate, uint interval, uint channels, SWIGTYPE_p_unsigned_long flags, SWIGTYPE_p_apr_pool_t pool) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_speech_open(switch_speech_handle.getCPtr(sh), module_name, voice_name, rate, interval, channels, SWIGTYPE_p_unsigned_long.getCPtr(flags), SWIGTYPE_p_apr_pool_t.getCPtr(pool)); return ret; @@ -2654,6 +2732,16 @@ public class freeswitch { return ret; } + public static switch_status_t switch_core_session_set_video_read_callback(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t func, SWIGTYPE_p_void user_data) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_set_video_read_callback(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_f_p_switch_core_session_p_switch_frame_p_void__switch_status_t.getCPtr(func), SWIGTYPE_p_void.getCPtr(user_data)); + return ret; + } + + public static switch_status_t switch_core_session_video_read_callback(SWIGTYPE_p_switch_core_session session, switch_frame frame) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_video_read_callback(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_frame.getCPtr(frame)); + return ret; + } + public static SWIGTYPE_p_switch_hashtable_iterator switch_core_mime_index() { IntPtr cPtr = freeswitchPINVOKE.switch_core_mime_index(); SWIGTYPE_p_switch_hashtable_iterator ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_hashtable_iterator(cPtr, false); @@ -3169,6 +3257,11 @@ public class freeswitch { return ret; } + public static switch_status_t switch_core_session_send_and_request_video_refresh(SWIGTYPE_p_switch_core_session session) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_send_and_request_video_refresh(SWIGTYPE_p_switch_core_session.getCPtr(session)); + return ret; + } + public static int switch_stream_system_fork(string cmd, switch_stream_handle stream) { int ret = freeswitchPINVOKE.switch_stream_system_fork(cmd, switch_stream_handle.getCPtr(stream)); return ret; @@ -3233,14 +3326,14 @@ public class freeswitch { return ret; } - public static switch_codec_interface switch_loadable_module_get_codec_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_codec_interface(name); + public static switch_codec_interface switch_loadable_module_get_codec_interface(string name, string modname) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_codec_interface(name, modname); switch_codec_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_codec_interface(cPtr, false); return ret; } - public static string switch_parse_codec_buf(string buf, SWIGTYPE_p_unsigned_long interval, SWIGTYPE_p_unsigned_long rate, SWIGTYPE_p_unsigned_long bit, SWIGTYPE_p_unsigned_long channels) { - string ret = freeswitchPINVOKE.switch_parse_codec_buf(buf, SWIGTYPE_p_unsigned_long.getCPtr(interval), SWIGTYPE_p_unsigned_long.getCPtr(rate), SWIGTYPE_p_unsigned_long.getCPtr(bit), SWIGTYPE_p_unsigned_long.getCPtr(channels)); + public static string switch_parse_codec_buf(string buf, SWIGTYPE_p_unsigned_long interval, SWIGTYPE_p_unsigned_long rate, SWIGTYPE_p_unsigned_long bit, SWIGTYPE_p_unsigned_long channels, ref string modname) { + string ret = freeswitchPINVOKE.switch_parse_codec_buf(buf, SWIGTYPE_p_unsigned_long.getCPtr(interval), SWIGTYPE_p_unsigned_long.getCPtr(rate), SWIGTYPE_p_unsigned_long.getCPtr(bit), SWIGTYPE_p_unsigned_long.getCPtr(channels), ref modname); return ret; } @@ -3300,8 +3393,8 @@ public class freeswitch { return ret; } - public static switch_file_interface switch_loadable_module_get_file_interface(string name) { - IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_file_interface(name); + public static switch_file_interface switch_loadable_module_get_file_interface(string name, string modname) { + IntPtr cPtr = freeswitchPINVOKE.switch_loadable_module_get_file_interface(name, modname); switch_file_interface ret = (cPtr == IntPtr.Zero) ? null : new switch_file_interface(cPtr, false); return ret; } @@ -3397,6 +3490,10 @@ public class freeswitch { freeswitchPINVOKE.switch_core_codec_add_implementation(SWIGTYPE_p_apr_pool_t.getCPtr(pool), switch_codec_interface.getCPtr(codec_interface), (int)codec_type, ianacode, iananame, fmtp, samples_per_second, actual_samples_per_second, bits_per_second, microseconds_per_packet, samples_per_packet, decoded_bytes_per_packet, encoded_bytes_per_packet, number_of_channels, codec_frames_per_packet, SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t.getCPtr(init), SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t.getCPtr(encode), SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t.getCPtr(decode), SWIGTYPE_p_f_p_switch_codec__switch_status_t.getCPtr(destroy)); } + public static void switch_core_codec_add_video_implementation(SWIGTYPE_p_apr_pool_t pool, switch_codec_interface codec_interface, byte ianacode, string iananame, string fmtp, SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t init, SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t encode, SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t decode, SWIGTYPE_p_f_p_switch_codec_enum_switch_codec_control_command_t_enum_switch_codec_control_type_t_p_void_p_enum_switch_codec_control_type_t_p_p_void__switch_status_t control, SWIGTYPE_p_f_p_switch_codec__switch_status_t destroy) { + freeswitchPINVOKE.switch_core_codec_add_video_implementation(SWIGTYPE_p_apr_pool_t.getCPtr(pool), switch_codec_interface.getCPtr(codec_interface), ianacode, iananame, fmtp, SWIGTYPE_p_f_p_switch_codec_unsigned_long_p_q_const__switch_codec_settings__switch_status_t.getCPtr(init), SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t.getCPtr(encode), SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t.getCPtr(decode), SWIGTYPE_p_f_p_switch_codec_enum_switch_codec_control_command_t_enum_switch_codec_control_type_t_p_void_p_enum_switch_codec_control_type_t_p_p_void__switch_status_t.getCPtr(control), SWIGTYPE_p_f_p_switch_codec__switch_status_t.getCPtr(destroy)); + } + public static switch_bool_t switch_core_codec_ready(switch_codec codec) { switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_codec_ready(switch_codec.getCPtr(codec)); return ret; @@ -3492,6 +3589,11 @@ public class freeswitch { return ret; } + public static uint switch_round_to_step(uint num, uint step) { + uint ret = freeswitchPINVOKE.switch_round_to_step(num, step); + return ret; + } + public static uint switch_toupper(uint eax) { uint ret = freeswitchPINVOKE.switch_toupper(eax); return ret; @@ -3744,6 +3846,11 @@ public class freeswitch { return ret; } + public static int switch_cp_addr(SWIGTYPE_p_switch_sockaddr_t sa1, SWIGTYPE_p_switch_sockaddr_t sa2) { + int ret = freeswitchPINVOKE.switch_cp_addr(SWIGTYPE_p_switch_sockaddr_t.getCPtr(sa1), SWIGTYPE_p_switch_sockaddr_t.getCPtr(sa2)); + return ret; + } + public static ushort get_port(SWIGTYPE_p_sockaddr sa) { ushort ret = freeswitchPINVOKE.get_port(SWIGTYPE_p_sockaddr.getCPtr(sa)); return ret; @@ -3943,6 +4050,11 @@ public class freeswitch { return ret; } + public static int switch_parse_bandwidth_string(string bwv) { + int ret = freeswitchPINVOKE.switch_parse_bandwidth_string(bwv); + return ret; + } + public static int switch_needs_url_encode(string s) { int ret = freeswitchPINVOKE.switch_needs_url_encode(s); return ret; @@ -4105,6 +4217,26 @@ public class freeswitch { freeswitchPINVOKE.switch_http_parse_qs(switch_http_request_t.getCPtr(request), qs); } + public static switch_status_t switch_frame_buffer_free(SWIGTYPE_p_switch_frame_buffer_s fb, SWIGTYPE_p_p_switch_frame frameP) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_frame_buffer_free(SWIGTYPE_p_switch_frame_buffer_s.getCPtr(fb), SWIGTYPE_p_p_switch_frame.getCPtr(frameP)); + return ret; + } + + public static switch_status_t switch_frame_buffer_dup(SWIGTYPE_p_switch_frame_buffer_s fb, switch_frame orig, SWIGTYPE_p_p_switch_frame clone) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_frame_buffer_dup(SWIGTYPE_p_switch_frame_buffer_s.getCPtr(fb), switch_frame.getCPtr(orig), SWIGTYPE_p_p_switch_frame.getCPtr(clone)); + return ret; + } + + public static switch_status_t switch_frame_buffer_destroy(SWIGTYPE_p_p_switch_frame_buffer_s fbP) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_frame_buffer_destroy(SWIGTYPE_p_p_switch_frame_buffer_s.getCPtr(fbP)); + return ret; + } + + public static switch_status_t switch_frame_buffer_create(SWIGTYPE_p_p_switch_frame_buffer_s fbP) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_frame_buffer_create(SWIGTYPE_p_p_switch_frame_buffer_s.getCPtr(fbP)); + return ret; + } + public static switch_caller_extension switch_caller_extension_new(SWIGTYPE_p_switch_core_session session, string extension_name, string extension_number) { IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_new(SWIGTYPE_p_switch_core_session.getCPtr(session), extension_name, extension_number); switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false); @@ -4860,6 +4992,23 @@ public class freeswitch { return ret; } + public static switch_status_t switch_buffer_create_partition(SWIGTYPE_p_apr_pool_t pool, SWIGTYPE_p_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_buffer_create_partition(SWIGTYPE_p_apr_pool_t.getCPtr(pool), SWIGTYPE_p_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_buffer_set_partition_data(SWIGTYPE_p_switch_buffer buffer, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t datalen) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_buffer_set_partition_data(SWIGTYPE_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(datalen)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static switch_status_t switch_buffer_reset_partition_data(SWIGTYPE_p_switch_buffer buffer) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_buffer_reset_partition_data(SWIGTYPE_p_switch_buffer.getCPtr(buffer)); + 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(); @@ -6213,6 +6362,17 @@ public class freeswitch { return ret; } + public static switch_timer switch_rtp_get_media_timer(SWIGTYPE_p_switch_rtp rtp_session) { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_get_media_timer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + switch_timer ret = (cPtr == IntPtr.Zero) ? null : new switch_timer(cPtr, false); + return ret; + } + + public static switch_status_t switch_rtp_set_video_buffer_size(SWIGTYPE_p_switch_rtp rtp_session, uint frames) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_video_buffer_size(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), frames); + return ret; + } + public static switch_status_t switch_rtp_activate_jitter_buffer(SWIGTYPE_p_switch_rtp rtp_session, uint queue_frames, uint max_queue_frames, uint samples_per_packet, uint samples_per_second, uint max_drift) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_activate_jitter_buffer(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), queue_frames, max_queue_frames, samples_per_packet, samples_per_second, max_drift); return ret; @@ -6352,6 +6512,11 @@ public class freeswitch { return ret; } + public static switch_status_t switch_rtp_write_raw(SWIGTYPE_p_switch_rtp rtp_session, SWIGTYPE_p_void data, SWIGTYPE_p_switch_size_t bytes, switch_bool_t process_encryption) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_write_raw(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), SWIGTYPE_p_void.getCPtr(data), SWIGTYPE_p_switch_size_t.getCPtr(bytes), (int)process_encryption); + return ret; + } + public static uint switch_rtp_get_ssrc(SWIGTYPE_p_switch_rtp rtp_session) { uint ret = freeswitchPINVOKE.switch_rtp_get_ssrc(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); return ret; @@ -6413,6 +6578,11 @@ public class freeswitch { return ret; } + public static dtls_state_t switch_rtp_dtls_state(SWIGTYPE_p_switch_rtp rtp_session, dtls_type_t type) { + dtls_state_t ret = (dtls_state_t)freeswitchPINVOKE.switch_rtp_dtls_state(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)type); + return ret; + } + public static int switch_rtp_has_dtls() { int ret = freeswitchPINVOKE.switch_rtp_has_dtls(); return ret; @@ -6422,6 +6592,10 @@ public class freeswitch { freeswitchPINVOKE.switch_rtp_video_refresh(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); } + public static void switch_rtp_video_loss(SWIGTYPE_p_switch_rtp rtp_session) { + freeswitchPINVOKE.switch_rtp_video_loss(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session)); + } + public static switch_status_t switch_log_init(SWIGTYPE_p_apr_pool_t pool, switch_bool_t colorize) { switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_log_init(SWIGTYPE_p_apr_pool_t.getCPtr(pool), (int)colorize); return ret; @@ -7136,6 +7310,9 @@ public class freeswitch { public static readonly int SWITCH_DTMF_LOG_LEN = freeswitchPINVOKE.SWITCH_DTMF_LOG_LEN_get(); public static readonly int SWITCH_MAX_TRANS = freeswitchPINVOKE.SWITCH_MAX_TRANS_get(); public static readonly int SWITCH_CORE_SESSION_MAX_PRIVATES = freeswitchPINVOKE.SWITCH_CORE_SESSION_MAX_PRIVATES_get(); + public static readonly int SWITCH_DEFAULT_VIDEO_SIZE = freeswitchPINVOKE.SWITCH_DEFAULT_VIDEO_SIZE_get(); + public static readonly string SWITCH_RTCP_AUDIO_INTERVAL_MSEC = freeswitchPINVOKE.SWITCH_RTCP_AUDIO_INTERVAL_MSEC_get(); + public static readonly string SWITCH_RTCP_VIDEO_INTERVAL_MSEC = freeswitchPINVOKE.SWITCH_RTCP_VIDEO_INTERVAL_MSEC_get(); public static readonly double JITTER_VARIANCE_THRESHOLD = freeswitchPINVOKE.JITTER_VARIANCE_THRESHOLD_get(); public static readonly double IPDV_THRESHOLD = freeswitchPINVOKE.IPDV_THRESHOLD_get(); public static readonly int LOST_BURST_ANALYZE = freeswitchPINVOKE.LOST_BURST_ANALYZE_get(); @@ -7892,6 +8069,15 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_CORE_SESSION_MAX_PRIVATES_get")] public static extern int SWITCH_CORE_SESSION_MAX_PRIVATES_get(); + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_DEFAULT_VIDEO_SIZE_get")] + public static extern int SWITCH_DEFAULT_VIDEO_SIZE_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTCP_AUDIO_INTERVAL_MSEC_get")] + public static extern string SWITCH_RTCP_AUDIO_INTERVAL_MSEC_get(); + + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTCP_VIDEO_INTERVAL_MSEC_get")] + public static extern string SWITCH_RTCP_VIDEO_INTERVAL_MSEC_get(); + [DllImport("mod_managed", EntryPoint="CSharp_JITTER_VARIANCE_THRESHOLD_get")] public static extern double JITTER_VARIANCE_THRESHOLD_get(); @@ -8114,6 +8300,30 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_certs_dir_get")] public static extern string switch_directories_certs_dir_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_fonts_dir_set")] + public static extern void switch_directories_fonts_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_fonts_dir_get")] + public static extern string switch_directories_fonts_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_images_dir_set")] + public static extern void switch_directories_images_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_images_dir_get")] + public static extern string switch_directories_images_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_data_dir_set")] + public static extern void switch_directories_data_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_data_dir_get")] + public static extern string switch_directories_data_dir_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_localstate_dir_set")] + public static extern void switch_directories_localstate_dir_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_directories_localstate_dir_get")] + public static extern string switch_directories_localstate_dir_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_directories")] public static extern IntPtr new_switch_directories(); @@ -8609,6 +8819,30 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_hdr_ext_t")] public static extern void delete_switch_rtp_hdr_ext_t(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_sdes_unit_t_type_set")] + public static extern void switch_rtcp_sdes_unit_t_type_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_sdes_unit_t_type_get")] + public static extern byte switch_rtcp_sdes_unit_t_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_sdes_unit_t_length_set")] + public static extern void switch_rtcp_sdes_unit_t_length_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_sdes_unit_t_length_get")] + public static extern byte switch_rtcp_sdes_unit_t_length_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_sdes_unit_t_value_set")] + public static extern void switch_rtcp_sdes_unit_t_value_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_sdes_unit_t_value_get")] + public static extern string switch_rtcp_sdes_unit_t_value_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtcp_sdes_unit_t")] + public static extern IntPtr new_switch_rtcp_sdes_unit_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtcp_sdes_unit_t")] + public static extern void delete_switch_rtcp_sdes_unit_t(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtcp_hdr_t_version_set")] public static extern void switch_rtcp_hdr_t_version_set(HandleRef jarg1, uint jarg2); @@ -8759,6 +8993,24 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_t38_options_t")] public static extern void delete_switch_t38_options_t(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_width_set")] + public static extern void switch_vid_params_t_width_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_width_get")] + public static extern int switch_vid_params_t_width_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_height_set")] + public static extern void switch_vid_params_t_height_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_height_get")] + public static extern int switch_vid_params_t_height_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_vid_params_t")] + public static extern IntPtr new_switch_vid_params_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_vid_params_t")] + public static extern void delete_switch_vid_params_t(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MEDIA_TYPE_TOTAL_get")] public static extern int SWITCH_MEDIA_TYPE_TOTAL_get(); @@ -9032,6 +9284,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_iananame_get")] public static extern string payload_map_t_iananame_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_modname_set")] + public static extern void payload_map_t_modname_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_modname_get")] + public static extern string payload_map_t_modname_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_payload_map_t_pt_set")] public static extern void payload_map_t_pt_set(HandleRef jarg1, byte jarg2); @@ -10028,6 +10286,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_exec_all")] public static extern int switch_core_media_bug_exec_all(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_patch_video")] + public static extern uint switch_core_media_bug_patch_video(HandleRef jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_count")] public static extern uint switch_core_media_bug_count(HandleRef jarg1, string jarg2); @@ -10055,6 +10316,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_native_write_frame")] public static extern IntPtr switch_core_media_bug_get_native_write_frame(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_video_ping_frame")] + public static extern IntPtr switch_core_media_bug_get_video_ping_frame(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_write_replace_frame")] public static extern void switch_core_media_bug_set_write_replace_frame(HandleRef jarg1, HandleRef jarg2); @@ -10325,6 +10589,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_codec_slin")] public static extern int switch_core_session_set_codec_slin(HandleRef jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_raw_read")] + public static extern void switch_core_session_raw_read(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_uuid")] public static extern string switch_core_get_uuid(); @@ -10499,6 +10766,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_write_video_frame")] public static extern int switch_core_session_write_video_frame(HandleRef jarg1, HandleRef jarg2, uint jarg3, int jarg4); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_write_encoded_video_frame")] + public static extern int switch_core_session_write_encoded_video_frame(HandleRef jarg1, HandleRef jarg2, uint jarg3, int jarg4); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_read_impl")] public static extern int switch_core_session_set_read_impl(HandleRef jarg1, HandleRef jarg2); @@ -10545,7 +10815,7 @@ class freeswitchPINVOKE { public static extern int switch_core_hash_insert_wrlock(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete")] - public static extern int switch_core_hash_delete(HandleRef jarg1, string jarg2); + public static extern IntPtr switch_core_hash_delete(HandleRef jarg1, string jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_delete_locked")] public static extern int switch_core_hash_delete_locked(HandleRef jarg1, string jarg2, HandleRef jarg3); @@ -10577,6 +10847,24 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_this")] public static extern void switch_core_hash_this(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_hash_this_val")] + public static extern void switch_core_hash_this_val(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_inthash_init")] + public static extern int switch_core_inthash_init(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_inthash_destroy")] + public static extern int switch_core_inthash_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_inthash_insert")] + public static extern int switch_core_inthash_insert(HandleRef jarg1, uint jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_inthash_delete")] + public static extern IntPtr switch_core_inthash_delete(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_inthash_find")] + public static extern IntPtr switch_core_inthash_find(HandleRef jarg1, uint jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_timer_init")] public static extern int switch_core_timer_init(HandleRef jarg1, string jarg2, int jarg3, int jarg4, HandleRef jarg5); @@ -10599,7 +10887,7 @@ class freeswitchPINVOKE { public static extern int switch_core_timer_destroy(HandleRef jarg1); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_init_with_bitrate")] - public static extern int switch_core_codec_init_with_bitrate(HandleRef jarg1, string jarg2, string jarg3, uint jarg4, int jarg5, int jarg6, uint jarg7, uint jarg8, HandleRef jarg9, HandleRef jarg10); + public static extern int switch_core_codec_init_with_bitrate(HandleRef jarg1, string jarg2, string jarg3, string jarg4, uint jarg5, int jarg6, int jarg7, uint jarg8, uint jarg9, HandleRef jarg10, HandleRef jarg11); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_copy")] public static extern int switch_core_codec_copy(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); @@ -10616,6 +10904,15 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_decode")] public static extern int switch_core_codec_decode(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4, uint jarg5, HandleRef jarg6, HandleRef jarg7, HandleRef jarg8, HandleRef jarg9); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_encode_video")] + public static extern int switch_core_codec_encode_video(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_control")] + public static extern int switch_core_codec_control(HandleRef jarg1, int jarg2, int jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_decode_video")] + public static extern int switch_core_codec_decode_video(HandleRef jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_destroy")] public static extern int switch_core_codec_destroy(HandleRef jarg1); @@ -10707,7 +11004,10 @@ class freeswitchPINVOKE { public static extern int switch_core_file_write(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_write_video")] - public static extern int switch_core_file_write_video(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + public static extern int switch_core_file_write_video(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_read_video")] + public static extern int switch_core_file_read_video(HandleRef jarg1, HandleRef jarg2, int jarg3); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_seek")] public static extern int switch_core_file_seek(HandleRef jarg1, HandleRef jarg2, long jarg3, int jarg4); @@ -10724,6 +11024,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_truncate")] public static extern int switch_core_file_truncate(HandleRef jarg1, long jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_has_video")] + public static extern int switch_core_file_has_video(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_open")] public static extern int switch_core_speech_open(HandleRef jarg1, string jarg2, string jarg3, uint jarg4, uint jarg5, uint jarg6, HandleRef jarg7, HandleRef jarg8); @@ -10880,6 +11183,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_check_interface")] public static extern byte switch_core_session_check_interface(HandleRef jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_set_video_read_callback")] + public static extern int switch_core_session_set_video_read_callback(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_video_read_callback")] + public static extern int switch_core_session_video_read_callback(HandleRef jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_mime_index")] public static extern IntPtr switch_core_mime_index(); @@ -11306,6 +11615,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_request_video_refresh")] public static extern int switch_core_session_request_video_refresh(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_send_and_request_video_refresh")] + public static extern int switch_core_session_send_and_request_video_refresh(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_system_fork")] public static extern int switch_stream_system_fork(string jarg1, HandleRef jarg2); @@ -11472,10 +11784,10 @@ class freeswitchPINVOKE { public static extern IntPtr switch_loadable_module_get_endpoint_interface(string jarg1); [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_codec_interface")] - public static extern IntPtr switch_loadable_module_get_codec_interface(string jarg1); + public static extern IntPtr switch_loadable_module_get_codec_interface(string jarg1, string jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_parse_codec_buf")] - public static extern string switch_parse_codec_buf(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5); + public static extern string switch_parse_codec_buf(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, ref string jarg6); [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_dialplan_interface")] public static extern IntPtr switch_loadable_module_get_dialplan_interface(string jarg1); @@ -11508,7 +11820,7 @@ class freeswitchPINVOKE { public static extern IntPtr switch_loadable_module_get_json_api_interface(string jarg1); [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_file_interface")] - public static extern IntPtr switch_loadable_module_get_file_interface(string jarg1); + public static extern IntPtr switch_loadable_module_get_file_interface(string jarg1, string jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_speech_interface")] public static extern IntPtr switch_loadable_module_get_speech_interface(string jarg1); @@ -11561,6 +11873,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_add_implementation")] public static extern void switch_core_codec_add_implementation(HandleRef jarg1, HandleRef jarg2, int jarg3, byte jarg4, string jarg5, string jarg6, uint jarg7, uint jarg8, int jarg9, int jarg10, uint jarg11, uint jarg12, uint jarg13, byte jarg14, int jarg15, HandleRef jarg16, HandleRef jarg17, HandleRef jarg18, HandleRef jarg19); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_add_video_implementation")] + public static extern void switch_core_codec_add_video_implementation(HandleRef jarg1, HandleRef jarg2, byte jarg3, string jarg4, string jarg5, HandleRef jarg6, HandleRef jarg7, HandleRef jarg8, HandleRef jarg9, HandleRef jarg10); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_codec_ready")] public static extern int switch_core_codec_ready(HandleRef jarg1); @@ -11627,6 +11942,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_URL_UNSAFE_get")] public static extern string SWITCH_URL_UNSAFE_get(); + [DllImport("mod_managed", EntryPoint="CSharp_switch_round_to_step")] + public static extern uint switch_round_to_step(uint jarg1, uint jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_toupper")] public static extern uint switch_toupper(uint jarg1); @@ -11798,6 +12116,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_cmp_addr")] public static extern int switch_cmp_addr(HandleRef jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_cp_addr")] + public static extern int switch_cp_addr(HandleRef jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_get_port")] public static extern ushort get_port(HandleRef jarg1); @@ -11915,6 +12236,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_util_quote_shell_arg_pool")] public static extern string switch_util_quote_shell_arg_pool(string jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_parse_bandwidth_string")] + public static extern int switch_parse_bandwidth_string(string jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_needs_url_encode")] public static extern int switch_needs_url_encode(string jarg1); @@ -12134,6 +12458,18 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_http_parse_qs")] public static extern void switch_http_parse_qs(HandleRef jarg1, string jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_buffer_free")] + public static extern int switch_frame_buffer_free(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_buffer_dup")] + public static extern int switch_frame_buffer_dup(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_buffer_destroy")] + public static extern int switch_frame_buffer_destroy(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_buffer_create")] + public static extern int switch_frame_buffer_create(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_var_set")] public static extern void profile_node_t_var_set(HandleRef jarg1, string jarg2); @@ -12594,10 +12930,10 @@ class freeswitchPINVOKE { public static extern byte switch_frame_payload_get(HandleRef jarg1); [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_timestamp_set")] - public static extern void switch_frame_timestamp_set(HandleRef jarg1, HandleRef jarg2); + public static extern void switch_frame_timestamp_set(HandleRef jarg1, uint jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_timestamp_get")] - public static extern IntPtr switch_frame_timestamp_get(HandleRef jarg1); + public static extern uint switch_frame_timestamp_get(HandleRef jarg1); [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_seq_set")] public static extern void switch_frame_seq_set(HandleRef jarg1, ushort jarg2); @@ -12635,6 +12971,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_pmap_get")] public static extern IntPtr switch_frame_pmap_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_img_set")] + public static extern void switch_frame_img_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_frame_img_get")] + public static extern IntPtr switch_frame_img_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_frame")] public static extern IntPtr new_switch_frame(); @@ -13247,6 +13589,66 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_file_interface")] public static extern void delete_switch_file_interface(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_samplerate_set")] + public static extern void switch_mm_t_samplerate_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_samplerate_get")] + public static extern int switch_mm_t_samplerate_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_channels_set")] + public static extern void switch_mm_t_channels_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_channels_get")] + public static extern int switch_mm_t_channels_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_keyint_set")] + public static extern void switch_mm_t_keyint_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_keyint_get")] + public static extern int switch_mm_t_keyint_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_ab_set")] + public static extern void switch_mm_t_ab_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_ab_get")] + public static extern int switch_mm_t_ab_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vb_set")] + public static extern void switch_mm_t_vb_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vb_get")] + public static extern int switch_mm_t_vb_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vw_set")] + public static extern void switch_mm_t_vw_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vw_get")] + public static extern int switch_mm_t_vw_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vh_set")] + public static extern void switch_mm_t_vh_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vh_get")] + public static extern int switch_mm_t_vh_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_fps_set")] + public static extern void switch_mm_t_fps_set(HandleRef jarg1, float jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_fps_get")] + public static extern float switch_mm_t_fps_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vbuf_set")] + public static extern void switch_mm_t_vbuf_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vbuf_get")] + public static extern int switch_mm_t_vbuf_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_mm_t")] + public static extern IntPtr new_switch_mm_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_mm_t")] + public static extern void delete_switch_mm_t(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_file_interface_set")] public static extern void switch_file_handle_file_interface_set(HandleRef jarg1, HandleRef jarg2); @@ -13511,6 +13913,24 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_cur_samplerate_get")] public static extern uint switch_file_handle_cur_samplerate_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_stream_name_set")] + public static extern void switch_file_handle_stream_name_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_stream_name_get")] + public static extern string switch_file_handle_stream_name_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_modname_set")] + public static extern void switch_file_handle_modname_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_modname_get")] + public static extern string switch_file_handle_modname_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_mm_set")] + public static extern void switch_file_handle_mm_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_mm_get")] + public static extern IntPtr switch_file_handle_mm_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_file_handle")] public static extern IntPtr new_switch_file_handle(); @@ -14303,11 +14723,53 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_directory_handle")] public static extern void delete_switch_directory_handle(HandleRef jarg1); - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_settings_unused_set")] - public static extern void switch_codec_settings_unused_set(HandleRef jarg1, int jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_codec_settings_unused_set")] + public static extern void switch_audio_codec_settings_unused_set(HandleRef jarg1, int jarg2); - [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_settings_unused_get")] - public static extern int switch_codec_settings_unused_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_audio_codec_settings_unused_get")] + public static extern int switch_audio_codec_settings_unused_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_audio_codec_settings")] + public static extern IntPtr new_switch_audio_codec_settings(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_audio_codec_settings")] + public static extern void delete_switch_audio_codec_settings(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_video_codec_settings_bandwidth_set")] + public static extern void switch_video_codec_settings_bandwidth_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_video_codec_settings_bandwidth_get")] + public static extern uint switch_video_codec_settings_bandwidth_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_video_codec_settings_width_set")] + public static extern void switch_video_codec_settings_width_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_video_codec_settings_width_get")] + public static extern int switch_video_codec_settings_width_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_video_codec_settings_height_set")] + public static extern void switch_video_codec_settings_height_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_video_codec_settings_height_get")] + public static extern int switch_video_codec_settings_height_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_video_codec_settings")] + public static extern IntPtr new_switch_video_codec_settings(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_video_codec_settings")] + public static extern void delete_switch_video_codec_settings(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_settings_audio_set")] + public static extern void switch_codec_settings_audio_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_settings_audio_get")] + public static extern IntPtr switch_codec_settings_audio_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_settings_video_set")] + public static extern void switch_codec_settings_video_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_settings_video_get")] + public static extern IntPtr switch_codec_settings_video_get(HandleRef jarg1); [DllImport("mod_managed", EntryPoint="CSharp_new_switch_codec_settings")] public static extern IntPtr new_switch_codec_settings(); @@ -14351,6 +14813,36 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_codec_fmtp")] public static extern void delete_switch_codec_fmtp(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_picture_width_set")] + public static extern void switch_picture_width_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_picture_width_get")] + public static extern uint switch_picture_width_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_picture_height_set")] + public static extern void switch_picture_height_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_picture_height_get")] + public static extern uint switch_picture_height_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_picture_planes_set")] + public static extern void switch_picture_planes_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_picture_planes_get")] + public static extern IntPtr switch_picture_planes_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_picture_stride_set")] + public static extern void switch_picture_stride_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_picture_stride_get")] + public static extern IntPtr switch_picture_stride_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_picture")] + public static extern IntPtr new_switch_picture(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_picture")] + public static extern void delete_switch_picture(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_codec_interface_set")] public static extern void switch_codec_codec_interface_set(HandleRef jarg1, HandleRef jarg2); @@ -14525,6 +15017,24 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_decode_get")] public static extern IntPtr switch_codec_implementation_decode_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_encode_video_set")] + public static extern void switch_codec_implementation_encode_video_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_encode_video_get")] + public static extern IntPtr switch_codec_implementation_encode_video_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_decode_video_set")] + public static extern void switch_codec_implementation_decode_video_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_decode_video_get")] + public static extern IntPtr switch_codec_implementation_decode_video_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_control_set")] + public static extern void switch_codec_implementation_codec_control_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_codec_control_get")] + public static extern IntPtr switch_codec_implementation_codec_control_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_destroy_set")] public static extern void switch_codec_implementation_destroy_set(HandleRef jarg1, HandleRef jarg2); @@ -14543,6 +15053,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_impl_id_get")] public static extern uint switch_codec_implementation_impl_id_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_modname_set")] + public static extern void switch_codec_implementation_modname_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_modname_get")] + public static extern string switch_codec_implementation_modname_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_implementation_next_set")] public static extern void switch_codec_implementation_next_set(HandleRef jarg1, HandleRef jarg2); @@ -14597,6 +15113,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_reflock_get")] public static extern IntPtr switch_codec_interface_reflock_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_modname_set")] + public static extern void switch_codec_interface_modname_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_modname_get")] + public static extern string switch_codec_interface_modname_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_codec_interface_parent_set")] public static extern void switch_codec_interface_parent_set(HandleRef jarg1, HandleRef jarg2); @@ -15434,6 +15956,15 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_channel_pass_sdp")] public static extern int switch_channel_pass_sdp(HandleRef jarg1, HandleRef jarg2, string jarg3); + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_create_partition")] + public static extern int switch_buffer_create_partition(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_set_partition_data")] + public static extern int switch_buffer_set_partition_data(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_reset_partition_data")] + public static extern int switch_buffer_reset_partition_data(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_create")] public static extern int switch_buffer_create(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); @@ -16538,6 +17069,24 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_CRYPTO_KEY_80_get")] public static extern string SWITCH_RTP_CRYPTO_KEY_80_get(); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_packet_t_header_set")] + public static extern void switch_rtp_packet_t_header_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_packet_t_header_get")] + public static extern IntPtr switch_rtp_packet_t_header_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_packet_t_body_set")] + public static extern void switch_rtp_packet_t_body_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_packet_t_body_get")] + public static extern string switch_rtp_packet_t_body_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_packet_t")] + public static extern IntPtr new_switch_rtp_packet_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_packet_t")] + public static extern void delete_switch_rtp_packet_t(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_srtp_crypto_suite_t_name_set")] public static extern void switch_srtp_crypto_suite_t_name_set(HandleRef jarg1, string jarg2); @@ -16802,6 +17351,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_activate_rtcp")] public static extern int switch_rtp_activate_rtcp(HandleRef jarg1, int jarg2, ushort jarg3, int jarg4); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_media_timer")] + public static extern IntPtr switch_rtp_get_media_timer(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_video_buffer_size")] + public static extern int switch_rtp_set_video_buffer_size(HandleRef jarg1, uint jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_activate_jitter_buffer")] public static extern int switch_rtp_activate_jitter_buffer(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4, uint jarg5, uint jarg6); @@ -16889,6 +17444,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_write_manual")] public static extern int switch_rtp_write_manual(HandleRef jarg1, HandleRef jarg2, uint jarg3, byte jarg4, byte jarg5, uint jarg6, HandleRef jarg7); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_write_raw")] + public static extern int switch_rtp_write_raw(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_get_ssrc")] public static extern uint switch_rtp_get_ssrc(HandleRef jarg1); @@ -16928,12 +17486,18 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_del_dtls")] public static extern int switch_rtp_del_dtls(HandleRef jarg1, int jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_dtls_state")] + public static extern int switch_rtp_dtls_state(HandleRef jarg1, int jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_has_dtls")] public static extern int switch_rtp_has_dtls(); [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_video_refresh")] public static extern void switch_rtp_video_refresh(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_video_loss")] + public static extern void switch_rtp_video_loss(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_data_set")] public static extern void switch_log_node_t_data_set(HandleRef jarg1, string jarg2); @@ -18956,6 +19520,16 @@ public class payload_map_t : IDisposable { } } + public string modname { + set { + freeswitchPINVOKE.payload_map_t_modname_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.payload_map_t_modname_get(swigCPtr); + return ret; + } + } + public byte pt { set { freeswitchPINVOKE.payload_map_t_pt_set(swigCPtr, value); @@ -19193,6 +19767,103 @@ public class profile_node_t : IDisposable { namespace FreeSWITCH.Native { +public enum rtcp_psfb_t { + RTCP_PSFB_PLI = 1, + RTCP_PSFB_SLI = 2, + RTCP_PSFB_RPSI = 3, + RTCP_PSFB_FIR = 4, + RTCP_PSFB_TSTR = 5, + RTCP_PSFB_TSTN = 6, + RTCP_PSFB_VBCM = 7, + RTCP_PSFB_PSLEI = 8, + RTCP_PSFB_AFB = 15 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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 rtcp_pt_t { + RTCP_PT_IJ = 195, + RTCP_PT_SR = 200, + RTCP_PT_RR = 201, + RTCP_PT_SDES = 202, + RTPC_PT_BYE = 203, + RTCP_PT_APP = 204, + RTCP_PT_RTPFB = 205, + RTCP_PT_PSFB = 206, + RTCP_PT_XR = 207, + RTCP_PT_AVB = 208, + RTCP_PT_RSI = 209, + RTCP_PT_TOKEN = 210, + RTCP_PT_IDMS = 211, + RTCP_PT_LAST = 255 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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 rtcp_rtpfb_t { + RTCP_RTPFB_NACK = 1, + RTCP_RTPFB_TMMBR = 3, + RTCP_RTPFB_TMMBN = 4, + RTCP_RTPFB_SR_REQ = 5, + RTCP_RTPFB_RAMS = 6, + RTCP_RTPFB_TLLEI = 7, + RTCP_RTPFB_ECN_FB = 8 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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 rtcp_sdes_t { + RTCP_SDES_END = 0, + RTCP_SDES_CNAME = 1, + RTCP_SDES_NAME = 2, + RTCP_SDES_EMAIL = 3, + RTCP_SDES_PHONE = 4, + RTCP_SDES_LOC = 5, + RTCP_SDES_TOOL = 6, + RTCP_SDES_NOTE = 7, + RTCP_SDES_PRIV = 8, + RTCP_SDES_H323 = 9, + RTCP_SDES_APSI = 10 +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + [System.Flags] public enum session_flag_t { S_HUP = (1 << 0), S_FREE = (1 << 1), @@ -20183,6 +20854,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_f_p_switch_codec_enum_switch_codec_control_command_t_enum_switch_codec_control_type_t_p_void_p_enum_switch_codec_control_type_t_p_p_void__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_codec_enum_switch_codec_control_command_t_enum_switch_codec_control_type_t_p_void_p_enum_switch_codec_control_type_t_p_p_void__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_codec_enum_switch_codec_control_command_t_enum_switch_codec_control_type_t_p_void_p_enum_switch_codec_control_type_t_p_p_void__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_codec_enum_switch_codec_control_command_t_enum_switch_codec_control_type_t_p_void_p_enum_switch_codec_control_type_t_p_p_void__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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 SWIGTYPE_p_f_p_switch_codec_p_switch_codec_p_void_unsigned_long_unsigned_long_p_void_p_unsigned_long_p_unsigned_long_p_unsigned_int__switch_status_t { private HandleRef swigCPtr; @@ -20213,6 +20914,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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 SWIGTYPE_p_f_p_switch_codec__switch_status_t { private HandleRef swigCPtr; @@ -21293,6 +22024,66 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame_enum_switch_video_read_flag_t__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame_enum_switch_video_read_flag_t__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame_enum_switch_video_read_flag_t__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame_enum_switch_video_read_flag_t__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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 SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame__switch_status_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame__switch_status_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame__switch_status_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame__switch_status_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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 SWIGTYPE_p_f_p_switch_file_handle_p_unsigned_int_long_long_int__switch_status_t { private HandleRef swigCPtr; @@ -22973,6 +23764,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_p_switch_frame_buffer_s { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_switch_frame_buffer_s(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_switch_frame_buffer_s() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_frame_buffer_s obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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 SWIGTYPE_p_p_switch_frame { private HandleRef swigCPtr; @@ -23543,6 +24364,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_p_unsigned_char { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_p_unsigned_char(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_unsigned_char() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_p_unsigned_char obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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 SWIGTYPE_p_p_void { private HandleRef swigCPtr; @@ -23933,6 +24784,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_switch_codec_control_type_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_codec_control_type_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_codec_control_type_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_codec_control_type_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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 SWIGTYPE_p_switch_core_port_allocator { private HandleRef swigCPtr; @@ -24053,6 +24934,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_switch_frame_buffer_s { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_frame_buffer_s(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_frame_buffer_s() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_frame_buffer_s obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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 SWIGTYPE_p_switch_hashtable { private HandleRef swigCPtr; @@ -24113,6 +25024,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_switch_image_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_image_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_image_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_image_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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 SWIGTYPE_p_switch_interval_time_t { private HandleRef swigCPtr; @@ -25169,7 +26110,10 @@ public enum switch_abc_type_t { SWITCH_ABC_TYPE_READ_PING, SWITCH_ABC_TYPE_TAP_NATIVE_READ, SWITCH_ABC_TYPE_TAP_NATIVE_WRITE, - SWITCH_ABC_TYPE_CLOSE + SWITCH_ABC_TYPE_CLOSE, + SWITCH_ABC_TYPE_READ_VIDEO_PING, + SWITCH_ABC_TYPE_STREAM_VIDEO_PING, + SWITCH_ABC_TYPE_VIDEO_PATCH } } @@ -26141,6 +27085,65 @@ public class switch_asr_interface : IDisposable { namespace FreeSWITCH.Native { +using System; +using System.Runtime.InteropServices; + +public class switch_audio_codec_settings : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_audio_codec_settings(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_audio_codec_settings obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_audio_codec_settings() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_audio_codec_settings(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public int unused { + set { + freeswitchPINVOKE.switch_audio_codec_settings_unused_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_audio_codec_settings_unused_get(swigCPtr); + return ret; + } + } + + public switch_audio_codec_settings() : this(freeswitchPINVOKE.new_switch_audio_codec_settings(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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_audio_col_t { SWITCH_AUDIO_COL_STR_TITLE = 0x01, SWITCH_AUDIO_COL_STR_COPYRIGHT = 0x02, @@ -27897,8 +28900,8 @@ public enum switch_channel_flag_t { CF_REINVITE, CF_AUTOFLUSH_DURING_BRIDGE, CF_RTP_NOTIMER_DURING_BRIDGE, - CF_WEBRTC, - CF_WEBRTC_MOZ, + CF_AVPF, + CF_AVPF_MOZ, CF_ICE, CF_DTLS, CF_VERBOSE_SDP, @@ -27907,6 +28910,7 @@ public enum switch_channel_flag_t { CF_VIDEO_PASSIVE, CF_NOVIDEO, CF_VIDEO_ECHO, + CF_VIDEO_BLANK, CF_SLA_INTERCEPT, CF_VIDEO_BREAK, CF_AUDIO_PAUSE, @@ -27914,6 +28918,12 @@ public enum switch_channel_flag_t { CF_BYPASS_MEDIA_AFTER_HOLD, CF_HANGUP_HELD, CF_CONFERENCE_RESET_MEDIA, + CF_VIDEO_DECODED_READ, + CF_VIDEO_DEBUG_READ, + CF_VIDEO_DEBUG_WRITE, + CF_VIDEO_ONLY, + CF_VIDEO_READY, + CF_VIDEO_MIRROR_INPUT, CF_FLAG_MAX } @@ -28451,6 +29461,40 @@ public class switch_chat_interface : IDisposable { namespace FreeSWITCH.Native { +public enum switch_codec_control_command_t { + SCC_VIDEO_REFRESH = 0, + SCC_VIDEO_BANDWIDTH, + SCC_VIDEO_RESET +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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_codec_control_type_t { + SCCT_NONE = 0, + SCCT_STRING, + SCCT_INT +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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; @@ -28947,6 +29991,39 @@ public class switch_codec_implementation : IDisposable { } } + public SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t encode_video { + set { + freeswitchPINVOKE.switch_codec_implementation_encode_video_set(swigCPtr, SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_encode_video_get(swigCPtr); + SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t decode_video { + set { + freeswitchPINVOKE.switch_codec_implementation_decode_video_set(swigCPtr, SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_decode_video_get(swigCPtr); + SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_codec_p_switch_frame__switch_status_t(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_f_p_switch_codec_enum_switch_codec_control_command_t_enum_switch_codec_control_type_t_p_void_p_enum_switch_codec_control_type_t_p_p_void__switch_status_t codec_control { + set { + freeswitchPINVOKE.switch_codec_implementation_codec_control_set(swigCPtr, SWIGTYPE_p_f_p_switch_codec_enum_switch_codec_control_command_t_enum_switch_codec_control_type_t_p_void_p_enum_switch_codec_control_type_t_p_p_void__switch_status_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_implementation_codec_control_get(swigCPtr); + SWIGTYPE_p_f_p_switch_codec_enum_switch_codec_control_command_t_enum_switch_codec_control_type_t_p_void_p_enum_switch_codec_control_type_t_p_p_void__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_codec_enum_switch_codec_control_command_t_enum_switch_codec_control_type_t_p_void_p_enum_switch_codec_control_type_t_p_p_void__switch_status_t(cPtr, false); + return ret; + } + } + public SWIGTYPE_p_f_p_switch_codec__switch_status_t destroy { set { freeswitchPINVOKE.switch_codec_implementation_destroy_set(swigCPtr, SWIGTYPE_p_f_p_switch_codec__switch_status_t.getCPtr(value)); @@ -28978,6 +30055,16 @@ public class switch_codec_implementation : IDisposable { } } + public string modname { + set { + freeswitchPINVOKE.switch_codec_implementation_modname_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_codec_implementation_modname_get(swigCPtr); + return ret; + } + } + public switch_codec_implementation next { set { freeswitchPINVOKE.switch_codec_implementation_next_set(swigCPtr, switch_codec_implementation.getCPtr(value)); @@ -29112,6 +30199,16 @@ public class switch_codec_interface : IDisposable { } } + public string modname { + set { + freeswitchPINVOKE.switch_codec_interface_modname_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_codec_interface_modname_get(swigCPtr); + return ret; + } + } + public switch_loadable_module_interface parent { set { freeswitchPINVOKE.switch_codec_interface_parent_set(swigCPtr, switch_loadable_module_interface.getCPtr(value)); @@ -29183,12 +30280,24 @@ public class switch_codec_settings : IDisposable { } } - public int unused { + public switch_audio_codec_settings audio { set { - freeswitchPINVOKE.switch_codec_settings_unused_set(swigCPtr, value); + freeswitchPINVOKE.switch_codec_settings_audio_set(swigCPtr, switch_audio_codec_settings.getCPtr(value)); } get { - int ret = freeswitchPINVOKE.switch_codec_settings_unused_get(swigCPtr); + IntPtr cPtr = freeswitchPINVOKE.switch_codec_settings_audio_get(swigCPtr); + switch_audio_codec_settings ret = (cPtr == IntPtr.Zero) ? null : new switch_audio_codec_settings(cPtr, false); + return ret; + } + } + + public switch_video_codec_settings video { + set { + freeswitchPINVOKE.switch_codec_settings_video_set(swigCPtr, switch_video_codec_settings.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_codec_settings_video_get(swigCPtr); + switch_video_codec_settings ret = (cPtr == IntPtr.Zero) ? null : new switch_video_codec_settings(cPtr, false); return ret; } } @@ -31202,6 +32311,46 @@ public class switch_directories : IDisposable { } } + public string fonts_dir { + set { + freeswitchPINVOKE.switch_directories_fonts_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_fonts_dir_get(swigCPtr); + return ret; + } + } + + public string images_dir { + set { + freeswitchPINVOKE.switch_directories_images_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_images_dir_get(swigCPtr); + return ret; + } + } + + public string data_dir { + set { + freeswitchPINVOKE.switch_directories_data_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_data_dir_get(swigCPtr); + return ret; + } + } + + public string localstate_dir { + set { + freeswitchPINVOKE.switch_directories_localstate_dir_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_directories_localstate_dir_get(swigCPtr); + return ret; + } + } + public switch_directories() : this(freeswitchPINVOKE.new_switch_directories(), true) { } @@ -32218,7 +33367,8 @@ namespace FreeSWITCH.Native { SWITCH_FILE_WRITE_APPEND = (1 << 15), SWITCH_FILE_WRITE_OVER = (1 << 16), SWITCH_FILE_NOMUX = (1 << 17), - SWITCH_FILE_BREAK_ON_CHANGE = (1 << 18) + SWITCH_FILE_BREAK_ON_CHANGE = (1 << 18), + SWITCH_FILE_FLAG_VIDEO = (1 << 19) } } @@ -32727,6 +33877,37 @@ public class switch_file_handle : IDisposable { } } + public string stream_name { + set { + freeswitchPINVOKE.switch_file_handle_stream_name_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_file_handle_stream_name_get(swigCPtr); + return ret; + } + } + + public string modname { + set { + freeswitchPINVOKE.switch_file_handle_modname_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_file_handle_modname_get(swigCPtr); + return ret; + } + } + + public switch_mm_t mm { + set { + freeswitchPINVOKE.switch_file_handle_mm_set(swigCPtr, switch_mm_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_mm_get(swigCPtr); + switch_mm_t ret = (cPtr == IntPtr.Zero) ? null : new switch_mm_t(cPtr, false); + return ret; + } + } + public switch_file_handle() : this(freeswitchPINVOKE.new_switch_file_handle(), true) { } @@ -32841,24 +34022,24 @@ public class switch_file_interface : IDisposable { } } - public SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t file_read_video { + public SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame_enum_switch_video_read_flag_t__switch_status_t file_read_video { set { - freeswitchPINVOKE.switch_file_interface_file_read_video_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t.getCPtr(value)); + freeswitchPINVOKE.switch_file_interface_file_read_video_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame_enum_switch_video_read_flag_t__switch_status_t.getCPtr(value)); } get { IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_read_video_get(swigCPtr); - SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t(cPtr, false); + SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame_enum_switch_video_read_flag_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame_enum_switch_video_read_flag_t__switch_status_t(cPtr, false); return ret; } } - public SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t file_write_video { + public SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame__switch_status_t file_write_video { set { - freeswitchPINVOKE.switch_file_interface_file_write_video_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t.getCPtr(value)); + freeswitchPINVOKE.switch_file_interface_file_write_video_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame__switch_status_t.getCPtr(value)); } get { IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_write_video_get(swigCPtr); - SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_void_p_switch_size_t__switch_status_t(cPtr, false); + SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_p_switch_frame__switch_status_t(cPtr, false); return ret; } } @@ -33191,14 +34372,12 @@ public class switch_frame : IDisposable { } } - public SWIGTYPE_p_switch_size_t timestamp { + public uint timestamp { set { - freeswitchPINVOKE.switch_frame_timestamp_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + freeswitchPINVOKE.switch_frame_timestamp_set(swigCPtr, value); } get { - SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_frame_timestamp_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + uint ret = freeswitchPINVOKE.switch_frame_timestamp_get(swigCPtr); return ret; } } @@ -33265,6 +34444,17 @@ public class switch_frame : IDisposable { } } + public SWIGTYPE_p_switch_image_t img { + set { + freeswitchPINVOKE.switch_frame_img_set(swigCPtr, SWIGTYPE_p_switch_image_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_frame_img_get(swigCPtr); + SWIGTYPE_p_switch_image_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_image_t(cPtr, false); + return ret; + } + } + public switch_frame() : this(freeswitchPINVOKE.new_switch_frame(), true) { } @@ -33293,7 +34483,14 @@ namespace FreeSWITCH.Native { SFF_ZRTP = (1 << 7), SFF_UDPTL_PACKET = (1 << 8), SFF_NOT_AUDIO = (1 << 9), - SFF_RTCP = (1 << 10) + SFF_RTCP = (1 << 10), + SFF_MARKER = (1 << 11), + SFF_WAIT_KEY_FRAME = (1 << 12), + SFF_RAW_RTP_PARSE_FRAME = (1 << 13), + SFF_PICTURE_RESET = (1 << 14), + SFF_SAME_IMAGE = (1 << 15), + SFF_USE_VIDEO_TIMESTAMP = (1 << 16), + SFF_ENCODED = (1 << 17) } } @@ -34843,7 +36040,8 @@ namespace FreeSWITCH.Native { [System.Flags] public enum switch_io_flag_enum_t { SWITCH_IO_FLAG_NONE = 0, SWITCH_IO_FLAG_NOBLOCK = (1 << 0), - SWITCH_IO_FLAG_SINGLE_READ = (1 << 1) + SWITCH_IO_FLAG_SINGLE_READ = (1 << 1), + SWITCH_IO_FLAG_FORCE = (1 << 2) } } @@ -35074,6 +36272,22 @@ public class switch_io_routines : IDisposable { namespace FreeSWITCH.Native { +public enum switch_io_type_t { + SWITCH_IO_READ, + SWITCH_IO_WRITE +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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_ivr_action_t { SWITCH_IVR_ACTION_DIE, SWITCH_IVR_ACTION_EXECMENU, @@ -36266,7 +37480,11 @@ namespace FreeSWITCH.Native { SMBF_TAP_NATIVE_READ = (1 << 13), SMBF_TAP_NATIVE_WRITE = (1 << 14), SMBF_ONE_ONLY = (1 << 15), - SMBF_MASK = (1 << 16) + SMBF_MASK = (1 << 16), + SMBF_READ_VIDEO_PING = (1 << 17), + SMBF_READ_VIDEO_STREAM = (1 << 18), + SMBF_WRITE_VIDEO_STREAM = (1 << 19), + SMBF_VIDEO_PATCH = (1 << 20) } } @@ -36306,6 +37524,24 @@ namespace FreeSWITCH.Native { namespace FreeSWITCH.Native { +public enum switch_media_flow_t { + SWITCH_MEDIA_FLOW_SENDRECV = 0, + SWITCH_MEDIA_FLOW_SENDONLY, + SWITCH_MEDIA_FLOW_RECVONLY, + SWITCH_MEDIA_FLOW_INACTIVE +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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_media_type_t { SWITCH_MEDIA_TYPE_AUDIO, SWITCH_MEDIA_TYPE_VIDEO @@ -36322,6 +37558,145 @@ public enum switch_media_type_t { namespace FreeSWITCH.Native { +using System; +using System.Runtime.InteropServices; + +public class switch_mm_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_mm_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_mm_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_mm_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_mm_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public int samplerate { + set { + freeswitchPINVOKE.switch_mm_t_samplerate_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_mm_t_samplerate_get(swigCPtr); + return ret; + } + } + + public int channels { + set { + freeswitchPINVOKE.switch_mm_t_channels_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_mm_t_channels_get(swigCPtr); + return ret; + } + } + + public int keyint { + set { + freeswitchPINVOKE.switch_mm_t_keyint_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_mm_t_keyint_get(swigCPtr); + return ret; + } + } + + public int ab { + set { + freeswitchPINVOKE.switch_mm_t_ab_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_mm_t_ab_get(swigCPtr); + return ret; + } + } + + public int vb { + set { + freeswitchPINVOKE.switch_mm_t_vb_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_mm_t_vb_get(swigCPtr); + return ret; + } + } + + public int vw { + set { + freeswitchPINVOKE.switch_mm_t_vw_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_mm_t_vw_get(swigCPtr); + return ret; + } + } + + public int vh { + set { + freeswitchPINVOKE.switch_mm_t_vh_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_mm_t_vh_get(swigCPtr); + return ret; + } + } + + public float fps { + set { + freeswitchPINVOKE.switch_mm_t_fps_set(swigCPtr, value); + } + get { + float ret = freeswitchPINVOKE.switch_mm_t_fps_get(swigCPtr); + return ret; + } + } + + public int vbuf { + set { + freeswitchPINVOKE.switch_mm_t_vbuf_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_mm_t_vbuf_get(swigCPtr); + return ret; + } + } + + public switch_mm_t() : this(freeswitchPINVOKE.new_switch_mm_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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_module_flag_enum_t { SMODF_NONE = 0, SMODF_GLOBAL_SYMBOLS = (1 << 0) @@ -36390,6 +37765,97 @@ namespace FreeSWITCH.Native { namespace FreeSWITCH.Native { +using System; +using System.Runtime.InteropServices; + +public class switch_picture : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_picture(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_picture obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_picture() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_picture(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint width { + set { + freeswitchPINVOKE.switch_picture_width_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_picture_width_get(swigCPtr); + return ret; + } + } + + public uint height { + set { + freeswitchPINVOKE.switch_picture_height_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_picture_height_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_p_unsigned_char planes { + set { + freeswitchPINVOKE.switch_picture_planes_set(swigCPtr, SWIGTYPE_p_p_unsigned_char.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_picture_planes_get(swigCPtr); + SWIGTYPE_p_p_unsigned_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_unsigned_char(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_unsigned_long stride { + set { + freeswitchPINVOKE.switch_picture_stride_set(swigCPtr, SWIGTYPE_p_unsigned_long.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_picture_stride_get(swigCPtr); + SWIGTYPE_p_unsigned_long ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_long(cPtr, false); + return ret; + } + } + + public switch_picture() : this(freeswitchPINVOKE.new_switch_picture(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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_poll_t { SWITCH_POLL_READ = (1 << 0), SWITCH_POLL_WRITE = (1 << 1), @@ -36839,6 +38305,85 @@ public class switch_rtcp_numbers_t : IDisposable { namespace FreeSWITCH.Native { +using System; +using System.Runtime.InteropServices; + +public class switch_rtcp_sdes_unit_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_rtcp_sdes_unit_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_rtcp_sdes_unit_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_rtcp_sdes_unit_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_rtcp_sdes_unit_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public byte type { + set { + freeswitchPINVOKE.switch_rtcp_sdes_unit_t_type_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_rtcp_sdes_unit_t_type_get(swigCPtr); + return ret; + } + } + + public byte length { + set { + freeswitchPINVOKE.switch_rtcp_sdes_unit_t_length_set(swigCPtr, value); + } + get { + byte ret = freeswitchPINVOKE.switch_rtcp_sdes_unit_t_length_get(swigCPtr); + return ret; + } + } + + public string value { + set { + freeswitchPINVOKE.switch_rtcp_sdes_unit_t_value_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_rtcp_sdes_unit_t_value_get(swigCPtr); + return ret; + } + } + + public switch_rtcp_sdes_unit_t() : this(freeswitchPINVOKE.new_switch_rtcp_sdes_unit_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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_rtp_bug_flag_t { RTP_BUG_NONE = 0, RTP_BUG_CISCO_SKIP_MARK_BIT_2833 = (1 << 0), @@ -37054,6 +38599,7 @@ public enum switch_rtp_flag_t { SWITCH_RTP_FLAG_PLI, SWITCH_RTP_FLAG_RESET, SWITCH_RTP_FLAG_MUTE, + SWITCH_RTP_FLAG_NACK, SWITCH_RTP_FLAG_INVALID } @@ -37672,6 +39218,76 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class switch_rtp_packet_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_rtp_packet_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_rtp_packet_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_rtp_packet_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_rtp_packet_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public switch_rtp_hdr_t header { + set { + freeswitchPINVOKE.switch_rtp_packet_t_header_set(swigCPtr, switch_rtp_hdr_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_packet_t_header_get(swigCPtr); + switch_rtp_hdr_t ret = (cPtr == IntPtr.Zero) ? null : new switch_rtp_hdr_t(cPtr, false); + return ret; + } + } + + public string body { + set { + freeswitchPINVOKE.switch_rtp_packet_t_body_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_rtp_packet_t_body_get(swigCPtr); + return ret; + } + } + + public switch_rtp_packet_t() : this(freeswitchPINVOKE.new_switch_rtp_packet_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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_rtp_stats_t : IDisposable { private HandleRef swigCPtr; protected bool swigCMemOwn; @@ -37761,6 +39377,22 @@ public class switch_rtp_stats_t : IDisposable { namespace FreeSWITCH.Native { +public enum switch_rw_t { + SWITCH_RW_READ, + SWITCH_RW_WRITE +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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; @@ -40548,6 +42180,170 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class switch_video_codec_settings : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_video_codec_settings(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_video_codec_settings obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_video_codec_settings() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_video_codec_settings(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint bandwidth { + set { + freeswitchPINVOKE.switch_video_codec_settings_bandwidth_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_video_codec_settings_bandwidth_get(swigCPtr); + return ret; + } + } + + public int width { + set { + freeswitchPINVOKE.switch_video_codec_settings_width_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_video_codec_settings_width_get(swigCPtr); + return ret; + } + } + + public int height { + set { + freeswitchPINVOKE.switch_video_codec_settings_height_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_video_codec_settings_height_get(swigCPtr); + return ret; + } + } + + public switch_video_codec_settings() : this(freeswitchPINVOKE.new_switch_video_codec_settings(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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_video_read_flag_t { + SVR_BLOCK = (1 << 0), + SVR_FLUSH = (1 << 1) +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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_vid_params_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal switch_vid_params_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(switch_vid_params_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~switch_vid_params_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_switch_vid_params_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public int width { + set { + freeswitchPINVOKE.switch_vid_params_t_width_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_vid_params_t_width_get(swigCPtr); + return ret; + } + } + + public int height { + set { + freeswitchPINVOKE.switch_vid_params_t_height_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_vid_params_t_height_get(swigCPtr); + return ret; + } + } + + public switch_vid_params_t() : this(freeswitchPINVOKE.new_switch_vid_params_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * 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_waitlist_t : IDisposable { private HandleRef swigCPtr; protected bool swigCMemOwn;