]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: Fix hint updates for included contexts
authorNaveen Albert <asterisk@phreaknet.org>
Sun, 5 Sep 2021 18:11:57 +0000 (18:11 +0000)
committerKevin Harwell <kharwell@digium.com>
Tue, 21 Sep 2021 22:22:38 +0000 (17:22 -0500)
commit5abf499d23aa8eb91cd2ffda40a4c21a8de1f783
treee0d81961b4cd5898c2e230b0965d75b27a3a1e2d
parent02f54e2751802950c5499dcf83ecdefe038aaad5
app_queue: Fix hint updates for included contexts

Previously, if custom hints were used with the hint:
format in app_queue, when device state changes occured,
app_queue would only do a literal string comparison of
the context used for the hint in app_queue and the context
of the hint which just changed state. This caused hints
to not update and become stale if the context associated
with the agent included the context which actually changes
state, essentially completely breaking device state for
any such agents defined in this manner.

This fix adds an additional check to ensure that included
contexts are also compared against the context which changed
state, so that the behavior is correct no matter whether the
context is specified to app_queue directly or indirectly.

ASTERISK-29578 #close

Change-Id: I8caf2f8da8157ef3d9ea71a8568c1eec95592b78
apps/app_queue.c