|
@@ -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);
|