Perform Ring-No-Answer checks before processing Hangup logic
authorMatthew Jordan <mjordan@digium.com>
Wed, 7 Aug 2013 21:38:17 +0000 (21:38 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 7 Aug 2013 21:38:17 +0000 (21:38 +0000)
commit200ed6a405405497ba1e498c52fd27f5b84b43f7
tree5eae10376961402f10b52c85d1cb09f26dd68e8e
parent860ab29dab3dcbe36460cc5ea108435e036396af
Perform Ring-No-Answer checks before processing Hangup logic

The rna() routine will raise a Stasis message involving both the caller and the
agent. This doesn't work so well if we already hung up the agent channel, as
the channel doesn't quite exist. Not surprisingly, this will crash. This patch
properly runs the rna subroutine (performing all of the Ring-No-Answer logic)
prior to hanging up the agent channel.

(closes issue ASTERISK-22258)
Reported by: Kiril Valchev
Tested by: Kiril Valchev

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