Copy hangup cause at end of a good call
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3042 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
3730ecc366
commit
43a79d265d
|
@ -877,8 +877,11 @@ static int dial_exec(struct ast_channel *chan, void *data)
|
|||
} else
|
||||
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);
|
||||
}
|
||||
}
|
||||
out:
|
||||
hanguptree(outgoing, NULL);
|
||||
|
|
Reference in New Issue