From: Tilghman Lesher Date: Wed, 14 Nov 2007 22:59:05 +0000 (+0000) Subject: Add callerid to the Hangup manager event. X-Git-Tag: 1.6.0-beta1~3^2~878 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=36d9a5aaf30795955cd84c2bda5c18d0f975d4ff;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/channel.c b/main/channel.c index c914b6b7bd..c8480c5a10 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, "cid.cid_name, "hangupcause, ast_cause2str(chan->hangupcause) );