]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ARI: Don't leak implementation details
authorKinsey Moore <kmoore@digium.com>
Fri, 22 Nov 2013 20:01:26 +0000 (20:01 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 22 Nov 2013 20:01:26 +0000 (20:01 +0000)
commit0045449943b7024a12deef9d859fb445dbac99bd
treeb7c781872419405e1a45813ad053897e5203c2cb
parent1ac597135a4964dd67aa8f03b3b415129e1e21f3
ARI: Don't leak implementation details

This change prevents channels used as implementation details from
leaking out to ARI. It does this by preventing creation of JSON blobs
of channel snapshots created from those channels and sanitizing JSON
blobs of bridge snapshots as they are created. This introduces a
framework for excluding information from output targeted at Stasis
applications on a consumer-by-consumer basis using channel sanitization
callbacks which could be extended to bridges or endpoints if necessary.

This prevents unhelpful error messages from being generated by
ast_json_pack.

This also corrects a bug where BridgeCreated events would not be
created.

(closes issue ASTERISK-22744)
Review: https://reviewboard.asterisk.org/r/2987/
Reported by: David M. Lee

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@403069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
16 files changed:
include/asterisk/stasis.h
include/asterisk/stasis_app.h
include/asterisk/stasis_bridges.h
include/asterisk/stasis_channels.h
include/asterisk/stasis_endpoints.h
main/json.c
main/rtp_engine.c
main/stasis_bridges.c
main/stasis_channels.c
main/stasis_endpoints.c
main/stasis_message.c
res/ari/resource_bridges.c
res/ari/resource_channels.c
res/ari/resource_endpoints.c
res/res_stasis.c
res/stasis/app.c