# How Asterisk calculating estimated time in queue?

**URL:** <https://community.asterisk.org/t/how-asterisk-calculating-estimated-time-in-queue/92128>\
**Category:** Asterisk Support\
**Created:** [March 28, 2022, 9:06am UTC](https://community.asterisk.org/t/how-asterisk-calculating-estimated-time-in-queue/92128 "2022-03-28T09:06:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cotof](https://avatars.discourse-cdn.com/v4/letter/c/a698b9/32.png) [@Cotof](https://community.asterisk.org/u/Cotof)\
**Post date:** [March 28, 2022, 9:06am UTC](https://community.asterisk.org/t/how-asterisk-calculating-estimated-time-in-queue/92128/1 "2022-03-28T09:06:17Z")

</div>

How Asterisk is calculating estimated time in queue?

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [March 28, 2022, 9:32am UTC](https://community.asterisk.org/t/how-asterisk-calculating-estimated-time-in-queue/92128/2 "2022-03-28T09:32:05Z")

</div>

> [@Queue Holdtime Algorithm](https://community.asterisk.org/t/queue-holdtime-algorithm/92059/2):
>
> It’s an exponential average of the hold times for calls that have been answered. It is only really valid in the steady state. I’m not sure how it handles abandoned calls. 0.25\*latest actual hold time + 0.75 \* previous average, except the whole hold time is used for the first call.

---

<div class="post-metadata">

**Author:** ![Cotof](https://avatars.discourse-cdn.com/v4/letter/c/a698b9/32.png) [@Cotof](https://community.asterisk.org/u/Cotof)\
**Post date:** [March 28, 2022, 9:36am UTC](https://community.asterisk.org/t/how-asterisk-calculating-estimated-time-in-queue/92128/3 "2022-03-28T09:36:45Z")

</div>

Previous average for which period of time?

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [March 28, 2022, 9:43am UTC](https://community.asterisk.org/t/how-asterisk-calculating-estimated-time-in-queue/92128/4 "2022-03-28T09:43:06Z")

</div>

[Exponential averages are infinite impulse response filters](https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average), so the time is since Asterisk was started. The feedback function means that older samples get less weight.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [April 27, 2022, 9:43am UTC](https://community.asterisk.org/t/how-asterisk-calculating-estimated-time-in-queue/92128/5 "2022-04-27T09:43:49Z")

</div>

Closed on April 27, 2022, 9:43am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
