aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_setrdnis.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-15 17:45:30 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-15 17:45:30 +0000
commit025aeb8f62d8b5c199846c20c73ff25720dae21e (patch)
tree0dca6952bac0dc48b1b51a445fb7c60fd5caf1ff /apps/app_setrdnis.c
parentb59e7819bd13b8713fa249affc2b5c7e9a41a717 (diff)
add dialplan functions for Caller ID, language and timeouts (bug #4219, with mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5679 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_setrdnis.c')
-rwxr-xr-xapps/app_setrdnis.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/app_setrdnis.c b/apps/app_setrdnis.c
index 4c42c9567..1321bae35 100755
--- a/apps/app_setrdnis.c
+++ b/apps/app_setrdnis.c
@@ -33,7 +33,9 @@ static char *synopsis = "Set RDNIS Number";
static char *descrip =
" SetRDNIS(cnum): Set RDNIS Number on a call to a new\n"
-"value. Always returns 0\n";
+"value. Always returns 0\n"
+"SetRDNIS has been deprecated in favor of the function\n"
+"CALLERID(rdnis)\n";
STANDARD_LOCAL_USER;
@@ -44,6 +46,13 @@ static int setrdnis_exec(struct ast_channel *chan, void *data)
struct localuser *u;
char *opt, *n, *l;
char tmp[256];
+ static int deprecation_warning = 0;
+
+ if (!deprecation_warning) {
+ ast_log(LOG_WARNING, "SetRDNIS is deprecated, please use SetVar(CALLERID(rdnis)=value) instead.\n");
+ deprecation_warning = 1;
+ }
+
if (data)
strncpy(tmp, (char *)data, sizeof(tmp) - 1);
else