[asterisk-commits] rmudgett: trunk r370309 - /trunk/main/channel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 19 20:15:59 CDT 2012
Author: rmudgett
Date: Thu Jul 19 20:15:55 2012
New Revision: 370309
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=370309
Log:
Add the AccountCode header to the AMI Hangup event.
It's harder to correlate the Newchannel and Hangup AMI events without
specifying "AccountCode" in both.
(closes issue ASTERISK-19963)
Reported by: Oleg A. Arkhangelsky
Patches:
hangup_acctcode.diff (license #6397) patch uploaded by Oleg A. Arkhangelsky
Modified:
trunk/main/channel.c
Modified: trunk/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/channel.c?view=diff&rev=370309&r1=370308&r2=370309
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Thu Jul 19 20:15:55 2012
@@ -2758,6 +2758,7 @@
"CallerIDName: %s\r\n"
"ConnectedLineNum: %s\r\n"
"ConnectedLineName: %s\r\n"
+ "AccountCode: %s\r\n"
"Cause: %d\r\n"
"Cause-txt: %s\r\n",
ast_channel_name(chan),
@@ -2766,6 +2767,7 @@
S_COR(ast_channel_caller(chan)->id.name.valid, ast_channel_caller(chan)->id.name.str, "<unknown>"),
S_COR(ast_channel_connected(chan)->id.number.valid, ast_channel_connected(chan)->id.number.str, "<unknown>"),
S_COR(ast_channel_connected(chan)->id.name.valid, ast_channel_connected(chan)->id.name.str, "<unknown>"),
+ ast_channel_accountcode(chan),
ast_channel_hangupcause(chan),
ast_cause2str(ast_channel_hangupcause(chan))
);
More information about the asterisk-commits
mailing list