summaryrefslogtreecommitdiff
path: root/include/asterisk/res_pjsip_session.h
diff options
context:
space:
mode:
authorIvan Poddubny <ivan.poddubny@gmail.com>2017-12-12 22:38:01 +0100
committerIvan Poddubny <ivan.poddubny@gmail.com>2017-12-12 16:05:33 -0600
commit61362f247e64b8e57e118c6d314c13bbd149d404 (patch)
treef191cfdd0996a68a2cbdb2afbb403ccce4516b8f /include/asterisk/res_pjsip_session.h
parent0384e49a6e293ae27e98fafd2b593fbfa330847c (diff)
app_queue: Fix extension state subscriptions removed on dialplan reload
The approach with having a single global subscription to all extension state changes has one issue: dynamically created hints don't have any watchers and are therefore garbage collected on the first dialplan reload. This change creates a state subscription for every queue member with a hint as state_interface, thus increasing the count of watches for hints, so they are not destroyed prematurely anymore. There are 2 side effects: 1. The state change callback in app_queue is not executed when there are no members referring to the extension. 2. The callback is called multiple times for the same hint if it's associated with more than one queue member. Reported by: Steven T. Wheeler ASTERISK-18411 #close Change-Id: I4956af2136ea2a7f110ac9272eae5f6e676d8f89
Diffstat (limited to 'include/asterisk/res_pjsip_session.h')
0 files changed, 0 insertions, 0 deletions