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);
}
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_);
}
+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 ;
}
+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 ;
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},
char * jresult ;
char *result = 0 ;
- result = (char *)("5000");
+ result = (char *)("1000");
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
char * jresult ;
char *result = 0 ;
- result = (char *)("2000");
+ result = (char *)("1000");
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
}
+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 ;
}
+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 ;
}
+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 ;
}
-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;
}
}
+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 ;
}
-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 ;
}
+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 ;
}
-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 ;
}
+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 ;
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;
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;
}
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;
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));
}
[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();
[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);
[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);
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);
[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);
[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);
[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);
[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);
[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();
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;
public enum switch_file_command_t {
SCFC_FLUSH_AUDIO,
- SCFC_PAUSE_READ
+ SCFC_PAUSE_READ,
+ SCFC_PAUSE_WRITE,
+ SCFC_RESUME_WRITE
}
}
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)
}
}
}
}
+ 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) {
}
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
}
}
}
+ 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) {
}
}
}
+ 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));
}
}
+ 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) {
}
*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;
}
+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 ;
{"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},
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)
}
+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 ;
{ (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},