Exemple #1
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 #2
0
        public override void OnCallFailed(CallButler.Telecom.TelecomProviderBase telecomProvider, CallButler.Telecom.LineEventArgs e)
        {
            connected          = true;
            tsInterface.Locked = false;

            if (dialerPlugin != null)
            {
                dialerPlugin.OnCallStatus(jobID, callID, CallButler.Service.Plugin.CallButlerDialerPlugin.CallStatus.Failed);
            }
        }
Exemple #3
0
 public override void OnAnswerDetectMachine(CallButler.Telecom.TelecomProviderBase telecomProvider, CallButler.Telecom.LineEventArgs e)
 {
     if (dialerPlugin != null)
     {
         dialerPlugin.OnCallStatus(jobID, callID, CallButler.Service.Plugin.CallButlerDialerPlugin.CallStatus.MachineAnswered);
     }
 }
Exemple #4
0
 public override void OnAnswerDetectMachineGreetingFinished(CallButler.Telecom.TelecomProviderBase telecomProvider, CallButler.Telecom.LineEventArgs e)
 {
     telecomProvider.EnableAnsweringMachineDetection(tsInterface.LineNumber, false);
     StartScript(answeringMachineScriptLocation);
 }
Exemple #5
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);
            }
        }