Exemple #1
0
        protected override void OnStartProcessing(TelecomScriptInterface tsInterface, CallButler.Telecom.TelecomProviderBase telecomProvider, WOSI.CallButler.Data.DataProviders.CallButlerDataProviderBase dataProvider)
        {
            telecomProvider.EnableAnsweringMachineDetection(tsInterface.LineNumber, false);

            if (answeringMachineScriptLocation == null || answeringMachineScriptLocation.Length == 0)
            {
                StartScript(scriptLocation);
            }
        }
Exemple #2
0
        public override void OnAnswerDetectHuman(CallButler.Telecom.TelecomProviderBase telecomProvider, CallButler.Telecom.LineEventArgs e)
        {
            telecomProvider.EnableAnsweringMachineDetection(tsInterface.LineNumber, false);

            StartScript(scriptLocation);

            if (dialerPlugin != null)
            {
                dialerPlugin.OnCallStatus(jobID, callID, CallButler.Service.Plugin.CallButlerDialerPlugin.CallStatus.HumanAnswered);
            }
        }
Exemple #3
0
        public override void OnCallConnected(CallButler.Telecom.TelecomProviderBase telecomProvider, CallButler.Telecom.LineEventArgs e)
        {
            connected = true;

            if (answeringMachineScriptLocation != null && answeringMachineScriptLocation.Length > 0)
            {
                if (answeringMachineDetectionSettings != null && answeringMachineDetectionSettings.Length > 0)
                {
                    telecomProvider.SetAnsweringMachineDetectionSettings(tsInterface.LineNumber, answeringMachineDetectionSettings);
                }

                telecomProvider.EnableAnsweringMachineDetection(tsInterface.LineNumber, true);
            }

            if (dialerPlugin != null && (answeringMachineScriptLocation == null || answeringMachineScriptLocation.Length == 0))
            {
                dialerPlugin.OnCallStatus(jobID, callID, CallButler.Service.Plugin.CallButlerDialerPlugin.CallStatus.Answered);
            }
        }
Exemple #4
0
 public override void OnAnswerDetectMachineGreetingFinished(CallButler.Telecom.TelecomProviderBase telecomProvider, CallButler.Telecom.LineEventArgs e)
 {
     telecomProvider.EnableAnsweringMachineDetection(tsInterface.LineNumber, false);
     StartScript(answeringMachineScriptLocation);
 }