[asterisk-commits] kmoore: trunk r417383 - /trunk/main/cel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 26 09:48:28 CDT 2014


Author: kmoore
Date: Thu Jun 26 09:48:21 2014
New Revision: 417383

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=417383
Log:
CEL: Add bridge tech to relevant CEL records

Add the "bridge_technology" extra field key to BRIDGE_ENTER and
BRIDGE_EXIT CEL events to convey the bridge technology in use at the
time the record was generated.

Modified:
    trunk/main/cel.c

Modified: trunk/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/cel.c?view=diff&rev=417383&r1=417382&r2=417383
==============================================================================
--- trunk/main/cel.c (original)
+++ trunk/main/cel.c Thu Jun 26 09:48:21 2014
@@ -1167,7 +1167,9 @@
 		return;
 	}
 
-	extra = ast_json_pack("{s: s}", "bridge_id", snapshot->uniqueid);
+	extra = ast_json_pack("{s: s, s: s}",
+		"bridge_id", snapshot->uniqueid,
+		"bridge_technology", snapshot->technology);
 	if (!extra) {
 		return;
 	}
@@ -1194,7 +1196,9 @@
 		return;
 	}
 
-	extra = ast_json_pack("{s: s}", "bridge_id", snapshot->uniqueid);
+	extra = ast_json_pack("{s: s, s: s}",
+		"bridge_id", snapshot->uniqueid,
+		"bridge_technology", snapshot->technology);
 	if (!extra) {
 		return;
 	}




More information about the asterisk-commits mailing list