diff options
Diffstat (limited to 'apps/app_setcallerid.c')
-rw-r--r-- | apps/app_setcallerid.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/app_setcallerid.c b/apps/app_setcallerid.c index daf97c728..6a236a0cd 100644 --- a/apps/app_setcallerid.c +++ b/apps/app_setcallerid.c @@ -66,12 +66,9 @@ static char *descrip2 = static int setcallerid_pres_exec(struct ast_channel *chan, void *data) { - struct ast_module_user *u; int pres = -1; static int deprecated = 0; - u = ast_module_user_add(chan); - if (!deprecated) { deprecated = 1; ast_log(LOG_WARNING, "SetCallerPres is deprecated. Please use Set(CALLERPRES()=%s) instead.\n", (char *)data); @@ -81,12 +78,10 @@ static int setcallerid_pres_exec(struct ast_channel *chan, void *data) if (pres < 0) { ast_log(LOG_WARNING, "'%s' is not a valid presentation (see 'show application SetCallerPres')\n", (char *) data); - ast_module_user_remove(u); return 0; } chan->cid.cid_pres = pres; - ast_module_user_remove(u); return 0; } |