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); } }
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); } }
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); } }
public override void OnAnswerDetectMachineGreetingFinished(CallButler.Telecom.TelecomProviderBase telecomProvider, CallButler.Telecom.LineEventArgs e) { telecomProvider.EnableAnsweringMachineDetection(tsInterface.LineNumber, false); StartScript(answeringMachineScriptLocation); }
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); } }