mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 03:04:19 +00:00
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
This commit is contained in:
@@ -607,6 +607,9 @@ static struct ast_channel *wait_for_winner(struct findme_user_listptr *findme_us
|
||||
switch(f->subclass) {
|
||||
case AST_CONTROL_HANGUP:
|
||||
ast_verb(3, "%s received a hangup frame.\n", winner->name);
|
||||
if (f->seqno) {
|
||||
winner->hangupcause = f->seqno;
|
||||
}
|
||||
if (dg == 0) {
|
||||
ast_verb(3, "The calling channel hungup. Need to drop everyone else.\n");
|
||||
clear_calling_tree(findme_user_list);
|
||||
|
||||
Reference in New Issue
Block a user