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
Showing
- include/asterisk/stasis_message_router.h 22 additions, 1 deletioninclude/asterisk/stasis_message_router.h
- main/manager.c 2 additions, 2 deletionsmain/manager.c
- main/manager_channels.c 4 additions, 0 deletionsmain/manager_channels.c
- main/stasis_message_router.c 19 additions, 4 deletionsmain/stasis_message_router.c
- res/stasis/app.c 19 additions, 7 deletionsres/stasis/app.c
Loading
Please register or sign in to comment