mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
minor cleanups (bug #4526 with text changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -28,10 +28,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
#include "asterisk/app.h"
|
#include "asterisk/app.h"
|
||||||
|
|
||||||
static char *tdesc = "Trivial skeleton Application";
|
static char *tdesc = "Trivial skeleton Application";
|
||||||
static char *app = "skel";
|
static char *app = "Skel";
|
||||||
static char *synopsis =
|
static char *synopsis =
|
||||||
" This is a skeleton application that shows you the basic structure to create your\n"
|
"Skeleton application.";
|
||||||
"own asterisk applications.\n";
|
static char *descrip = "This application is a template to build other applications from.\n"
|
||||||
|
" It shows you the basic structure to create your own Asterisk applications.\n";
|
||||||
|
|
||||||
#define OPTION_A (1 << 0) /* Option A */
|
#define OPTION_A (1 << 0) /* Option A */
|
||||||
#define OPTION_B (1 << 1) /* Option B(n) */
|
#define OPTION_B (1 << 1) /* Option B(n) */
|
||||||
@@ -71,13 +72,12 @@ static int app_exec(struct ast_channel *chan, void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
LOCAL_USER_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
if ((argc = ast_separate_app_args(args, '|', argv, sizeof(argv) / sizeof(char *)))) {
|
if ((argc = ast_separate_app_args(args, '|', argv, sizeof(argv) / sizeof(argv[0])))) {
|
||||||
dummy = argv[0];
|
dummy = argv[0];
|
||||||
options = argv[1];
|
options = argv[1];
|
||||||
ast_parseoptions(app_opts, &flags, opts, options);
|
ast_parseoptions(app_opts, &flags, opts, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (dummy && !ast_strlen_zero(dummy))
|
if (dummy && !ast_strlen_zero(dummy))
|
||||||
ast_log(LOG_NOTICE, "Dummy value is : %s\n", dummy);
|
ast_log(LOG_NOTICE, "Dummy value is : %s\n", dummy);
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ int unload_module(void)
|
|||||||
|
|
||||||
int load_module(void)
|
int load_module(void)
|
||||||
{
|
{
|
||||||
return ast_register_application(app, app_exec, tdesc, synopsis);
|
return ast_register_application(app, app_exec, synopsis, descrip);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *description(void)
|
char *description(void)
|
||||||
|
Reference in New Issue
Block a user