]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis / manager / ari: Better filter messages.
authorJoshua C. Colp <jcolp@digium.com>
Thu, 10 Jan 2019 19:34:32 +0000 (15:34 -0400)
committerJoshua C. Colp <jcolp@digium.com>
Thu, 17 Jan 2019 18:52:08 +0000 (12:52 -0600)
commitfcd07c34fbaa764cee47204a6bea838b8f4a3a27
tree0b12e760bfe265ee8e89b7a560ae4cf6eae9cf9d
parent44a862fb576cbc76165f2dc07cc443328b10ea09
stasis / manager / ari: Better filter messages.

Previously both AMI and ARI used a default route on
their stasis message router to handle some of the
messages for publishing out their respective
connection. This caused messages to be given to
their subscription that could not be formatted
into AMI or JSON.

This change adds an API call to the stasis message
router which allows a default route to be set as well
as formatters that the default route is expecting.
This allows both AMI and ARI to specify that their
default route only wants messages of their given
formatter. By doing so stasis can more intelligently
filter at publishing time so that they do not receive
messages which will not be turned into AMI or JSON.

ASTERISK-28244

Change-Id: I65272819a53ce99f869181d1d370da559a7d1703
include/asterisk/stasis_message_router.h
main/manager.c
main/manager_channels.c
main/stasis_message_router.c
res/stasis/app.c