This commit is contained in:
Mike Jerris 2017-06-01 17:56:01 -05:00
parent 8ceb25b4db
commit 8558037a42
10 changed files with 1084 additions and 447 deletions

View File

@ -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);
}

View File

@ -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_);

View File

@ -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 ;

View File

@ -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},

File diff suppressed because it is too large Load Diff

View File

@ -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) {
}

View File

@ -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;

View File

@ -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},

View File

@ -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)

View File

@ -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},