summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2007-11-14 22:59:05 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2007-11-14 22:59:05 +0000
commit36d9a5aaf30795955cd84c2bda5c18d0f975d4ff (patch)
tree792425da51a48e4f00b4bb1f6768958836c35932 /main
parent20d24e1027e2d690009408938bda44ef40c34e1a (diff)
Add callerid to the Hangup manager event.
Reported by: outtolunc Patch by: outtolunc Closes issue #11248 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/channel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index c914b6b7b..c8480c5a1 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -1468,10 +1468,14 @@ int ast_hangup(struct ast_channel *chan)
manager_event(EVENT_FLAG_CALL, "Hangup",
"Channel: %s\r\n"
"Uniqueid: %s\r\n"
+ "CallerIDNum: %s\r\n"
+ "CallerIDName: %s\r\n"
"Cause: %d\r\n"
"Cause-txt: %s\r\n",
chan->name,
chan->uniqueid,
+ S_OR(chan->cid.cid_num, "<unknown"),
+ S_OR(chan->cid.cid_name, "<unknown"),
chan->hangupcause,
ast_cause2str(chan->hangupcause)
);