Reduce the amount of database access for HAVE_PRI_SERVICE_MESSAGES.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 10 Mar 2010 03:16:50 +0000 (03:16 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 10 Mar 2010 03:16:50 +0000 (03:16 +0000)
commitee5e65194fd6975b2bc7ffe7a2f3358a9e891167
tree52221e2c3b9b82d6ea92c85e69908ccde7e45166
parentc1e33534a524c2dab8966e5f54fa4acc2f3a928e
Reduce the amount of database access for HAVE_PRI_SERVICE_MESSAGES.

Rework HAVE_PRI_SERVICE_MESSAGES to not use the active values directly
from the database.  Database access is likely expensive.  Database access
now only happens on initialization, destruction, and when the B channel is
taken in or out of service.

This change is not related to call waiting but it would cause the search
for a call waiting interface to be very expensive and slow down D channel
message servicing.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@251538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c
channels/sig_pri.c
channels/sig_pri.h