|
@@ -116,6 +116,11 @@ namespace Hotline.Application.Jobs
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (call.AnsweredTime == null && call.Direction == ECallDirection.In && call.WaitDuration == 0)
|
|
|
+ {
|
|
|
+ call.WaitDuration = call.EndTime.GetDifferenceSeconds(call.BeginIvrTime.Value);
|
|
|
+ }
|
|
|
+
|
|
|
if (call.GroupId == "0" && call.CallState != ECallState.IVRNoAccept)
|
|
|
{
|
|
|
call.CallState = ECallState.Invalid;
|