Hangup handlers - Dialplan subroutines that run when the channel hangs up.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 29 Jun 2012 17:02:32 +0000 (17:02 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 29 Jun 2012 17:02:32 +0000 (17:02 +0000)
commitac35b92b628064a1fcf962895f0befd57aff0442
tree0f2a4fb769643d0ae24dfed49468d80e8652aabf
parent35c533156cf94b005bd7c561d69e40dc5e837dd6
Hangup handlers - Dialplan subroutines that run when the channel hangs up.

Hangup handlers are an alternative to the h extension.  They can be used
in addition to the h extension.  The idea is to attach a Gosub routine to
a channel that will execute when the call hangs up.  Whereas which h
extension gets executed depends on the location of dialplan execution when
the call hangs up, hangup handlers are attached to the call channel.  You
can attach multiple handlers that will execute in the order of most
recently added first.

(closes issue ASTERISK-19549)
Reported by: Mark Murawski
Tested by: rmudgett

Review: https://reviewboard.asterisk.org/r/2002/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369493 65c4cc65-6c06-0410-ace0-fbb531ad65f3
14 files changed:
CHANGES
apps/app_dial.c
apps/app_followme.c
apps/app_queue.c
channels/chan_local.c
configs/cdr.conf.sample
funcs/func_channel.c
include/asterisk/channel.h
include/asterisk/pbx.h
main/autoservice.c
main/channel.c
main/channel_internal_api.c
main/features.c
main/pbx.c