dect
/
asterisk
Archived
13
0
Fork 0

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:
markster 2004-05-22 23:17:33 +00:00
parent 3730ecc366
commit 43a79d265d
1 changed files with 4 additions and 1 deletions

View File

@ -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);