Exemple #1
0
        public void SaveComment(RegisteredSipComment sipComment)
        {
            _userRepository.UpdateComment(sipComment.RegisteredSipUserName, sipComment.Comment);

            // Invalidate registered sip in cache
            _cache.ClearRegisteredSips();
        }
Exemple #2
0
        public ActionResult EditRegisteredSipComment(RegisteredSipComment sipComment)
        {
            if (sipComment.RegisteredSipId != Guid.Empty)
            {
                _userManager.SaveComment(sipComment);
            }

            var updateResult = new KamailioMessageHandlerResult()
            {
                ChangeStatus    = KamailioMessageChangeStatus.CodecUpdated,
                ChangedObjectId = sipComment.RegisteredSipId
            };

            _guiHubUpdater.Update(updateResult);
            _statusHubUpdater.Update(updateResult);

            return(null);
        }