Request for Feedback: Queues, Penalties, RINGALL, and Use Cases

I agree on the need for dusting off apps from time to time. For instance the naming of penalties in queues is confusing IMO. Who is getting penalized ? Everybody ? Maybe a more positive approach for naming could be helpful to sort it out ? Something like a “reward” program to complement the “penalty” ? More carrot less stick ?

Anyhow, I think this change might break some expected behaviour. And I believe the goal can be accomplished in plain text configuration files…

queuerules.conf:

[general]
[self_rule]
penaltychange => 10,+1,,+1

queues.conf:

[general]
[free-folk-help-desk]
strategy = ringall
timeout = 8
retry = 4
defaultrule = self_rule
member => PJSIP/700,0,Jon
member => PJSIP/701,1,Ygritte

extensions.ael:

context default {
  555 => {
    Set(QUEUE_MIN_PENALTY=0);
    Set(QUEUE_MAX_PENALTY=0);
    Set(QUEUE_RAISE_PENALTY=0);
    Queue(free-folk-help-desk);
  }
}

Dial 555 from another extension, and it rings the first phone (Jon x700) for eight seconds, waits four seconds, then rings both phones (Jon x700 and Ygritte x701) forever, in twelve second loops – at least in a recent Asterisk 16 I tested on.

1 Like