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:
785ac43
)
Add hangupcause to the hangup manager event
author
Jeremy McNamara
<jj@nufone.net>
Fri, 19 Mar 2004 09:37:28 +0000
(09:37 +0000)
committer
Jeremy McNamara
<jj@nufone.net>
Fri, 19 Mar 2004 09:37:28 +0000
(09:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2473
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channel.c
patch
|
blob
|
history
diff --git
a/channel.c
b/channel.c
index
02e0049
..
f5b9fc3
100755
(executable)
--- a/
channel.c
+++ b/
channel.c
@@
-681,8
+681,9
@@
int ast_hangup(struct ast_channel *chan)
ast_mutex_unlock(&chan->lock);
manager_event(EVENT_FLAG_CALL, "Hangup",
"Channel: %s\r\n"
- "Uniqueid: %s\r\n",
- chan->name, chan->uniqueid);
+ "Uniqueid: %s\r\n"
+ "Cause: %i\r\n",
+ chan->name, chan->uniqueid, chan->hangupcause);
ast_channel_free(chan);
return res;
}