projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e300367
)
Copy hangup cause at end of a good call
author
Mark Spencer
<markster@digium.com>
Sat, 22 May 2004 23:17:33 +0000
(23:17 +0000)
committer
Mark Spencer
<markster@digium.com>
Sat, 22 May 2004 23:17:33 +0000
(23:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3042
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_dial.c
patch
|
blob
|
history
diff --git
a/apps/app_dial.c
b/apps/app_dial.c
index
10ba7f8
..
03bbbbb
100755
(executable)
--- 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);