]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis: Add internal filtering of messages.
authorJoshua Colp <jcolp@digium.com>
Sun, 23 Sep 2018 20:50:01 +0000 (17:50 -0300)
committerJoshua Colp <jcolp@digium.com>
Sun, 18 Nov 2018 20:07:56 +0000 (14:07 -0600)
commitd748ed4147f0b589fb8b7fca60538c9aede80ccb
tree12d799b2863b5f604f8c4b254274c20ef56a6574
parent7ec470c1ca7fe15905fc1161e74c6376611cadba
stasis: Add internal filtering of messages.

This change adds the ability for subscriptions to indicate
which message types they are interested in accepting. By
doing so the filtering is done before being dispatched
to the subscriber, reducing the amount of work that has
to be done.

This is optional and if a subscriber does not add
message types they wish to accept and set the subscription
to selective filtering the previous behavior is preserved
and they receive all messages.

There is also the ability to explicitly force the reception
of all messages for cases such as AMI or ARI where a large
number of messages are expected that are then generically
converted into a different format.

ASTERISK-28103

Change-Id: I99bee23895baa0a117985d51683f7963b77aa190
33 files changed:
apps/app_queue.c
channels/chan_dahdi.c
channels/chan_iax2.c
channels/chan_mgcp.c
channels/chan_sip.c
channels/chan_skinny.c
channels/sig_pri.c
include/asterisk/stasis.h
include/asterisk/stasis_cache_pattern.h
include/asterisk/stasis_message_router.h
main/ccss.c
main/devicestate.c
main/endpoints.c
main/manager.c
main/pbx.c
main/presencestate.c
main/stasis.c
main/stasis_cache.c
main/stasis_cache_pattern.c
main/stasis_message.c
main/stasis_message_router.c
res/parking/parking_applications.c
res/parking/parking_bridge_features.c
res/parking/parking_manager.c
res/res_hep_rtcp.c
res/res_pjsip_mwi.c
res/res_pjsip_outbound_registration.c
res/res_pjsip_publish_asterisk.c
res/res_pjsip_pubsub.c
res/res_pjsip_refer.c
res/res_security_log.c
res/res_stasis_device_state.c
res/res_xmpp.c