aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_zapateller.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-16 14:39:29 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-16 14:39:29 +0000
commitd17ff1ea42571817d74962062410ca54a06b2053 (patch)
tree1236d574745c7d4d49bb3fb658e3a6bdd3e88a22 /apps/app_zapateller.c
parent9e24ed5ccff762fa9d412d1a1321df2de1b26423 (diff)
Applications no longer need to call ast_module_user_add and ast_module_user_remove. This is now taken care of in the pbx_exec function outside of the application.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75200 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_zapateller.c')
-rw-r--r--apps/app_zapateller.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/app_zapateller.c b/apps/app_zapateller.c
index 283556a9e..9c64c547d 100644
--- a/apps/app_zapateller.c
+++ b/apps/app_zapateller.c
@@ -59,15 +59,12 @@ static char *descrip =
static int zapateller_exec(struct ast_channel *chan, void *data)
{
int res = 0;
- struct ast_module_user *u;
int i, answer = 0, nocallerid = 0;
char *parse = ast_strdupa((char *)data);
AST_DECLARE_APP_ARGS(args,
AST_APP_ARG(options)[2];
);
- u = ast_module_user_add(chan);
-
AST_STANDARD_APP_ARGS(args, parse);
for (i = 0; i < args.argc; i++) {
@@ -85,10 +82,8 @@ static int zapateller_exec(struct ast_channel *chan, void *data)
res = ast_safe_sleep(chan, 500);
}
- if (!ast_strlen_zero(chan->cid.cid_num) && nocallerid) {
- ast_module_user_remove(u);
+ if (!ast_strlen_zero(chan->cid.cid_num) && nocallerid)
return res;
- }
if (!res)
res = ast_tonepair(chan, 950, 0, 330, 0);
@@ -99,7 +94,6 @@ static int zapateller_exec(struct ast_channel *chan, void *data)
if (!res)
res = ast_tonepair(chan, 0, 0, 1000, 0);
- ast_module_user_remove(u);
return res;
}