protected override void OnExternalCommand(string command, string commandData, string eventToken, TelecomScriptInterface tsInterface, CallButler.Telecom.TelecomProviderBase telecomProvider, WOSI.CallButler.Data.DataProviders.CallButlerDataProviderBase dataProvider) { // Parse out our external event action if (Enum.IsDefined(typeof(ReceptionistFinderExternalCommands), command)) { ReceptionistFinderExternalCommands externalCommand = WOSI.Utilities.EnumUtils<ReceptionistFinderExternalCommands>.Parse(command); switch (externalCommand) { case ReceptionistFinderExternalCommands.CALLBUTLERINTERNAL_SendToAutoAttendant: { scriptService.ProcessAutoAttendantAnswer(tsInterface.LineNumber, tsInterface, false); break; } case ReceptionistFinderExternalCommands.CALLBUTLERINTERNAL_AnswerCall: { if (telecomProvider.IsLineInUse(tsInterface.LineNumber)) { if (tsInterface.Extension != null) telecomProvider.AnswerCall(tsInterface.LineNumber, true); else telecomProvider.AnswerCall(tsInterface.LineNumber, false); } break; } } } }