コード例 #1
0
ファイル: PhoneForm.cs プロジェクト: WereDouglas/Casepro
 private void StartCall(string numberToDial)
 {
     if (call == null)
     {
         call = softphone.CreateDirectIPCallObject(phoneLine, new DirectIPDialParameters("5060"), numberToDial);
         call.CallStateChanged += call_CallStateChanged;
         call.Start();
     }
 }
コード例 #2
0
        /// <summary>
        /// Starts dialling a number on the selected phone line.
        /// </summary>
        public void DialIP(string address, CallType callType)
        {
            if (string.IsNullOrEmpty(address))
            {
                return;
            }

            IPhoneCall call = softPhone.CreateDirectIPCallObject(SelectedLine, callType, address);

            StartCall(call);
        }
コード例 #3
0
        public void StartCall(string numberToDial)
        {
            phoneLineInitialization();
            if (call == null)
            {
                Console.WriteLine("starting call");
                call = softphone.CreateDirectIPCallObject(phoneLine, new DirectIPDialParameters("5060"), numberToDial);

                call.CallStateChanged += call_CallStateChanged;
                call.Start();
                Console.WriteLine(call.CallID);
            }
        }
コード例 #4
0
ファイル: Home.cs プロジェクト: pawlikx/VoiceCommunicator
        private void StartCall(string numberToDial)
        {
            //phoneLineInit(myNumber);
            Caller = new Thread(Ozeki);
            Caller.Start();
            Thread.Sleep(1000);
            if (call == null)
            {
                call = softphone.CreateDirectIPCallObject(phoneLine, new DirectIPDialParameters("5060"), numberToDial);
                call.CallStateChanged += call_CallStateChanged;

                call.Start();
            }
        }
コード例 #5
0
        /// <summary>
        /// Starts dialling a number on the selected phone line.
        /// </summary>
        public void DialIP(string address, CallType callType)
        {
            if (string.IsNullOrEmpty(address))
            {
                return;
            }

            var dialParams = new DirectIPDialParameters("5060");

            dialParams.CallType = callType;

            IPhoneCall call = softPhone.CreateDirectIPCallObject(SelectedLine, dialParams, address);

            StartCall(call);
        }