]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: Allow stasis message filtering to work.
authorJoshua C. Colp <jcolp@sangoma.com>
Fri, 10 Oct 2025 15:53:42 +0000 (12:53 -0300)
committerJoshua C. Colp <jcolp@sangoma.com>
Tue, 14 Oct 2025 19:55:40 +0000 (19:55 +0000)
commit6944a7d2d7bbe758e3547d07905fa241ff930693
tree8f07d2b8d0ffad5c2ba45e1b6f5e0b235ed92d18
parent30c79b817d287a02a4c584366976c6e8c996852a
app_queue: Allow stasis message filtering to work.

The app_queue module subscribes on a per-dialed agent basis to both
the bridge all and channel all topics to keep apprised of things going
on involving them. This subscription has associated state that must
be cleaned up when the subscription ends. This was done by setting
a default router callback that only had logic to handle the case
where the subscription ends. By using the default router callback
all filtering for the subscription was disabled, causing unrelated
messages to get published and handled by it.

This change makes it so that an explicit route is added for the
message type used for the message indicating the subscription has
ended and removes the default router callback. This allows message
filtering to occur on publishing reducing the messages to app_queue
to only those it is interested in.
apps/app_queue.c