diff options
Diffstat (limited to 'apps/app_zapateller.c')
-rw-r--r-- | apps/app_zapateller.c | 8 |
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; } |