Make the Hangup application set a softhangup flag.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 14 Jun 2012 22:57:21 +0000 (22:57 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 14 Jun 2012 22:57:21 +0000 (22:57 +0000)
commitaaa591447d908ef41404e75b7ed350eef56f905f
tree2f185e03ad6fd649f7429a9320db46f76d6b3721
parentc5256059b8c0bfd905c04ec4b12b08e1f9d04787
Make the Hangup application set a softhangup flag.

The Hangup application used to just return -1 to cause normal dialplan
execution to hangup a channel.  For the non-normal execution routines like
predial and connected-line interception routines, the hangup request would
exit the routine early but otherwise be ignored.

* Made the Hangup application not allow setting a cause code of zero.  A
zero cause code is not defined.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/pbx.c