]> git.ipfire.org Git - thirdparty/asterisk.git/commit
apps/app_dial: Fix crash on non-connect call paths for Privacy/Screening option 22/3822/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:04:21 +0000 (16:04 -0500)
commitdf3d0188e4f4056d669615433e5b3cafc1c56d0f
tree80c8f09e9ca9449a293da8a561dc07dcdd7899cb
parenta64063cc9720637c1f54f85bb48d54b0e0ae8d3d
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