|
|
@ -95,10 +95,11 @@ static int exec_exec(struct ast_channel *chan, void *data)
|
|
|
|
char *s, *appname, *endargs, args[MAXRESULT] = "";
|
|
|
|
char *s, *appname, *endargs, args[MAXRESULT] = "";
|
|
|
|
struct ast_app *app;
|
|
|
|
struct ast_app *app;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ast_strlen_zero(data))
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
|
|
u = ast_module_user_add(chan);
|
|
|
|
u = ast_module_user_add(chan);
|
|
|
|
|
|
|
|
|
|
|
|
/* Check and parse arguments */
|
|
|
|
|
|
|
|
if (data) {
|
|
|
|
|
|
|
|
s = ast_strdupa(data);
|
|
|
|
s = ast_strdupa(data);
|
|
|
|
appname = strsep(&s, "(");
|
|
|
|
appname = strsep(&s, "(");
|
|
|
|
if (s) {
|
|
|
|
if (s) {
|
|
|
@ -116,9 +117,9 @@ static int exec_exec(struct ast_channel *chan, void *data)
|
|
|
|
res = -1;
|
|
|
|
res = -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ast_module_user_remove(u);
|
|
|
|
ast_module_user_remove(u);
|
|
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -129,10 +130,11 @@ static int tryexec_exec(struct ast_channel *chan, void *data)
|
|
|
|
char *s, *appname, *endargs, args[MAXRESULT] = "";
|
|
|
|
char *s, *appname, *endargs, args[MAXRESULT] = "";
|
|
|
|
struct ast_app *app;
|
|
|
|
struct ast_app *app;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ast_strlen_zero(data))
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
|
|
u = ast_module_user_add(chan);
|
|
|
|
u = ast_module_user_add(chan);
|
|
|
|
|
|
|
|
|
|
|
|
/* Check and parse arguments */
|
|
|
|
|
|
|
|
if (data) {
|
|
|
|
|
|
|
|
s = ast_strdupa(data);
|
|
|
|
s = ast_strdupa(data);
|
|
|
|
appname = strsep(&s, "(");
|
|
|
|
appname = strsep(&s, "(");
|
|
|
|
if (s) {
|
|
|
|
if (s) {
|
|
|
@ -151,9 +153,9 @@ static int tryexec_exec(struct ast_channel *chan, void *data)
|
|
|
|
pbx_builtin_setvar_helper(chan, "TRYSTATUS", "NOAPP");
|
|
|
|
pbx_builtin_setvar_helper(chan, "TRYSTATUS", "NOAPP");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ast_module_user_remove(u);
|
|
|
|
ast_module_user_remove(u);
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|