|
@@ -603,13 +603,13 @@ namespace Hotline.Api.Controllers
|
|
|
public async Task ClearExt([FromBody] ClearExtRequest request)
|
|
|
{
|
|
|
//查询当前通话记录
|
|
|
- var call = await _callRepository.GetAsync(request.CallId, HttpContext.RequestAborted);
|
|
|
- if (call is null)
|
|
|
- throw UserFriendlyException.SameMessage("无效通话,无法挂断");
|
|
|
- if (call.CallStatus == ECallStatus.Bye)
|
|
|
- throw UserFriendlyException.SameMessage("通话已结束");
|
|
|
+ //var call = await _callRepository.GetAsync(request.CallId, HttpContext.RequestAborted);
|
|
|
+ //if (call is null)
|
|
|
+ // throw UserFriendlyException.SameMessage("无效通话,无法挂断");
|
|
|
+ //if (call.CallStatus == ECallStatus.Bye)
|
|
|
+ // throw UserFriendlyException.SameMessage("通话已结束");
|
|
|
|
|
|
- await _deviceManager.ClearExtAsync(call.ToNo, HttpContext.RequestAborted);
|
|
|
+ await _deviceManager.ClearExtAsync(request.CallId, HttpContext.RequestAborted);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|