Fix Queue Log Reporting Every Call COMPLETECALLER With "h" Extension Present
authorMichael L. Young <elgueromexicano@gmail.com>
Thu, 3 Jan 2013 22:14:20 +0000 (22:14 +0000)
committerMichael L. Young <elgueromexicano@gmail.com>
Thu, 3 Jan 2013 22:14:20 +0000 (22:14 +0000)
commit8c0d7005f3afb614865b8cbe1e5f33cd309cbb68
treedb78785b8876f867e5d7545f7a2c75280f8ec404
parent1d685bd28ca64f6093ae86d0fe2974612c05f1cd
Fix Queue Log Reporting Every Call COMPLETECALLER With "h" Extension Present

When the "h" extension is present within the context of the queue, all calls
are being reported COMPLETECALLER even when the agent is hanging up the call.

This patch checks to see if the agent hung-up or not instead of only relying on
checking if the queue (caller) channel hung-up or not.  It would appear that
having the h extension in the mix, the pbx goes to the h extension,
"hanging-up" the queue channel and triggering the reporting of COMPLETECALLER.

(closes issue ASTERISK-20743)
Reported by: call
Tested by: call, Michael L. Young
Patches:
    asterisk-20743-q-cmplt-caller.diff
                                     uploaded by Michael L. Young (license 5026)

Review: https://reviewboard.asterisk.org/r/2256/
........

Merged revisions 378514 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 378515 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@378516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_queue.c