aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_setcidname.c11
-rwxr-xr-xapps/app_setcidnum.c11
-rwxr-xr-xapps/app_setrdnis.c11
3 files changed, 30 insertions, 3 deletions
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, '|');
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, '|');
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