summaryrefslogtreecommitdiff
path: root/main/cel.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2014-06-26 14:48:21 +0000
committerKinsey Moore <kmoore@digium.com>2014-06-26 14:48:21 +0000
commit6145a57c8304e6188d58d821b48cd185f55f7748 (patch)
treeeb48ef63fb2cc04f8a4f963af1f1fc09e20e78e3 /main/cel.c
parente977b7936b02bcd33a35bf7c4e5b51f496f727e5 (diff)
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. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@417383 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cel.c')
-rw-r--r--main/cel.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/main/cel.c b/main/cel.c
index c7f4fc366..57fb946a4 100644
--- a/main/cel.c
+++ b/main/cel.c
@@ -1167,7 +1167,9 @@ static void cel_bridge_enter_cb(
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 @@ static void cel_bridge_leave_cb(
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;
}