diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-22 23:17:33 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-22 23:17:33 +0000 |
commit | 43a79d265d7cceb1591be26275b3c67181b132d4 (patch) | |
tree | 4a68eac2edf7956fe846532978ff8d58aae59da7 /apps/app_dial.c | |
parent | 3730ecc3667c873853439814d42de13447542292 (diff) |
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
Diffstat (limited to 'apps/app_dial.c')
-rwxr-xr-x | apps/app_dial.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 10ba7f8a8..03bbbbb9a 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -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); |