From 08e674bce0e7ce47068f495ff437549d7e20496c Mon Sep 17 00:00:00 2001 From: Michiel van Baak Date: Thu, 24 Apr 2008 22:16:48 +0000 Subject: Pass the hangup cause all the way to the calling app/channel. (closes issue #11328) Reported by: rain Patches: 20071207__pass_cause_in_hangup_control_frame.diff.txt uploaded by Corydon76 (license 14) brought up-to-date to trunk by me git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114637 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_alarmreceiver.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/app_alarmreceiver.c') diff --git a/apps/app_alarmreceiver.c b/apps/app_alarmreceiver.c index 45b11aca5..5230681f2 100644 --- a/apps/app_alarmreceiver.c +++ b/apps/app_alarmreceiver.c @@ -252,6 +252,9 @@ static int receive_dtmf_digits(struct ast_channel *chan, char *digit_string, int /* If they hung up, leave */ if ((f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_HANGUP)) { + if (f->seqno) { + chan->hangupcause = f->seqno; + } ast_frfree(f); res = -1; break; -- cgit v1.2.3