Dun.Jason пре 1 година
родитељ
комит
be21a5154c

+ 5 - 0
src/CallCenter.Api/Controllers/TelController.cs

@@ -550,5 +550,10 @@ namespace CallCenter.Api.Controllers
             await _deviceManager.VisitorToMenuAsync(call.ConversationId,ivr.No,HttpContext.RequestAborted);
         }
 
+        [HttpGet("monitor")]
+        public async Task MonitorExt(string firstTelNo,string secondTelNo)
+        {
+
+        }
     }
 }

+ 3 - 3
src/CallCenter.Api/Controllers/TestController.cs

@@ -129,7 +129,7 @@ namespace CallCenter.Api.Controllers
         [HttpGet("ring")]
         public async Task RingTest()
         {
-            await _realtimeService.RingAsync(_sessionContext.RequiredUserId, new RingDto { Id="123", From = "13512341234",To="65123495",CallType = Share.Enums.ECallType.VisitorCallIn, ConversationId="333" }, HttpContext.RequestAborted);
+            await _realtimeService.RingAsync(_sessionContext.RequiredUserId, new RingDto { Id="123", From = "13408389849",To= "5615678", CallType = Share.Enums.ECallType.VisitorCallIn, ConversationId="333" }, HttpContext.RequestAborted);
         }
 
         /// <summary>
@@ -139,7 +139,7 @@ namespace CallCenter.Api.Controllers
         [HttpGet("answered")]
         public async Task AnsweredTest()
         {
-            await _realtimeService.AnsweredAsync(_sessionContext.RequiredUserId, new AnseredDto() { Id = "123", From = "13408389849", To = "65123495", ConversationId="333" }, HttpContext.RequestAborted);
+            await _realtimeService.AnsweredAsync(_sessionContext.RequiredUserId, new AnseredDto() { Id = "123", From = "13408389849", To = "5615678", ConversationId="333", CallType = Share.Enums.ECallType.VisitorCallIn }, HttpContext.RequestAborted);
         }
 
         /// <summary>
@@ -159,7 +159,7 @@ namespace CallCenter.Api.Controllers
         [HttpGet("callqueue")]
         public async Task CallQueueTest()
         {
-            var call = await _callRepository.GetAsync("08db40b1-c96a-4b2b-8b9d-ea0e3fdabdb0", HttpContext.RequestAborted);
+            var call = await _callRepository.GetAsync("08dc0cf1-782e-4f7c-8c01-d299bacb1f50", HttpContext.RequestAborted);
             _callCacheManager.AddCallCache(call,"1");
             await _realtimeService.CallQueueAsync(_callCacheManager.GetCallQueueList(),HttpContext.RequestAborted);
             //_callCacheManager.RemoveCallCache(call.Id);

+ 16 - 16
src/CallCenter.Api/appsettings.Development.json

@@ -79,22 +79,22 @@
         "BusyGroup": "",
         "UseWorkDay": true
       },
-      {
-        //"NumNo": "12345",
-        "NumNo": "3496",
-        "MorningBegin": "00:00",
-        "MorningEnd": "12:00",
-        "AfterBegin": "12:00",
-        "AfterEnd": "23:59",
-        "WorkDay": [ 1, 2, 3, 4, 5, 6, 0 ],
-        "WorkCategory": "", //"08db2b5d-50b8-4830-83c5-ebe2c3b4364e",
-        "RestCategory": "",
-        "WorkToGroup": "1",
-        "RestToGroup": "2",
-        "EvaluateCategory": "08db1e04-70c8-4419-8d4a-9b7172678ab2",
-        "BusyGroup": "2",
-        "UseWorkDay": true
-      },
+      //{
+      //  //"NumNo": "12345",
+      //  "NumNo": "3496",
+      //  "MorningBegin": "00:00",
+      //  "MorningEnd": "12:00",
+      //  "AfterBegin": "12:00",
+      //  "AfterEnd": "23:59",
+      //  "WorkDay": [ 1, 2, 3, 4, 5, 6, 0 ],
+      //  "WorkCategory": "", //"08db2b5d-50b8-4830-83c5-ebe2c3b4364e",
+      //  "RestCategory": "",
+      //  "WorkToGroup": "1",
+      //  "RestToGroup": "2",
+      //  "EvaluateCategory": "08db1e04-70c8-4419-8d4a-9b7172678ab2",
+      //  "BusyGroup": "2",
+      //  "UseWorkDay": true
+      //},
       {
         "NumNo": "3490",
         "MorningBegin": "07:00",