Пример #1
0
        public CallStatus MakeCall(string destination)
        {
            frmMain frm = new frmMain();

            frm.busylight.Light(Busylight.BusylightColor.Red);
            return(_callHandler.MakeCall(destination));
        }
Пример #2
0
 public string MakeCallEx(string destination, MakeCallOptions options)
 {
     try
     {
         var status = callHandler.MakeCall(destination, ConvertMakeCallOptions(options));
         if (status != null)
         {
             return(status.CallID);
         }
     }
     catch (Exception exc)
     {
         LogHelper.Log(Environment.SpecialFolder.ApplicationData, "CallTriggerCmd.log",
                       "Error executing callHandler.MakeCall(" + destination + "): " + exc.ToString());
     }
     return(String.Empty);
 }
Пример #3
0
        public CallStatus MakeCallEx(string destination, MakeCallOptions options)
        {
            try
            {
                var status = callHandler.MakeCall(destination, ConvertMakeCallOptions(options));
                if (status != null)
                {
                    var callStatus = new CallStatus();

                    fillCallStatus(status, callStatus);

                    return(callStatus);
                }
            }
            catch (Exception exc)
            {
                LogHelper.Log(Environment.SpecialFolder.ApplicationData, "CallTriggerCmd.log",
                              "Error executing callHandler.MakeCall(" + destination + "): " + exc.ToString());
            }

            return(null);
        }
Пример #4
0
 public CallStatus MakeCall(string destination)
 {
     // frm.busylight.Light(Busylight.BusylightColor.Red);
     frm.btnRedBlinkingWithoutSound_Click(null, EventArgs.Empty);
     return(_callHandler.MakeCall(destination));
 }