[Asterisk-cvs] asterisk/apps app_txtcidname.c,1.17,1.18

russell russell
Mon Oct 17 23:08:08 CDT 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv2260/apps

Modified Files:
	app_txtcidname.c 
Log Message:
implement TXTCIDNAME as a dialplan function and mark the application deprecated


Index: app_txtcidname.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_txtcidname.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- app_txtcidname.c	18 Oct 2005 02:21:45 -0000	1.17
+++ app_txtcidname.c	18 Oct 2005 03:02:06 -0000	1.18
@@ -61,9 +61,15 @@
 	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;
 	}




More information about the svn-commits mailing list