diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-05-15 17:45:30 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-05-15 17:45:30 +0000 |
commit | fa60672d5838355d98f81fb85ba245d517ae6991 (patch) | |
tree | 0dca6952bac0dc48b1b51a445fb7c60fd5caf1ff /apps/app_setcidnum.c | |
parent | bb1f05fba7a8256a2e7c7016c0a2a035bc6eb8b5 (diff) |
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
Diffstat (limited to 'apps/app_setcidnum.c')
-rwxr-xr-x | apps/app_setcidnum.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/app_setcidnum.c b/apps/app_setcidnum.c index e7324da3d..fb75b9e78 100755 --- a/apps/app_setcidnum.c +++ b/apps/app_setcidnum.c @@ -35,7 +35,9 @@ static char *descrip = " SetCIDNum(cnum[|a]): Set Caller*ID Number on a call to a new\n" "value, while preserving the original Caller*ID name. This is\n" "useful for providing additional information to the called\n" -"party. Sets ANI as well if a flag is used. Always returns 0\n"; +"party. Sets ANI as well if a flag is used. Always returns 0\n" +"SetCIDNum has been deprecated in favor of the function\n" +"CALLERID(number)\n"; STANDARD_LOCAL_USER; @@ -48,6 +50,13 @@ static int setcallerid_exec(struct ast_channel *chan, void *data) char *opt; int anitoo = 0; char tmp[256]; + static int deprecation_warning = 0; + + if (!deprecation_warning) { + ast_log(LOG_WARNING, "SetCIDNum is deprecated, please use SetVar(CALLERID(number)=value) instead.\n"); + deprecation_warning = 1; + } + if (data) strncpy(tmp, (char *)data, sizeof(tmp) - 1); opt = strchr(tmp, '|'); |