Skip to content
Snippets Groups Projects
  1. Dec 15, 2017
  2. Dec 14, 2017
  3. Dec 13, 2017
  4. Dec 12, 2017
    • Ivan Poddubny's avatar
      app_queue: Fix extension state subscriptions removed on dialplan reload · c7f94e57
      Ivan Poddubny authored
      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
      c7f94e57
Loading