aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_txtcidname.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-18 03:02:06 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-18 03:02:06 +0000
commit81205f2fd3ebf7c77c2a3908f46e29066187404c (patch)
treea13aa237c9473c3455778f6b4e7267546c11f5cf /apps/app_txtcidname.c
parent865392451a2ed7db77911e79a58ec80f40b4ab6a (diff)
implement TXTCIDNAME as a dialplan function and mark the application deprecated
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6813 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_txtcidname.c')
-rwxr-xr-xapps/app_txtcidname.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/app_txtcidname.c b/apps/app_txtcidname.c
index cb88c7e12..25547c20b 100755
--- a/apps/app_txtcidname.c
+++ b/apps/app_txtcidname.c
@@ -61,9 +61,15 @@ static int txtcidname_exec(struct ast_channel *chan, void *data)
char tech[80];
char txt[256] = "";
char dest[80];
-
struct localuser *u;
- if (!data || !strlen(data)) {
+ static int dep_warning = 0;
+
+ if (!dep_warning) {
+ ast_log(LOG_WARNING, "The TXTCIDName application has been deprecated in favor of the TXTCIDNAME dialplan function.\n");
+ dep_warning = 1;
+ }
+
+ if (!data || ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "TXTCIDName requires an argument (extension)\n");
res = 1;
}