Browse Source

上班初始化话机

Dun.Jason 2 years ago
parent
commit
fe17d79bdc
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/Hotline/Users/UserDomainService.cs

+ 10 - 0
src/Hotline/Users/UserDomainService.cs

@@ -1,6 +1,7 @@
 using Hotline.Caches;
 using Hotline.CallCenter.Devices;
 using Hotline.CallCenter.Tels;
+using Hotline.Share.Dtos.CallCenter;
 using Hotline.Share.Dtos.User;
 using MapsterMapper;
 using XF.Domain.Cache;
@@ -68,8 +69,17 @@ namespace Hotline.Users
             {
                 await _deviceManager.ModifyGroupExtAsync(group.No,tel.No,group.Voice,true, cancellationToken);
             }
+
+            #region 初始化话机
+
+            //初始化解除静音
+            await _deviceManager.UnMuteAsync(tel.No, cancellationToken);
+
+            #endregion
         }
 
+
+
         /// <summary>
         /// 下班
         /// </summary>