From: Tilghman Lesher Date: Thu, 25 May 2006 21:06:43 +0000 (+0000) Subject: Deprecate SetCallerID (should have happened prior to release of 1.2) X-Git-Tag: 1.4.0-beta1~1187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31081f1224541a5baecdbf500a634b87fa58b4c5;p=thirdparty%2Fasterisk.git Deprecate SetCallerID (should have happened prior to release of 1.2) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30411 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_setcallerid.c b/apps/app_setcallerid.c index a92f35741c..11d7e9f879 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, '|');