Ejemplo n.º 1
0
 private void Manager_DialEnd(object sender, DialEndEvent e)
 {
     Console.WriteLine(e);
     if (keys.ContainsKey(e.UniqueId))
     {
         CallInfo obj = keys[e.UniqueId];
         obj.CallStatusCode = (int)Enum.Parse(typeof(CallStatusCode), e.DialStatus);
         if (e.DialStatus == "ANSWER")
         {
             obj.CallAnsweredDate = DateTime.Now;
         }
     }
 }
Ejemplo n.º 2
0
        void manager_DialEnd(object sender, DialEndEvent e)
        {
            DateTime dtAnswerTime = e.DateReceived;

            string Srcnumber = e.Attributes["destcalleridnum"];

            if (dcdr.ContainsKey(Srcnumber))
            {
                dcdr[Srcnumber].answerTime = dtAnswerTime;


                //this.Invoke((MethodInvoker)delegate
                //{
                //    textBox4.AppendText("answer time match " + "\r\n");
                //});
            }



            //string sUnique = e.DestUniqueId;

            //this.Invoke((MethodInvoker)delegate
            //{

            //    while (true)
            //    {
            //        for (int i = 0; i < this.dataGridView1.Rows.Count; i++)
            //        {
            //            if (this.dataGridView1.Rows[i].Cells["uniqueID"].Value.ToString() == sUnique)
            //            {
            //                this.dataGridView1.Rows[i].Cells["B answer time"].Value = dtAnswerTime;
            //                return;
            //            }

            //        }
            //    }
            //});

            //if(dcdr.ContainsKey(



            return;
        }