[asterisk-commits] tilghman: trunk r89273 - /trunk/main/channel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Nov 14 16:59:05 CST 2007
Author: tilghman
Date: Wed Nov 14 16:59:05 2007
New Revision: 89273
URL: http://svn.digium.com/view/asterisk?view=rev&rev=89273
Log:
Add callerid to the Hangup manager event.
Reported by: outtolunc
Patch by: outtolunc
Closes issue #11248
Modified:
trunk/main/channel.c
Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=89273&r1=89272&r2=89273
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Wed Nov 14 16:59:05 2007
@@ -1468,10 +1468,14 @@
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)
);
More information about the asterisk-commits
mailing list