Пример #1
0
        public void InitiateTransfer(string number, KeyValueCollection reasonCode)
        {
            //Input Validation
            CheckException.CheckDialValues(number);

            logger.Info("InitiateTransfer(" + number + ")");

            if ((Settings.GetInstance().CallControl == "both" ? Settings.GetInstance().ActiveDN : (Settings.GetInstance().CallControl == "acd" ?
                                                                                                   Settings.GetInstance().ACDPosition : Settings.GetInstance().ExtensionDN)) != number)
            {
                HoldingFlagStatus(PhoneFunctions.InitiateTransfer);
                logger.Debug("Set HoldingFlagStatus(PhoneFunctions.InitiateTransfer)");
            }

            RequestAgentTransfer.InitiateTransfer(number, reasonCode);

            ////TERR_INV_CALD_DN
            //OutputValues errorOutput = new OutputValues();
            //errorOutput.MessageCode = "71";
            //errorOutput.Message = "TERR_INV_CALD_DN" + " : " + "Invalid Called DN.";
            //if (Settings.GetInstance().IsEnableInitiateTransfer)
            //    Settings.GetInstance().IsEnableInitiateTransfer = false;
            //if (Settings.GetInstance().IsEnableInitiateConference)
            //    Settings.GetInstance().IsEnableInitiateConference = false;
            //VoiceManager.messageToClient.NotifyErrorMessage(errorOutput);
        }
Пример #2
0
        public void InitiateConference(string otherDn, string location, KeyValueCollection userData, KeyValueCollection reasons, KeyValueCollection extensions)
        {
            //Input Validation
            CheckException.CheckDialValues(otherDn);

            RequestAgentConference.InitiateConference(otherDn, location, userData, reasons, extensions);
            if ((Settings.GetInstance().CallControl == "both" ? Settings.GetInstance().ActiveDN : (Settings.GetInstance().CallControl == "acd" ?
                                                                                                   Settings.GetInstance().ACDPosition : Settings.GetInstance().ExtensionDN)) != otherDn)
            {
                HoldingFlagStatus(PhoneFunctions.IntiateConference);
            }
        }
Пример #3
0
        public void InitiateConference(string number, KeyValueCollection userData)
        {
            //Input Validation
            CheckException.CheckDialValues(number);

            RequestAgentConference.InitiateConference(number, userData);
            if ((Settings.GetInstance().CallControl == "both" ? Settings.GetInstance().ActiveDN : (Settings.GetInstance().CallControl == "acd" ?
                                                                                                   Settings.GetInstance().ACDPosition : Settings.GetInstance().ExtensionDN)) != number)
            {
                HoldingFlagStatus(PhoneFunctions.IntiateConference);
            }
        }
Пример #4
0
        public void InitiateTransfer(string number, string location, KeyValueCollection userData)
        {
            //Input Validation
            CheckException.CheckDialValues(number);

            logger.Info("InitiateTransfer(" + number + ")");
            //Code Added - V.Palaniappan
            //28.10.2013
            if ((Settings.GetInstance().CallControl == "both" ? Settings.GetInstance().ActiveDN : (Settings.GetInstance().CallControl == "acd" ?
                                                                                                   Settings.GetInstance().ACDPosition : Settings.GetInstance().ExtensionDN)) != number)
            {
                HoldingFlagStatus(PhoneFunctions.InitiateTransfer);
                logger.Info("Set HoldingFlagStatus(PhoneFunctions.InitiateTransfer)");
            }
            //End

            RequestAgentTransfer.InitiateTransfer(number, location, userData);
        }
Пример #5
0
 public OutputValues Dial(string number, KeyValueCollection reason = null)
 {
     //Input Validation
     CheckException.CheckDialValues(number);
     return(RequestAgentDial.Dial(number, reason));
 }
Пример #6
0
 public void Redirect(string routeOtherDN)
 {
     CheckException.CheckDialValues(routeOtherDN);
     RequestAgentRedirectCall.Redirect(routeOtherDN);
 }