public static async Task <bool> CallIsNoLongerActiveAsync(this ApiException e, CancellationToken cancellationToken = default) { var errorResponse = await e.GetErrorResponseAsync(cancellationToken); var errors = errorResponse.Errors; return(errors.Any(x => x.Code == ErrorCodes.CallHasAlreadyEnded)); }