aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/pbx_functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'funcs/pbx_functions.c')
-rwxr-xr-xfuncs/pbx_functions.c58
1 files changed, 58 insertions, 0 deletions
diff --git a/funcs/pbx_functions.c b/funcs/pbx_functions.c
new file mode 100755
index 000000000..59925dafd
--- /dev/null
+++ b/funcs/pbx_functions.c
@@ -0,0 +1,58 @@
+/*
+ * Asterisk -- A telephony toolkit for Linux.
+ *
+ * Builtin dialplan functions
+ *
+ * Copyright (C) 2005, Digium, Inc.
+ *
+ * Kevin P. Fleming <kpfleming@digium.com>
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License
+ */
+
+#include <sys/types.h>
+#include <stdlib.h>
+
+#include "asterisk/module.h"
+#include "asterisk/pbx.h"
+#include "pbx_functions.h"
+
+static char *tdesc = "Builtin dialplan functions";
+
+int unload_module(void)
+{
+ int x;
+
+ for (x = 0; x < (sizeof(builtins) / sizeof(builtins[0])); x++) {
+ ast_custom_function_unregister(builtins[x]);
+ }
+
+ return 0;
+}
+
+int load_module(void)
+{
+ int x;
+
+ for (x = 0; x < (sizeof(builtins) / sizeof(builtins[0])); x++) {
+ ast_custom_function_register(builtins[x]);
+ }
+
+ return 0;
+}
+
+char *description(void)
+{
+ return tdesc;
+}
+
+int usecount(void)
+{
+ return 0;
+}
+
+char *key()
+{
+ return ASTERISK_GPL_KEY;
+}