Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
        public void TerminateCall(Call call)
        {
            if (call == null)
                throw new ArgumentNullException ("call");

            linphone.TerminateCall (call);
        }
Example #5
0
        public void ReceiveCall(Call call)
        {
            if (call == null)
                throw new ArgumentNullException ("call");

            linphone.ReceiveCall (call);
        }