Add callerid to the Hangup manager event.
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 14 Nov 2007 22:59:05 +0000 (22:59 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 14 Nov 2007 22:59:05 +0000 (22:59 +0000)
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

main/channel.c

index c914b6b..c8480c5 100644 (file)
@@ -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)
                        );