Exemplo n.º 1
0
 private void StartCall(string numberToDial)
 {
     if (call == null)
     {
         call = softphone.CreateDirectIPCallObject(phoneLine, new DirectIPDialParameters("5060"), numberToDial);
         call.CallStateChanged += call_CallStateChanged;
         call.Start();
     }
 }
Exemplo n.º 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);
        }
        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);
            }
        }
Exemplo n.º 4
0
        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();
            }
        }
Exemplo n.º 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);
        }