]> git.ipfire.org Git - thirdparty/asterisk.git/commit
apps/app_dial: Fix crash on non-connect call paths for Privacy/Screening option 25/3825/1
authorMatt Jordan <mjordan@digium.com>
Sat, 3 Sep 2016 21:04:21 +0000 (16:04 -0500)
committerMatt Jordan <mjordan@digium.com>
Sat, 3 Sep 2016 21:07:23 +0000 (16:07 -0500)
commit3e054a382618f582b5f0ac198027e611fb6815bc
tree5b76b54a69fcb6f10484c2ec58d6cdcf492da378
parent971c96e3dfd06b91a5d635f8ccb32ff9e6248fd6
apps/app_dial: Fix crash on non-connect call paths for Privacy/Screening option

In any scenario in which the callee is not connected to the caller, the
current code in app_dial will crash due to raising a Dial End Stasis
Message after the callee channel has been hung up. This patch corrects
the error by simply moving the explicit hangup of the callee (peer)
channel until after the dial end message.

ASTERISK-25691 #close

Change-Id: I816a414014424d0d8c80e2a3cbef13ef8c63798d
apps/app_dial.c