public void TerminateCall(Call call) { if (call == null) throw new ArgumentNullException ("call"); if (linphoneCore == IntPtr.Zero || !running) { if (ErrorEvent != null) ErrorEvent (call, "Cannot make or receive calls when Linphone Core is not working."); return; } LinphoneCall linphonecall = (LinphoneCall) call; linphone_core_terminate_call (linphoneCore, linphonecall.LinphoneCallPtr); }
public void ReceiveCallAndRecord(Call call, string filename) { if (call == null) throw new ArgumentNullException ("call"); if (linphoneCore == IntPtr.Zero || !running) { if (ErrorEvent != null) ErrorEvent (call, "Cannot make or receive calls when Linphone Core is not working."); return; } LinphoneCall linphonecall = (LinphoneCall) call; linphone_call_params_set_record_file (callsDefaultParams, filename); linphone_core_accept_call_with_params (linphoneCore, linphonecall.LinphoneCallPtr, callsDefaultParams); linphone_call_start_recording (linphonecall.LinphoneCallPtr); }
public void ReceiveCallAndRecord(Call call, string filename) { if (call == null) throw new ArgumentNullException ("call"); if (string.IsNullOrEmpty(filename)) throw new ArgumentNullException ("filename"); linphone.ReceiveCallAndRecord (call, filename); }
public void TerminateCall(Call call) { if (call == null) throw new ArgumentNullException ("call"); linphone.TerminateCall (call); }
public void ReceiveCall(Call call) { if (call == null) throw new ArgumentNullException ("call"); linphone.ReceiveCall (call); }