diff options
author | Kevin Harwell <kharwell@digium.com> | 2014-12-09 20:20:27 +0000 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2014-12-09 20:20:27 +0000 |
commit | d673209abcd1a80e3c79153fd639bd84d21045e5 (patch) | |
tree | a294e1f3b5bb278600bf2f7b2365b4ea1a32075a /main/stasis_channels.c | |
parent | c17cef1c383e34128cb8e3b3bdd573bad72caf75 (diff) |
ARI/AMI: Include language in standard channel snapshot output
The channel "language" was already part of a channel snapshot, however is was
not sent out over AMI or ARI. This patch makes it so the channel "language" is
included in the appropriate AMI or ARI events.
ASTERISK-24553 #close
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/4245/
........
Merged revisions 429204 from http://svn.asterisk.org/svn/asterisk/branches/12
........
Merged revisions 429206 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@429209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/stasis_channels.c')
-rw-r--r-- | main/stasis_channels.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/stasis_channels.c b/main/stasis_channels.c index 816efdb45..11a2941fa 100644 --- a/main/stasis_channels.c +++ b/main/stasis_channels.c @@ -888,7 +888,7 @@ struct ast_json *ast_channel_snapshot_to_json( /* Broken up into groups of three for readability */ "{ s: s, s: s, s: s," " s: o, s: o, s: s," - " s: o, s: o }", + " s: o, s: o, s: s }", /* First line */ "id", snapshot->uniqueid, "name", snapshot->name, @@ -902,7 +902,8 @@ struct ast_json *ast_channel_snapshot_to_json( /* Third line */ "dialplan", ast_json_dialplan_cep( snapshot->context, snapshot->exten, snapshot->priority), - "creationtime", ast_json_timeval(snapshot->creationtime, NULL)); + "creationtime", ast_json_timeval(snapshot->creationtime, NULL), + "language", snapshot->language); return ast_json_ref(json_chan); } |