[asterisk-commits] kmoore: branch 12 r416148 - /branches/12/main/cel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jun 13 07:52:47 CDT 2014
Author: kmoore
Date: Fri Jun 13 07:52:38 2014
New Revision: 416148
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=416148
Log:
CEL: Expose parking retreiver in extra field
This exposes the retreiver of a parked call under the "retreiver" key
of the extra field when this information is available.
Modified:
branches/12/main/cel.c
Modified: branches/12/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/cel.c?view=diff&rev=416148&r1=416147&r2=416148
==============================================================================
--- branches/12/main/cel.c (original)
+++ branches/12/main/cel.c Fri Jun 13 07:52:38 2014
@@ -1241,7 +1241,14 @@
break;
}
- extra = ast_json_pack("{s: s}", "reason", reason);
+ if (parked_payload->retriever) {
+ extra = ast_json_pack("{s: s, s: s}",
+ "reason", reason,
+ "retriever", parked_payload->retriever->name);
+ } else {
+ extra = ast_json_pack("{s: s}", "reason", reason);
+ }
+
if (extra) {
cel_report_event(parked_payload->parkee, AST_CEL_PARK_END, NULL, extra, NULL);
}
More information about the asterisk-commits
mailing list