2 * Asterisk -- A telephony toolkit for Linux.
6 * Copyright (C) 1999, Mark Spencer
8 * Mark Spencer <markster@linux-support.net>
10 * This program is free software, distributed under the terms of
11 * the GNU General Public License
14 #include <asterisk/file.h>
15 #include <asterisk/logger.h>
16 #include <asterisk/channel.h>
17 #include <asterisk/pbx.h>
18 #include <asterisk/module.h>
19 #include <asterisk/lock.h>
24 static char *tdesc = "Trivial skeleton Application";
25 static char *app = "skel";
26 static char *synopsis =
27 " This is a skeleton application that shows you the basic structure to create your\n"
28 "own asterisk applications.\n";
34 static int skel_exec(struct ast_channel *chan, void *data)
39 ast_log(LOG_WARNING, "skel requires an argument (filename)\n");
43 /* Do our thing here */
48 int unload_module(void)
50 STANDARD_HANGUP_LOCALUSERS;
51 return ast_unregister_application(app);
56 return ast_register_application(app, skel_exec, tdesc, synopsis);
59 char *description(void)
67 STANDARD_USECOUNT(res);
73 return ASTERISK_GPL_KEY;