[asterisk-dev] Proposing change to Queue and missed calls behavior

Stian Hvatum Stian at unisoft.no
Fri Dec 4 13:00:39 CST 2015


Hi,
I have a problem with an accompanying solution that I wish to share, but I am not sure if it is valuable enough or correct enough to be suggested as a patch to Asterisk.

When SIP-phones are members of a queue, they tend to accumulate "missed calls" unless the C-flag is applied. When the C-flag is applied there is no missed calls at all, since all hangups are marked as "answered elsewhere". I have created and attached a patch which makes the C-flag "answer elsewhere" all hangups that are caused by app_queue canceling the dial or the call is really answered elsewhere, but sets normal cause when caller actually hangs up before the call is answered.

I know the patch alters the behavior of the C-flag, and altering behavior of existing flags is probably a bad thing. I can try to create a new flag for this "missed call on caller hangup"-behavior if that is of any value. Also, I don't have much experience with the Asterisk source code, so if I break something by setting normal cause here I would be very happy if anyone would give me a hint about it. The only problem I have seen so far is that if the caller hangs up during an announcement or between app_queue's dial outs, the call is not marked as missed (as the previous call was "answered elsewhere" and no new calls went out to the phones).

The code is running a few places without causing any trouble as far as I can tell. I wrote this after a customer had a few thousand missed calls on his queue-connected phone...

Best regards and thanks for a great project!
Stian Hvatum
-------------- next part --------------
A non-text attachment was scrubbed...
Name: app_queue.patch
Type: text/x-patch
Size: 923 bytes
Desc: app_queue.patch
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20151204/7080ea65/attachment.bin>


More information about the asterisk-dev mailing list