From 8558037a4270203f3796220dd336f492fa694ace Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Thu, 1 Jun 2017 17:56:01 -0500 Subject: [PATCH] swigall --- .../src/org/freeswitch/swig/CoreSession.java | 4 + .../org/freeswitch/swig/freeswitchJNI.java | 1 + .../languages/mod_java/switch_swig_wrap.cpp | 22 + src/mod/languages/mod_lua/mod_lua_wrap.cpp | 28 + .../languages/mod_managed/freeswitch_wrap.cxx | 972 ++++++++++++------ src/mod/languages/mod_managed/managed/swig.cs | 427 ++++++-- src/mod/languages/mod_perl/freeswitch.pm | 1 + src/mod/languages/mod_perl/mod_perl_wrap.cpp | 40 + src/mod/languages/mod_python/freeswitch.py | 1 + .../languages/mod_python/mod_python_wrap.cpp | 35 + 10 files changed, 1084 insertions(+), 447 deletions(-) diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java index addf2b8385..ac70d8cd8c 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java @@ -126,6 +126,10 @@ public class CoreSession { return freeswitchJNI.CoreSession_answer(swigCPtr, this); } + public int print(String txt) { + return freeswitchJNI.CoreSession_print(swigCPtr, this, txt); + } + public int preAnswer() { return freeswitchJNI.CoreSession_preAnswer(swigCPtr, this); } diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java index 1b94de81d6..01149a2b61 100644 --- a/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java @@ -113,6 +113,7 @@ public class freeswitchJNI { public final static native String CoreSession_voice_name_get(long jarg1, CoreSession jarg1_); public final static native int CoreSession_insertFile(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, int jarg4); public final static native int CoreSession_answer(long jarg1, CoreSession jarg1_); + public final static native int CoreSession_print(long jarg1, CoreSession jarg1_, String jarg2); public final static native int CoreSession_preAnswer(long jarg1, CoreSession jarg1_); public final static native void CoreSession_hangup(long jarg1, CoreSession jarg1_, String jarg2); public final static native void CoreSession_hangupState(long jarg1, CoreSession jarg1_); diff --git a/src/mod/languages/mod_java/switch_swig_wrap.cpp b/src/mod/languages/mod_java/switch_swig_wrap.cpp index 28583861bc..81a8155856 100644 --- a/src/mod/languages/mod_java/switch_swig_wrap.cpp +++ b/src/mod/languages/mod_java/switch_swig_wrap.cpp @@ -2166,6 +2166,28 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answ } +SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1print(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CoreSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->print(arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1preAnswer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jint jresult = 0 ; CoreSession *arg1 = (CoreSession *) 0 ; diff --git a/src/mod/languages/mod_lua/mod_lua_wrap.cpp b/src/mod/languages/mod_lua/mod_lua_wrap.cpp index 5e1aede89b..c015445894 100644 --- a/src/mod/languages/mod_lua/mod_lua_wrap.cpp +++ b/src/mod/languages/mod_lua/mod_lua_wrap.cpp @@ -4967,6 +4967,33 @@ fail: } +static int _wrap_CoreSession_print(lua_State* L) { + int SWIG_arg = 0; + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + SWIG_check_num_args("CoreSession::print",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::print",1,"CoreSession *"); + if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::print",2,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_print",1,SWIGTYPE_p_CoreSession); + } + + arg2 = (char *)lua_tostring(L, 2); + result = (int)(arg1)->print(arg2); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + static int _wrap_CoreSession_preAnswer(lua_State* L) { int SWIG_arg = 0; CoreSession *arg1 = (CoreSession *) 0 ; @@ -6658,6 +6685,7 @@ delete arg1; static swig_lua_method swig_CoreSession_methods[] = { {"insertFile", _wrap_CoreSession_insertFile}, {"answer", _wrap_CoreSession_answer}, + {"print", _wrap_CoreSession_print}, {"preAnswer", _wrap_CoreSession_preAnswer}, {"hangup", _wrap_CoreSession_hangup}, {"hangupState", _wrap_CoreSession_hangupState}, diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index 1050a9f017..482f381e66 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -1984,7 +1984,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_RTCP_AUDIO_INTERVAL_MSEC_get() { char * jresult ; char *result = 0 ; - result = (char *)("5000"); + result = (char *)("1000"); jresult = SWIG_csharp_string_callback((const char *)result); return jresult; } @@ -1994,7 +1994,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_RTCP_VIDEO_INTERVAL_MSEC_get() { char * jresult ; char *result = 0 ; - result = (char *)("2000"); + result = (char *)("1000"); jresult = SWIG_csharp_string_callback((const char *)result); return jresult; } @@ -5734,6 +5734,50 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_vid_params_t_fps_get(void * j } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_vid_params_t_d_width_set(void * jarg1, unsigned long jarg2) { + switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_vid_params_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->d_width = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_vid_params_t_d_width_get(void * jarg1) { + unsigned long jresult ; + switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ; + uint32_t result; + + arg1 = (switch_vid_params_s *)jarg1; + result = (uint32_t) ((arg1)->d_width); + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_vid_params_t_d_height_set(void * jarg1, unsigned long jarg2) { + switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_vid_params_s *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->d_height = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_vid_params_t_d_height_get(void * jarg1) { + unsigned long jresult ; + switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ; + uint32_t result; + + arg1 = (switch_vid_params_s *)jarg1; + result = (uint32_t) ((arg1)->d_height); + jresult = (unsigned long)result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_vid_params_t() { void * jresult ; switch_vid_params_s *result = 0 ; @@ -7204,6 +7248,464 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_waitlist_t(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_cbr_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)->cbr = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_cbr_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int result; + + arg1 = (switch_mm_s *)jarg1; + result = (int) ((arg1)->cbr); + 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_source_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)->source_fps = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_switch_mm_t_source_fps_get(void * jarg1) { + float jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + float result; + + arg1 = (switch_mm_s *)jarg1; + result = (float) ((arg1)->source_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_switch_mm_t_vprofile_set(void * jarg1, int jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + switch_video_profile_t arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (switch_video_profile_t)jarg2; + if (arg1) (arg1)->vprofile = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_vprofile_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + switch_video_profile_t result; + + arg1 = (switch_mm_s *)jarg1; + result = (switch_video_profile_t) ((arg1)->vprofile); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_vencspd_set(void * jarg1, int jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + switch_video_encode_speed_t arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (switch_video_encode_speed_t)jarg2; + if (arg1) (arg1)->vencspd = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_vencspd_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + switch_video_encode_speed_t result; + + arg1 = (switch_mm_s *)jarg1; + result = (switch_video_encode_speed_t) ((arg1)->vencspd); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_try_hardware_encoder_set(void * jarg1, unsigned char jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + uint8_t arg2 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (uint8_t)jarg2; + if (arg1) (arg1)->try_hardware_encoder = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_mm_t_try_hardware_encoder_get(void * jarg1) { + unsigned char jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + uint8_t result; + + arg1 = (switch_mm_s *)jarg1; + result = (uint8_t) ((arg1)->try_hardware_encoder); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_scale_w_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)->scale_w = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_scale_w_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int result; + + arg1 = (switch_mm_s *)jarg1; + result = (int) ((arg1)->scale_w); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_scale_h_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)->scale_h = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_scale_h_get(void * jarg1) { + int jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + int result; + + arg1 = (switch_mm_s *)jarg1; + result = (int) ((arg1)->scale_h); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_fmt_set(void * jarg1, void * jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + switch_img_fmt_t arg2 ; + switch_img_fmt_t *argp2 ; + + arg1 = (switch_mm_s *)jarg1; + argp2 = (switch_img_fmt_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_img_fmt_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->fmt = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_mm_t_fmt_get(void * jarg1) { + void * jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + switch_img_fmt_t result; + + arg1 = (switch_mm_s *)jarg1; + result = ((arg1)->fmt); + jresult = new switch_img_fmt_t((const switch_img_fmt_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_auth_username_set(void * jarg1, char * jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->auth_username; + if (arg2) { + arg1->auth_username = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->auth_username, (const char *)arg2); + } else { + arg1->auth_username = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_mm_t_auth_username_get(void * jarg1) { + char * jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_mm_s *)jarg1; + result = (char *) ((arg1)->auth_username); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_auth_password_set(void * jarg1, char * jarg2) { + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_mm_s *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->auth_password; + if (arg2) { + arg1->auth_password = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->auth_password, (const char *)arg2); + } else { + arg1->auth_password = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_mm_t_auth_password_get(void * jarg1) { + char * jresult ; + switch_mm_s *arg1 = (switch_mm_s *) 0 ; + char *result = 0 ; + + arg1 = (switch_mm_s *)jarg1; + result = (char *) ((arg1)->auth_password); + jresult = SWIG_csharp_string_callback((const char *)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 int SWIGSTDCALL CSharp_switch_core_db_close(void * jarg1) { int jresult ; switch_core_db_t *arg1 = (switch_core_db_t *) 0 ; @@ -10990,6 +11492,26 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_session(void * ja } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_set_media_params(void * jarg1, void * jarg2) { + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_mm_t *arg2 = (switch_mm_t *) 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + arg2 = (switch_mm_t *)jarg2; + switch_core_media_bug_set_media_params(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_get_media_params(void * jarg1, void * jarg2) { + switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; + switch_mm_t *arg2 = (switch_mm_t *) 0 ; + + arg1 = (switch_media_bug_t *)jarg1; + arg2 = (switch_mm_t *)jarg2; + switch_core_media_bug_get_media_params(arg1,arg2); +} + + SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_media_bug_test_flag(void * jarg1, unsigned long jarg2) { unsigned long jresult ; switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ; @@ -11092,13 +11614,15 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_remove_callback(void * j } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_close(void * jarg1) { +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_media_bug_close(void * jarg1, int jarg2) { int jresult ; switch_media_bug_t **arg1 = (switch_media_bug_t **) 0 ; + switch_bool_t arg2 ; switch_status_t result; arg1 = (switch_media_bug_t **)jarg1; - result = (switch_status_t)switch_core_media_bug_close(arg1); + arg2 = (switch_bool_t)jarg2; + result = (switch_status_t)switch_core_media_bug_close(arg1,arg2); jresult = result; return jresult; } @@ -12862,6 +13386,34 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_dequeue_private_event(void } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_transcoding(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_core_session_t *arg2 = (switch_core_session_t *) 0 ; + switch_media_type_t arg3 ; + switch_bool_t result; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_core_session_t *)jarg2; + arg3 = (switch_media_type_t)jarg3; + result = (switch_bool_t)switch_core_session_transcoding(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_passthru(void * jarg1, int jarg2, int jarg3) { + switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; + switch_media_type_t arg2 ; + switch_bool_t arg3 ; + + arg1 = (switch_core_session_t *)jarg1; + arg2 = (switch_media_type_t)jarg2; + arg3 = (switch_bool_t)jarg3; + switch_core_session_passthru(arg1,arg2,arg3); +} + + SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_flush_private_events(void * jarg1) { unsigned long jresult ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; @@ -16829,18 +17381,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_stream_system_fork(char * jarg1, void * } -SWIGEXPORT int SWIGSTDCALL CSharp_switch_ice_direction(void * jarg1) { - int jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - switch_call_direction_t result; - - arg1 = (switch_core_session_t *)jarg1; - result = (switch_call_direction_t)switch_ice_direction(arg1); - jresult = result; - return jresult; -} - - SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_debug_pool(void * jarg1) { switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ; @@ -24222,6 +24762,28 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_timer_samplecount_get(void * } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_last_samplecount_set(void * jarg1, unsigned long jarg2) { + switch_timer *arg1 = (switch_timer *) 0 ; + uint32_t arg2 ; + + arg1 = (switch_timer *)jarg1; + arg2 = (uint32_t)jarg2; + if (arg1) (arg1)->last_samplecount = arg2; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_timer_last_samplecount_get(void * jarg1) { + unsigned long jresult ; + switch_timer *arg1 = (switch_timer *) 0 ; + uint32_t result; + + arg1 = (switch_timer *)jarg1; + result = (uint32_t) ((arg1)->last_samplecount); + jresult = (unsigned long)result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_timer_timer_interface_set(void * jarg1, void * jarg2) { switch_timer *arg1 = (switch_timer *) 0 ; switch_timer_interface_t *arg2 = (switch_timer_interface_t *) 0 ; @@ -25273,332 +25835,6 @@ 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_cbr_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)->cbr = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_cbr_get(void * jarg1) { - int jresult ; - switch_mm_s *arg1 = (switch_mm_s *) 0 ; - int result; - - arg1 = (switch_mm_s *)jarg1; - result = (int) ((arg1)->cbr); - 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_source_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)->source_fps = arg2; -} - - -SWIGEXPORT float SWIGSTDCALL CSharp_switch_mm_t_source_fps_get(void * jarg1) { - float jresult ; - switch_mm_s *arg1 = (switch_mm_s *) 0 ; - float result; - - arg1 = (switch_mm_s *)jarg1; - result = (float) ((arg1)->source_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_switch_mm_t_vprofile_set(void * jarg1, int jarg2) { - switch_mm_s *arg1 = (switch_mm_s *) 0 ; - switch_video_profile_t arg2 ; - - arg1 = (switch_mm_s *)jarg1; - arg2 = (switch_video_profile_t)jarg2; - if (arg1) (arg1)->vprofile = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_vprofile_get(void * jarg1) { - int jresult ; - switch_mm_s *arg1 = (switch_mm_s *) 0 ; - switch_video_profile_t result; - - arg1 = (switch_mm_s *)jarg1; - result = (switch_video_profile_t) ((arg1)->vprofile); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_vencspd_set(void * jarg1, int jarg2) { - switch_mm_s *arg1 = (switch_mm_s *) 0 ; - switch_video_encode_speed_t arg2 ; - - arg1 = (switch_mm_s *)jarg1; - arg2 = (switch_video_encode_speed_t)jarg2; - if (arg1) (arg1)->vencspd = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_mm_t_vencspd_get(void * jarg1) { - int jresult ; - switch_mm_s *arg1 = (switch_mm_s *) 0 ; - switch_video_encode_speed_t result; - - arg1 = (switch_mm_s *)jarg1; - result = (switch_video_encode_speed_t) ((arg1)->vencspd); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_mm_t_try_hardware_encoder_set(void * jarg1, unsigned char jarg2) { - switch_mm_s *arg1 = (switch_mm_s *) 0 ; - uint8_t arg2 ; - - arg1 = (switch_mm_s *)jarg1; - arg2 = (uint8_t)jarg2; - if (arg1) (arg1)->try_hardware_encoder = arg2; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_switch_mm_t_try_hardware_encoder_get(void * jarg1) { - unsigned char jresult ; - switch_mm_s *arg1 = (switch_mm_s *) 0 ; - uint8_t result; - - arg1 = (switch_mm_s *)jarg1; - result = (uint8_t) ((arg1)->try_hardware_encoder); - 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 ; @@ -40413,6 +40649,58 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_rtp_packet_t_body_get(void * jarg1) } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_packet_t_ext_set(void * jarg1, void * jarg2) { + switch_rtp_packet_t *arg1 = (switch_rtp_packet_t *) 0 ; + switch_rtp_hdr_ext_t *arg2 = (switch_rtp_hdr_ext_t *) 0 ; + + arg1 = (switch_rtp_packet_t *)jarg1; + arg2 = (switch_rtp_hdr_ext_t *)jarg2; + if (arg1) (arg1)->ext = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_packet_t_ext_get(void * jarg1) { + void * jresult ; + switch_rtp_packet_t *arg1 = (switch_rtp_packet_t *) 0 ; + switch_rtp_hdr_ext_t *result = 0 ; + + arg1 = (switch_rtp_packet_t *)jarg1; + result = (switch_rtp_hdr_ext_t *) ((arg1)->ext); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_packet_t_ebody_set(void * jarg1, char * jarg2) { + switch_rtp_packet_t *arg1 = (switch_rtp_packet_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_rtp_packet_t *)jarg1; + arg2 = (char *)jarg2; + { + delete [] arg1->ebody; + if (arg2) { + arg1->ebody = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->ebody, (const char *)arg2); + } else { + arg1->ebody = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_rtp_packet_t_ebody_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 *) ((arg1)->ebody); + 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 ; diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index 270f79eb58..76af70db73 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -1376,6 +1376,14 @@ else return ret; } + public static void switch_core_media_bug_set_media_params(SWIGTYPE_p_switch_media_bug bug, switch_mm_t mm) { + freeswitchPINVOKE.switch_core_media_bug_set_media_params(SWIGTYPE_p_switch_media_bug.getCPtr(bug), switch_mm_t.getCPtr(mm)); + } + + public static void switch_core_media_bug_get_media_params(SWIGTYPE_p_switch_media_bug bug, switch_mm_t mm) { + freeswitchPINVOKE.switch_core_media_bug_get_media_params(SWIGTYPE_p_switch_media_bug.getCPtr(bug), switch_mm_t.getCPtr(mm)); + } + public static uint switch_core_media_bug_test_flag(SWIGTYPE_p_switch_media_bug bug, uint flag) { uint ret = freeswitchPINVOKE.switch_core_media_bug_test_flag(SWIGTYPE_p_switch_media_bug.getCPtr(bug), flag); return ret; @@ -1415,8 +1423,8 @@ else return ret; } - public static switch_status_t switch_core_media_bug_close(SWIGTYPE_p_p_switch_media_bug bug) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_close(SWIGTYPE_p_p_switch_media_bug.getCPtr(bug)); + public static switch_status_t switch_core_media_bug_close(SWIGTYPE_p_p_switch_media_bug bug, switch_bool_t destroy) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_media_bug_close(SWIGTYPE_p_p_switch_media_bug.getCPtr(bug), (int)destroy); return ret; } @@ -2092,6 +2100,15 @@ else return ret; } + public static switch_bool_t switch_core_session_transcoding(SWIGTYPE_p_switch_core_session session_a, SWIGTYPE_p_switch_core_session session_b, switch_media_type_t type) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_session_transcoding(SWIGTYPE_p_switch_core_session.getCPtr(session_a), SWIGTYPE_p_switch_core_session.getCPtr(session_b), (int)type); + return ret; + } + + public static void switch_core_session_passthru(SWIGTYPE_p_switch_core_session session, switch_media_type_t type, switch_bool_t on) { + freeswitchPINVOKE.switch_core_session_passthru(SWIGTYPE_p_switch_core_session.getCPtr(session), (int)type, (int)on); + } + public static uint switch_core_session_flush_private_events(SWIGTYPE_p_switch_core_session session) { uint ret = freeswitchPINVOKE.switch_core_session_flush_private_events(SWIGTYPE_p_switch_core_session.getCPtr(session)); return ret; @@ -3413,11 +3430,6 @@ else return ret; } - public static switch_call_direction_t switch_ice_direction(SWIGTYPE_p_switch_core_session session) { - switch_call_direction_t ret = (switch_call_direction_t)freeswitchPINVOKE.switch_ice_direction(SWIGTYPE_p_switch_core_session.getCPtr(session)); - return ret; - } - public static void switch_core_session_debug_pool(switch_stream_handle stream) { freeswitchPINVOKE.switch_core_session_debug_pool(switch_stream_handle.getCPtr(stream)); } @@ -9421,6 +9433,18 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_fps_get")] public static extern uint switch_vid_params_t_fps_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_d_width_set")] + public static extern void switch_vid_params_t_d_width_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_d_width_get")] + public static extern uint switch_vid_params_t_d_width_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_d_height_set")] + public static extern void switch_vid_params_t_d_height_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_d_height_get")] + public static extern uint switch_vid_params_t_d_height_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_vid_params_t")] public static extern IntPtr new_switch_vid_params_t(); @@ -9814,6 +9838,126 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_waitlist_t")] public static extern void delete_switch_waitlist_t(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_cbr_set")] + public static extern void switch_mm_t_cbr_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_cbr_get")] + public static extern int switch_mm_t_cbr_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_source_fps_set")] + public static extern void switch_mm_t_source_fps_set(HandleRef jarg1, float jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_source_fps_get")] + public static extern float switch_mm_t_source_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_switch_mm_t_vprofile_set")] + public static extern void switch_mm_t_vprofile_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vprofile_get")] + public static extern int switch_mm_t_vprofile_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vencspd_set")] + public static extern void switch_mm_t_vencspd_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vencspd_get")] + public static extern int switch_mm_t_vencspd_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_try_hardware_encoder_set")] + public static extern void switch_mm_t_try_hardware_encoder_set(HandleRef jarg1, byte jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_try_hardware_encoder_get")] + public static extern byte switch_mm_t_try_hardware_encoder_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_scale_w_set")] + public static extern void switch_mm_t_scale_w_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_scale_w_get")] + public static extern int switch_mm_t_scale_w_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_scale_h_set")] + public static extern void switch_mm_t_scale_h_set(HandleRef jarg1, int jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_scale_h_get")] + public static extern int switch_mm_t_scale_h_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_fmt_set")] + public static extern void switch_mm_t_fmt_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_fmt_get")] + public static extern IntPtr switch_mm_t_fmt_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_auth_username_set")] + public static extern void switch_mm_t_auth_username_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_auth_username_get")] + public static extern string switch_mm_t_auth_username_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_auth_password_set")] + public static extern void switch_mm_t_auth_password_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_auth_password_get")] + public static extern string switch_mm_t_auth_password_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_core_db_close")] public static extern int switch_core_db_close(HandleRef jarg1); @@ -10762,6 +10906,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_session")] public static extern IntPtr switch_core_media_bug_get_session(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_set_media_params")] + public static extern void switch_core_media_bug_set_media_params(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_media_params")] + public static extern void switch_core_media_bug_get_media_params(HandleRef jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_test_flag")] public static extern uint switch_core_media_bug_test_flag(HandleRef jarg1, uint jarg2); @@ -10787,7 +10937,7 @@ class freeswitchPINVOKE { public static extern int switch_core_media_bug_remove_callback(HandleRef jarg1, HandleRef jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_close")] - public static extern int switch_core_media_bug_close(HandleRef jarg1); + public static extern int switch_core_media_bug_close(HandleRef jarg1, int jarg2); [DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_remove_all_function")] public static extern int switch_core_media_bug_remove_all_function(HandleRef jarg1, string jarg2); @@ -11185,6 +11335,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_dequeue_private_event")] public static extern int switch_core_session_dequeue_private_event(HandleRef jarg1, HandleRef jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_transcoding")] + public static extern int switch_core_session_transcoding(HandleRef jarg1, HandleRef jarg2, int jarg3); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_passthru")] + public static extern void switch_core_session_passthru(HandleRef jarg1, int jarg2, int jarg3); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_flush_private_events")] public static extern uint switch_core_session_flush_private_events(HandleRef jarg1); @@ -12085,9 +12241,6 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_stream_system_fork")] public static extern int switch_stream_system_fork(string jarg1, HandleRef jarg2); - [DllImport("mod_managed", EntryPoint="CSharp_switch_ice_direction")] - public static extern int switch_ice_direction(HandleRef jarg1); - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_debug_pool")] public static extern void switch_core_session_debug_pool(HandleRef jarg1); @@ -13825,6 +13978,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_samplecount_get")] public static extern uint switch_timer_samplecount_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_last_samplecount_set")] + public static extern void switch_timer_last_samplecount_set(HandleRef jarg1, uint jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_last_samplecount_get")] + public static extern uint switch_timer_last_samplecount_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_timer_timer_interface_set")] public static extern void switch_timer_timer_interface_set(HandleRef jarg1, HandleRef jarg2); @@ -14107,96 +14266,6 @@ 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_cbr_set")] - public static extern void switch_mm_t_cbr_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_cbr_get")] - public static extern int switch_mm_t_cbr_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_source_fps_set")] - public static extern void switch_mm_t_source_fps_set(HandleRef jarg1, float jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_source_fps_get")] - public static extern float switch_mm_t_source_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_switch_mm_t_vprofile_set")] - public static extern void switch_mm_t_vprofile_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vprofile_get")] - public static extern int switch_mm_t_vprofile_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vencspd_set")] - public static extern void switch_mm_t_vencspd_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_vencspd_get")] - public static extern int switch_mm_t_vencspd_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_try_hardware_encoder_set")] - public static extern void switch_mm_t_try_hardware_encoder_set(HandleRef jarg1, byte jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_mm_t_try_hardware_encoder_get")] - public static extern byte switch_mm_t_try_hardware_encoder_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); @@ -17698,6 +17767,18 @@ class freeswitchPINVOKE { [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_switch_rtp_packet_t_ext_set")] + public static extern void switch_rtp_packet_t_ext_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_packet_t_ext_get")] + public static extern IntPtr switch_rtp_packet_t_ext_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_packet_t_ebody_set")] + public static extern void switch_rtp_packet_t_ebody_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_packet_t_ebody_get")] + public static extern string switch_rtp_packet_t_ebody_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_packet_t")] public static extern IntPtr new_switch_rtp_packet_t(); @@ -25728,6 +25809,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_switch_img_fmt_t { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_img_fmt_t(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_img_fmt_t() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_img_fmt_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_img_position_t { private HandleRef swigCPtr; @@ -34311,7 +34422,9 @@ namespace FreeSWITCH.Native { public enum switch_file_command_t { SCFC_FLUSH_AUDIO, - SCFC_PAUSE_READ + SCFC_PAUSE_READ, + SCFC_PAUSE_WRITE, + SCFC_RESUME_WRITE } } @@ -35510,7 +35623,8 @@ namespace FreeSWITCH.Native { SFF_PICTURE_RESET = (1 << 14), SFF_SAME_IMAGE = (1 << 15), SFF_USE_VIDEO_TIMESTAMP = (1 << 16), - SFF_ENCODED = (1 << 17) + SFF_ENCODED = (1 << 17), + SFF_EXTERNAL = (1 << 20) } } @@ -38756,6 +38870,58 @@ public class switch_mm_t : IDisposable { } } + public int scale_w { + set { + freeswitchPINVOKE.switch_mm_t_scale_w_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_mm_t_scale_w_get(swigCPtr); + return ret; + } + } + + public int scale_h { + set { + freeswitchPINVOKE.switch_mm_t_scale_h_set(swigCPtr, value); + } + get { + int ret = freeswitchPINVOKE.switch_mm_t_scale_h_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_img_fmt_t fmt { + set { + freeswitchPINVOKE.switch_mm_t_fmt_set(swigCPtr, SWIGTYPE_p_switch_img_fmt_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_img_fmt_t ret = new SWIGTYPE_p_switch_img_fmt_t(freeswitchPINVOKE.switch_mm_t_fmt_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public string auth_username { + set { + freeswitchPINVOKE.switch_mm_t_auth_username_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_mm_t_auth_username_get(swigCPtr); + return ret; + } + } + + public string auth_password { + set { + freeswitchPINVOKE.switch_mm_t_auth_password_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_mm_t_auth_password_get(swigCPtr); + return ret; + } + } + public switch_mm_t() : this(freeswitchPINVOKE.new_switch_mm_t(), true) { } @@ -39610,9 +39776,9 @@ public enum switch_rtp_flag_t { SWITCH_RTP_FLAG_MUTE, SWITCH_RTP_FLAG_NACK, SWITCH_RTP_FLAG_TMMBR, - SWITCH_RTP_FLAG_GEN_TS_DELTA, - SWITCH_RTP_FLAG_GEN_TS_MANUAL, SWITCH_RTP_FLAG_DETECT_SSRC, + SWITCH_RTP_FLAG_OLD_FIR, + SWITCH_RTP_FLAG_PASSTHRU, SWITCH_RTP_FLAG_INVALID } @@ -40293,6 +40459,27 @@ public class switch_rtp_packet_t : IDisposable { } } + public switch_rtp_hdr_ext_t ext { + set { + freeswitchPINVOKE.switch_rtp_packet_t_ext_set(swigCPtr, switch_rtp_hdr_ext_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_rtp_packet_t_ext_get(swigCPtr); + switch_rtp_hdr_ext_t ret = (cPtr == IntPtr.Zero) ? null : new switch_rtp_hdr_ext_t(cPtr, false); + return ret; + } + } + + public string ebody { + set { + freeswitchPINVOKE.switch_rtp_packet_t_ebody_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_rtp_packet_t_ebody_get(swigCPtr); + return ret; + } + } + public switch_rtp_packet_t() : this(freeswitchPINVOKE.new_switch_rtp_packet_t(), true) { } @@ -42636,6 +42823,16 @@ public class switch_timer : IDisposable { } } + public uint last_samplecount { + set { + freeswitchPINVOKE.switch_timer_last_samplecount_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_timer_last_samplecount_get(swigCPtr); + return ret; + } + } + public switch_timer_interface timer_interface { set { freeswitchPINVOKE.switch_timer_timer_interface_set(swigCPtr, switch_timer_interface.getCPtr(value)); @@ -43418,6 +43615,26 @@ public class switch_vid_params_t : IDisposable { } } + public uint d_width { + set { + freeswitchPINVOKE.switch_vid_params_t_d_width_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_vid_params_t_d_width_get(swigCPtr); + return ret; + } + } + + public uint d_height { + set { + freeswitchPINVOKE.switch_vid_params_t_d_height_set(swigCPtr, value); + } + get { + uint ret = freeswitchPINVOKE.switch_vid_params_t_d_height_get(swigCPtr); + return ret; + } + } + public switch_vid_params_t() : this(freeswitchPINVOKE.new_switch_vid_params_t(), true) { } diff --git a/src/mod/languages/mod_perl/freeswitch.pm b/src/mod/languages/mod_perl/freeswitch.pm index 6111f48f71..1496b31425 100644 --- a/src/mod/languages/mod_perl/freeswitch.pm +++ b/src/mod/languages/mod_perl/freeswitch.pm @@ -418,6 +418,7 @@ sub DESTROY { *swig_voice_name_set = *freeswitchc::CoreSession_voice_name_set; *insertFile = *freeswitchc::CoreSession_insertFile; *answer = *freeswitchc::CoreSession_answer; +*print = *freeswitchc::CoreSession_print; *preAnswer = *freeswitchc::CoreSession_preAnswer; *hangup = *freeswitchc::CoreSession_hangup; *hangupState = *freeswitchc::CoreSession_hangupState; diff --git a/src/mod/languages/mod_perl/mod_perl_wrap.cpp b/src/mod/languages/mod_perl/mod_perl_wrap.cpp index 541c11b04e..1cfd61c91b 100644 --- a/src/mod/languages/mod_perl/mod_perl_wrap.cpp +++ b/src/mod/languages/mod_perl/mod_perl_wrap.cpp @@ -5941,6 +5941,45 @@ XS(_wrap_CoreSession_answer) { } +XS(_wrap_CoreSession_print) { + { + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CoreSession_print(self,txt);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CoreSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoreSession_print" "', argument " "1"" of type '" "CoreSession *""'"); + } + arg1 = reinterpret_cast< CoreSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_print" "', argument " "2"" of type '" "char *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (int)(arg1)->print(arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + XS(_wrap_CoreSession_preAnswer) { { CoreSession *arg1 = (CoreSession *) 0 ; @@ -10417,6 +10456,7 @@ static swig_command_info swig_commands[] = { {"freeswitchc::CoreSession_voice_name_get", _wrap_CoreSession_voice_name_get}, {"freeswitchc::CoreSession_insertFile", _wrap_CoreSession_insertFile}, {"freeswitchc::CoreSession_answer", _wrap_CoreSession_answer}, +{"freeswitchc::CoreSession_print", _wrap_CoreSession_print}, {"freeswitchc::CoreSession_preAnswer", _wrap_CoreSession_preAnswer}, {"freeswitchc::CoreSession_hangup", _wrap_CoreSession_hangup}, {"freeswitchc::CoreSession_hangupState", _wrap_CoreSession_hangupState}, diff --git a/src/mod/languages/mod_python/freeswitch.py b/src/mod/languages/mod_python/freeswitch.py index 967e3eb51e..4c9e4dd6b4 100644 --- a/src/mod/languages/mod_python/freeswitch.py +++ b/src/mod/languages/mod_python/freeswitch.py @@ -317,6 +317,7 @@ class CoreSession(_object): if _newclass:voice_name = _swig_property(_freeswitch.CoreSession_voice_name_get, _freeswitch.CoreSession_voice_name_set) def insertFile(self, *args): return _freeswitch.CoreSession_insertFile(self, *args) def answer(self): return _freeswitch.CoreSession_answer(self) + def _print(self, *args): return _freeswitch.CoreSession__print(self, *args) def preAnswer(self): return _freeswitch.CoreSession_preAnswer(self) def hangup(self, cause="normal_clearing"): return _freeswitch.CoreSession_hangup(self, cause) def hangupState(self): return _freeswitch.CoreSession_hangupState(self) diff --git a/src/mod/languages/mod_python/mod_python_wrap.cpp b/src/mod/languages/mod_python/mod_python_wrap.cpp index aa71108c2b..f39f9e61ce 100644 --- a/src/mod/languages/mod_python/mod_python_wrap.cpp +++ b/src/mod/languages/mod_python/mod_python_wrap.cpp @@ -6897,6 +6897,40 @@ fail: } +SWIGINTERN PyObject *_wrap_CoreSession__print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CoreSession *arg1 = (CoreSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CoreSession__print",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoreSession__print" "', argument " "1"" of type '" "CoreSession *""'"); + } + arg1 = reinterpret_cast< CoreSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession__print" "', argument " "2"" of type '" "char *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (int)(arg1)->print(arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + SWIGINTERN PyObject *_wrap_CoreSession_preAnswer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CoreSession *arg1 = (CoreSession *) 0 ; @@ -10262,6 +10296,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"CoreSession_voice_name_get", _wrap_CoreSession_voice_name_get, METH_VARARGS, NULL}, { (char *)"CoreSession_insertFile", _wrap_CoreSession_insertFile, METH_VARARGS, NULL}, { (char *)"CoreSession_answer", _wrap_CoreSession_answer, METH_VARARGS, NULL}, + { (char *)"CoreSession__print", _wrap_CoreSession__print, METH_VARARGS, NULL}, { (char *)"CoreSession_preAnswer", _wrap_CoreSession_preAnswer, METH_VARARGS, NULL}, { (char *)"CoreSession_hangup", _wrap_CoreSession_hangup, METH_VARARGS, NULL}, { (char *)"CoreSession_hangupState", _wrap_CoreSession_hangupState, METH_VARARGS, NULL},