aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_lookupcidname.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-25 19:07:31 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-25 19:07:31 +0000
commit7fb949653ffffb21dd6a8bc7bd3f438c13857254 (patch)
tree1e3d6051b1a957da2656bfd4c5b24f83b6d0f42d /apps/app_lookupcidname.c
parentd54f8741c7e8a2ac35f33bead2b73dbc0b92fa2f (diff)
- mark some applications deprecated that already have replacements
- add BLACKLIST and mark LookupBlacklist deprecated - add transfercapability support to CHANNEL and mark SetTransferCapability deprecated (issue #7225, Corydon) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30359 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_lookupcidname.c')
-rw-r--r--apps/app_lookupcidname.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_lookupcidname.c b/apps/app_lookupcidname.c
index a4af9eb96..9fdd81a67 100644
--- a/apps/app_lookupcidname.c
+++ b/apps/app_lookupcidname.c
@@ -66,8 +66,13 @@ lookupcidname_exec (struct ast_channel *chan, void *data)
{
char dbname[64];
struct localuser *u;
+ static int dep_warning = 0;
LOCAL_USER_ADD (u);
+ if (!dep_warning) {
+ dep_warning = 1;
+ ast_log(LOG_WARNING, "LookupCIDName is deprecated. Please use ${DB(cidname/${CALLERID(num)})} instead.\n");
+ }
if (chan->cid.cid_num) {
if (!ast_db_get ("cidname", chan->cid.cid_num, dbname, sizeof (dbname))) {
ast_set_callerid (chan, NULL, dbname, NULL);