private void TryCallBlast(CallButler.Telecom.TelecomProviderBase telecomProvider, TelecomScriptInterface tsInterface, string[] numbersToCall, string[] profileNames, string fromCallerID, string fromCallerNumber, string timeout)
        {
            List <WOSI.CallButler.Data.CallButlerDataset.ProvidersRow> providers = new List <WOSI.CallButler.Data.CallButlerDataset.ProvidersRow>();

            foreach (string profileName in profileNames)
            {
                providers.Add(tsInterface.FindProvider(profileName));
            }

            if (Properties.Settings.Default.CustomIncomingCallerID != null && Properties.Settings.Default.CustomIncomingCallerID.Length > 0)
            {
                fromCallerID = Properties.Settings.Default.CustomIncomingCallerID;
            }

            if (Properties.Settings.Default.CustomIncomingCallerNumber != null && Properties.Settings.Default.CustomIncomingCallerNumber.Length > 0)
            {
                fromCallerNumber = Properties.Settings.Default.CustomIncomingCallerNumber;
            }

            telecomProvider.CallBlast(tsInterface.LineNumber, numbersToCall, fromCallerID, fromCallerNumber, providers.ToArray());

            SetupScriptForCall(tsInterface, timeout);
        }
        private void TryCallBlast(CallButler.Telecom.TelecomProviderBase telecomProvider, TelecomScriptInterface tsInterface, string[] numbersToCall, string[] profileNames, string fromCallerID, string fromCallerNumber, string timeout)
        {
            List<WOSI.CallButler.Data.CallButlerDataset.ProvidersRow> providers = new List<WOSI.CallButler.Data.CallButlerDataset.ProvidersRow>();

            foreach (string profileName in profileNames)
            {
                providers.Add(tsInterface.FindProvider(profileName));
            }

            if (Properties.Settings.Default.CustomIncomingCallerID != null && Properties.Settings.Default.CustomIncomingCallerID.Length > 0)
            {
                fromCallerID = Properties.Settings.Default.CustomIncomingCallerID;
            }

            if (Properties.Settings.Default.CustomIncomingCallerNumber != null && Properties.Settings.Default.CustomIncomingCallerNumber.Length > 0)
            {
                fromCallerNumber = Properties.Settings.Default.CustomIncomingCallerNumber;
            }

            telecomProvider.CallBlast(tsInterface.LineNumber, numbersToCall, fromCallerID, fromCallerNumber, providers.ToArray());

            SetupScriptForCall(tsInterface, timeout);
        }