Esempio n. 1
0
        public LineControlResponse GetLineControl(LineControl lc, string token)
        {
            log.Debug("GetLineControl: " + lc.ToString());
            LineControl newlc = null;

            if (ValidateToken(token, lc.directoryNumber))
            {
                log.Debug("Token is valid...Retreive line control (" + lc.directoryNumber + ") from LineControlService");
                try
                {
                    newlc = LineControlService.GetLineControl(lc);
                }
                catch (Exception e)
                {
                    log.Error("Unable to retreive lineControl from LineControlService: " + e.Message);
                }
            }
            return(new LineControlResponse(newlc, AuthenticationService.UpdateToken(token)));
        }
Esempio n. 2
0
 public LineStatus[] GetLinesStatus(LineStatus[] lines)
 {
     log.Debug("GetLinesStatus...");
     return(LineControlService.GetLinesStatus(lines));
 }