From fa60672d5838355d98f81fb85ba245d517ae6991 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Sun, 15 May 2005 17:45:30 +0000 Subject: add dialplan functions for Caller ID, language and timeouts (bug #4219, with mods) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5679 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_setcidname.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'apps/app_setcidname.c') diff --git a/apps/app_setcidname.c b/apps/app_setcidname.c index 88e847651..b3bd3745c 100755 --- a/apps/app_setcidname.c +++ b/apps/app_setcidname.c @@ -34,7 +34,9 @@ static char *descrip = " SetCIDName(cname[|a]): Set Caller*ID Name on a call to a new\n" "value, while preserving the original Caller*ID number. This is\n" "useful for providing additional information to the called\n" -"party. Always returns 0\n"; +"party. Always returns 0\n" +"SetCIDName has been deprecated in favor of the function\n" +"CALLERID(name)\n"; STANDARD_LOCAL_USER; @@ -46,6 +48,13 @@ static int setcallerid_exec(struct ast_channel *chan, void *data) char tmp[256] = ""; struct localuser *u; char *opt; + static int deprecation_warning = 0; + + if (!deprecation_warning) { + ast_log(LOG_WARNING, "SetCIDName is deprecated, please use SetVar(CALLERID(name)=value) instead.\n"); + deprecation_warning = 1; + } + if (data) strncpy(tmp, (char *)data, sizeof(tmp) - 1); opt = strchr(tmp, '|'); -- cgit v1.2.3