summaryrefslogtreecommitdiff
path: root/main/asterisk.c
diff options
context:
space:
mode:
authorEliel C. Sardanons <eliels@gmail.com>2010-04-22 18:07:02 +0000
committerEliel C. Sardanons <eliels@gmail.com>2010-04-22 18:07:02 +0000
commita753e8878b8a30122fd5f0af45bad242de0cb303 (patch)
treed5bd73cbba3ce087868b07fa87d38ea0b298add2 /main/asterisk.c
parent8096f0feccd0840aece3b85d8c2bffdef48dda47 (diff)
Asterisk data retrieval API.
This module implements an abstraction for retrieving and exporting asterisk data. Developed by: Brett Bryant <brettbryant@gmail.com> Eliel C. Sardanons (LU1ALY) <eliels@gmail.com> For the Google Summer of code 2009 Project. Documentation can be found in doxygen format and inside the header include/asterisk/data.h Review: https://reviewboard.asterisk.org/r/275/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@258517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 57ccc3f63..6751456c1 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -3611,6 +3611,12 @@ int main(int argc, char *argv[])
ast_xmldoc_load_documentation();
#endif
+ /* initialize the data retrieval API */
+ if (ast_data_init()) {
+ printf ("%s", term_quit());
+ exit(1);
+ }
+
ast_channels_init();
if ((moduleresult = load_modules(1))) { /* Load modules, pre-load only */