diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-14 22:59:05 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-14 22:59:05 +0000 |
commit | 4f48b54fbe270dcf832deca8bfd97350087e9173 (patch) | |
tree | 792425da51a48e4f00b4bb1f6768958836c35932 /main/channel.c | |
parent | bb05d8314e5fbbd9b2ece152f072f579c9981701 (diff) |
Add callerid to the Hangup manager event.
Reported by: outtolunc
Patch by: outtolunc
Closes issue #11248
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89273 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 4 |
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) ); |