mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user