]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: Prevent crash when a call is forwarded to an invalid location 11/3511/1
authorMatt Jordan <mjordan@digium.com>
Thu, 11 Aug 2016 16:13:07 +0000 (11:13 -0500)
committerMatt Jordan <mjordan@digium.com>
Thu, 11 Aug 2016 18:56:12 +0000 (13:56 -0500)
commit82529ae4e6fe21e13ae29cf46da9c016f3fd0196
tree6e8d7c3cf45e004f975157e0cabc17c262008d13
parentef7361659f09627599a801160c371dc0b5e60af0
app_queue: Prevent crash when a call is forwarded to an invalid location

When a call forward attempt is made from a Queue member, the current
code will hang up the forwarding channel in an off-nominal condition
prior to raising the Stasis events informing the rest of Asterisk that
the call was forwarded. This will result in a slew of dreaded FRACKs,
most likely leading to a crash.

This patch modifies the code such that we don't hang up the forwarding
channel even in an off-nominal condition until we've safely raised the
Stasis messages.

ASTERISK-25797 #close

Change-Id: Ife5abed351691fd79105321636eaa8ea8dcdba38
apps/app_queue.c