Esempio n. 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);
        }