Make app_queue and res_agi independent of AMI being enabled.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 8 Oct 2013 15:12:46 +0000 (15:12 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 8 Oct 2013 15:12:46 +0000 (15:12 +0000)
commit8eec8fbf8396848500edad3f52ab7a7cea2ef4c4
treef8ba39e0291fdb3d365afe8b056d05db201c144a
parent96d27333d2f2629565932b7ad90ca8fbf557b951
Make app_queue and res_agi independent of AMI being enabled.

The https://reviewboard.asterisk.org/r/2888/ review changes manager to not
subscribe to stasis when it is disabled for performance reasons.  When
manager is disabled app_queue and res_agi decline to load and fail to
clean up what they have already allocated.

* Made app_queue and res_agi clean up allocated resources when they
decline to load.

* Made app_queue and res_agi use their own subscriptions to the stasis
topics instead of borrowing manager's message router structure
inappropriately.

(closes issue ASTERISK-22604)
Reported by: rmudgett

Review: https://reviewboard.asterisk.org/r/2902/
........

Merged revisions 400671 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400672 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_queue.c
res/res_agi.c