aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_setcallerid.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-25 21:06:43 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-25 21:06:43 +0000
commit049bf7262ee667a6c09e1dc97feebfa59ecda96c (patch)
tree7bbba9c8b732e0b31e0c01bf12b6bae2b70f37d3 /apps/app_setcallerid.c
parentd55c1b0a2738867c5ae14e032a2907136f08c7c8 (diff)
Deprecate SetCallerID (should have happened prior to release of 1.2)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30411 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_setcallerid.c')
-rw-r--r--apps/app_setcallerid.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/app_setcallerid.c b/apps/app_setcallerid.c
index a92f35741..11d7e9f87 100644
--- a/apps/app_setcallerid.c
+++ b/apps/app_setcallerid.c
@@ -107,6 +107,7 @@ static int setcallerid_exec(struct ast_channel *chan, void *data)
struct localuser *u;
char *opt;
int anitoo = 0;
+ static int dep_warning = 0;
if (ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "SetCallerID requires an argument!\n");
@@ -114,7 +115,12 @@ static int setcallerid_exec(struct ast_channel *chan, void *data)
}
LOCAL_USER_ADD(u);
-
+
+ if (!dep_warning) {
+ dep_warning = 1;
+ ast_log(LOG_WARNING, "SetCallerID is deprecated. Please use Set(CALLERID(all)=...) or Set(CALLERID(ani)=...) instead.\n");
+ }
+
tmp = ast_strdupa(data);
opt = strchr(tmp, '|');