|
|
@ -3,7 +3,7 @@
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (C) <Year>, <Your Name Here>
|
|
|
|
* Copyright (C) <Year>, <Your Name Here>
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* <Your Name Here> <<You Email Here>>
|
|
|
|
* <Your Name Here> <<Your Email Here>>
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* See http://www.asterisk.org for more information about
|
|
|
|
* See http://www.asterisk.org for more information about
|
|
|
|
* the Asterisk project. Please do not directly contact
|
|
|
|
* the Asterisk project. Please do not directly contact
|
|
|
@ -20,7 +20,7 @@
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* \brief Skeleton application
|
|
|
|
* \brief Skeleton application
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This is a skeleton for development of an Asterisk application */
|
|
|
|
* This is a skeleton for development of an Asterisk application
|
|
|
|
* \ingroup applications
|
|
|
|
* \ingroup applications
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
@ -68,7 +68,7 @@ static int app_exec(struct ast_channel *chan, void *data)
|
|
|
|
int res = 0;
|
|
|
|
int res = 0;
|
|
|
|
struct ast_flags flags;
|
|
|
|
struct ast_flags flags;
|
|
|
|
struct localuser *u;
|
|
|
|
struct localuser *u;
|
|
|
|
char *options=NULL;
|
|
|
|
char *options = NULL;
|
|
|
|
char *dummy = NULL;
|
|
|
|
char *dummy = NULL;
|
|
|
|
char *args;
|
|
|
|
char *args;
|
|
|
|
int argc = 0;
|
|
|
|
int argc = 0;
|
|
|
@ -77,7 +77,6 @@ static int app_exec(struct ast_channel *chan, void *data)
|
|
|
|
|
|
|
|
|
|
|
|
if (ast_strlen_zero(data)) {
|
|
|
|
if (ast_strlen_zero(data)) {
|
|
|
|
ast_log(LOG_WARNING, "%s requires an argument (dummy|[options])\n",app);
|
|
|
|
ast_log(LOG_WARNING, "%s requires an argument (dummy|[options])\n",app);
|
|
|
|
LOCAL_USER_REMOVE(u);
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -132,6 +131,13 @@ int load_module(void)
|
|
|
|
return ast_register_application(app, app_exec, synopsis, descrip);
|
|
|
|
return ast_register_application(app, app_exec, synopsis, descrip);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int reload(void)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
/* This function will be called if a 'reload' is requested */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
char *description(void)
|
|
|
|
char *description(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return tdesc;
|
|
|
|
return tdesc;
|
|
|
@ -140,7 +146,9 @@ char *description(void)
|
|
|
|
int usecount(void)
|
|
|
|
int usecount(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int res;
|
|
|
|
int res;
|
|
|
|
|
|
|
|
|
|
|
|
STANDARD_USECOUNT(res);
|
|
|
|
STANDARD_USECOUNT(res);
|
|
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|