mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Copy hangup cause at end of a good call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -877,8 +877,11 @@ static int dial_exec(struct ast_channel *chan, void *data)
|
|||||||
} else
|
} else
|
||||||
res = -1;
|
res = -1;
|
||||||
|
|
||||||
if (res != AST_PBX_NO_HANGUP_PEER)
|
if (res != AST_PBX_NO_HANGUP_PEER) {
|
||||||
|
if (!chan->_softhangup)
|
||||||
|
chan->hangupcause = peer->hangupcause;
|
||||||
ast_hangup(peer);
|
ast_hangup(peer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
hanguptree(outgoing, NULL);
|
hanguptree(outgoing, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user