Merged revisions 8608 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 25 Jan 2006 01:52:58 +0000 (01:52 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 25 Jan 2006 01:52:58 +0000 (01:52 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r8608 | kpfleming | 2006-01-24 19:50:52 -0600 (Tue, 24 Jan 2006) | 2 lines

ensure hangup cause code is handled properly when channel does not return a frame (issue #6346)

........

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

apps/app_dial.c

index 25fa9cf..2dddc64 100644 (file)
@@ -657,6 +657,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
                                        ast_hangup(o->chan);
                                        o->chan = NULL;
                                        ast_clear_flag(o, DIAL_STILLGOING);
+                                       HANDLE_CAUSE(in->hangupcause, in);
                                }
                        }
                        o = o->next;