Merge a large set of updates to the Asterisk indications API.
authorRussell Bryant <russell@russellbryant.com>
Tue, 17 Feb 2009 20:41:24 +0000 (20:41 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 17 Feb 2009 20:41:24 +0000 (20:41 +0000)
commit4ec301360cdd84be911b06cd0adda2459d66bc6e
tree106de0147974e2e7f7c18dec2d603d9060afebc2
parent4ac9617be56f49ad4918d242c897e32b91298fb8
Merge a large set of updates to the Asterisk indications API.

This patch includes a number of changes to the indications API.  The primary
motivation for this work was to improve stability.  The object management
in this API was significantly flawed, and a number of trivial situations could
cause crashes.

The changes included are:

1) Remove the module res_indications.  This included the critical functionality
   that actually loaded the indications configuration.  I have seen many people
   have Asterisk problems because they accidentally did not have an
   indications.conf present and loaded.  Now, this code is in the core,
   and Asterisk will fail to start without indications configuration.

   There was one part of res_indications, the dialplan applications, which did
   belong in a module, and have been moved to a new module, app_playtones.

2) Object management has been significantly changed.  Tone zones are now
   managed using astobj2, and it is no longer possible to crash Asterisk by
   issuing a reload that destroys tone zones while they are in use.

3) The API documentation has been filled out.

4) The API has been updated to follow our naming conventions.

5) Various bits of code throughout the tree have been updated to account
   for the API update.

6) Configuration parsing has been mostly re-written.

7) "Code cleanup"

The code is from svn/asterisk/team/russell/indications/.

Review: http://reviewboard.digium.com/r/149/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@176627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 files changed:
UPGRADE.txt
apps/app_disa.c
apps/app_playtones.c [new file with mode: 0644]
apps/app_read.c
apps/app_readexten.c
channels/chan_misdn.c
channels/chan_skinny.c
channels/chan_unistim.c
configs/indications.conf.sample
funcs/func_channel.c
include/asterisk/_private.h
include/asterisk/channel.h
include/asterisk/indications.h
main/app.c
main/asterisk.c
main/channel.c
main/indications.c
main/loader.c
main/pbx.c
res/res_indications.c [deleted file]
res/snmp/agent.c