00001 /* 00002 * Asterisk -- An open source telephony toolkit. 00003 * 00004 * Copyright (C) 1999 - 2005, Digium, Inc. 00005 * 00006 * Kevin P. Fleming <kpfleming@digium.com> 00007 * 00008 * See http://www.asterisk.org for more information about 00009 * the Asterisk project. Please do not directly contact 00010 * any of the maintainers of this project for assistance; 00011 * the project provides a web site, mailing lists and IRC 00012 * channels for your use. 00013 * 00014 * This program is free software, distributed under the terms of 00015 * the GNU General Public License Version 2. See the LICENSE file 00016 * at the top of the source tree. 00017 */ 00018 00019 /*! \file 00020 * 00021 * \brief Builtin dialplan functions 00022 * 00023 */ 00024 00025 #include <sys/types.h> 00026 #include <stdlib.h> 00027 #include <stdio.h> 00028 00029 #include "asterisk.h" 00030 00031 ASTERISK_FILE_VERSION(__FILE__, "$Revision: 7221 $") 00032 00033 #include "asterisk/module.h" 00034 #include "asterisk/pbx.h" 00035 #include "pbx_functions.h" 00036 00037 static char *tdesc = "Builtin dialplan functions"; 00038 00039 int unload_module(void) 00040 { 00041 int x; 00042 00043 for (x = 0; x < (sizeof(builtins) / sizeof(builtins[0])); x++) { 00044 ast_custom_function_unregister(builtins[x]); 00045 } 00046 00047 return 0; 00048 } 00049 00050 int load_module(void) 00051 { 00052 int x; 00053 00054 for (x = 0; x < (sizeof(builtins) / sizeof(builtins[0])); x++) { 00055 ast_custom_function_register(builtins[x]); 00056 } 00057 00058 return 0; 00059 } 00060 00061 char *description(void) 00062 { 00063 return tdesc; 00064 } 00065 00066 int usecount(void) 00067 { 00068 return 0; 00069 } 00070 00071 char *key() 00072 { 00073 return ASTERISK_GPL_KEY; 00074 }