diff options
author | Steve Murphy <murf@digium.com> | 2007-08-15 19:21:27 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2007-08-15 19:21:27 +0000 |
commit | 9836efb5fb8f1bf750524f9dc99febf77597470b (patch) | |
tree | 85730165ce45a65a5e7bfcc9fceab9626317e49d /res/res_ael_share.c | |
parent | 5fbd7ebd248cff5905e26bb11a4a713c1287864d (diff) |
This commit closes bug 7605, and half-closes 7638. The AEL code has been redistributed/repartitioned to allow code re-use both inside and outside of Asterisk. This commit introduces the utils/conf2ael program, and an external config-file reader, for both normal config files, and for extensions.conf (context, exten, prio); It provides an API for programs outside of asterisk to use to play with the dialplan and config files.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_ael_share.c')
-rw-r--r-- | res/res_ael_share.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/res/res_ael_share.c b/res/res_ael_share.c new file mode 100644 index 000000000..7c4dc70a8 --- /dev/null +++ b/res/res_ael_share.c @@ -0,0 +1,61 @@ +/* + * Asterisk -- An open source telephony toolkit. + * + * Copyright (C) 2007, Digium, Inc. + * + * Steve Murphy <murf@digium.com> + * + * See http://www.asterisk.org for more information about + * the Asterisk project. Please do not directly contact + * any of the maintainers of this project for assistance; + * the project provides a web site, mailing lists and IRC + * channels for your use. + * + * This program is free software, distributed under the terms of + * the GNU General Public License Version 2. See the LICENSE file + * at the top of the source tree. + */ + +/*! \file + * + * \brief Shareable AEL code -- mainly between internal and external modules + * + * \author Steve Murphy <murf@digium.com> + * + * \ingroup applications + */ + +#include "asterisk.h" + +ASTERISK_FILE_VERSION(__FILE__, "$Revision$") + +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <unistd.h> + +#include "asterisk/file.h" +#include "asterisk/logger.h" +#include "asterisk/channel.h" +#include "asterisk/options.h" +#include "asterisk/pbx.h" +#include "asterisk/config.h" +#include "asterisk/module.h" +#include "asterisk/lock.h" +#include "asterisk/cli.h" + + +static int unload_module(void) +{ + return 0; +} + +static int load_module(void) +{ + return 0; +} + +AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS, "share-able code for AEL", + .load = load_module, + .unload = unload_module + ); |