summaryrefslogtreecommitdiff
path: root/apps/app_setcallerid.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_setcallerid.c')
-rw-r--r--apps/app_setcallerid.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/app_setcallerid.c b/apps/app_setcallerid.c
index 9596b8897..59b4d9af8 100644
--- a/apps/app_setcallerid.c
+++ b/apps/app_setcallerid.c
@@ -68,9 +68,14 @@ 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);
+ }
pres = ast_parse_caller_presentation(data);
if (pres < 0) {