diff options
author | Jeff Peeler <jpeeler@digium.com> | 2009-04-14 15:54:16 +0000 |
---|---|---|
committer | Jeff Peeler <jpeeler@digium.com> | 2009-04-14 15:54:16 +0000 |
commit | 1172c386471e00598af47a0689ed19f7d43b0b63 (patch) | |
tree | e97a2215b2d25fa450635082b3eed88a45c2f9b0 /include | |
parent | 34080f9cbecd9094088821f1b287742103896079 (diff) |
Add service maintenance message support
This is the companion commit to libpri r732. Service messages are now supported
for switch types 4ess/5ess. A new option service_message_support has been added
to chan_dahdi.conf and is noted in the sample config file. The service message
support is turned off by default. The current implementation relies on AstDB
to keep track of channel state, which allows the statuses to be preserved
across Asterisk restarts. Below is a description of the storage format.
The state and reason for the service state are in the form <state>:<reason>,
where:
<state> ::= { 'O' } // 'O' – Out Of Service
<reason> ::= { '0' | '1' | '2' | '3' }, where:
'0' – No reason (backwards compatibility)
'1' – NEAR END
'2' – FAR END
'3' – both NEAR and FAR END
The new CLI commands to handle channel service state are:
pri service disable channel <chan>
pri service enable channel <chan>
Many people contributed to the development of this functionality. Because I
entered at the very end I do not know the exact history. Special thanks to
all who moved the bug forward one way or another:
cmaj, PCadach, markster, mattf, drmac, MikeJ, serge-v, murf, kanelbullar, Seb7,
tilghman, lmadsen, and especially dhubbard (he answered lots of my questions
and did a large portion of the work)
(closes issue #3450)
Reported by: cmaj
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@188342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/autoconfig.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asterisk/autoconfig.h.in b/include/asterisk/autoconfig.h.in index dc95c8392..dba007d47 100644 --- a/include/asterisk/autoconfig.h.in +++ b/include/asterisk/autoconfig.h.in @@ -671,6 +671,12 @@ /* Define to indicate the ${PRI_PROG_W_CAUSE_DESCRIP} library version */ #undef HAVE_PRI_PROG_W_CAUSE_VERSION +/* Define this to indicate the ${PRI_SERVICE_MESSAGES_DESCRIP} library */ +#undef HAVE_PRI_SERVICE_MESSAGES + +/* Define to indicate the ${PRI_SERVICE_MESSAGES_DESCRIP} library version */ +#undef HAVE_PRI_SERVICE_MESSAGES_VERSION + /* Define to indicate the ${PRI_DESCRIP} library version */ #undef HAVE_PRI_VERSION |