[asterisk-commits] kmoore: trunk r416149 - in /trunk: ./ main/cel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jun 13 07:56:12 CDT 2014
Author: kmoore
Date: Fri Jun 13 07:56:06 2014
New Revision: 416149
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=416149
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.
........
Merged revisions 416148 from http://svn.asterisk.org/svn/asterisk/branches/12
Modified:
trunk/ (props changed)
trunk/main/cel.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.
Modified: trunk/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/cel.c?view=diff&rev=416149&r1=416148&r2=416149
==============================================================================
--- trunk/main/cel.c (original)
+++ trunk/main/cel.c Fri Jun 13 07:56:06 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