[asterisk-commits] trunk r30411 - /trunk/apps/app_setcallerid.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 25 14:06:44 MST 2006


Author: tilghman
Date: Thu May 25 16:06:43 2006
New Revision: 30411

URL: http://svn.digium.com/view/asterisk?rev=30411&view=rev
Log:
Deprecate SetCallerID (should have happened prior to release of 1.2)

Modified:
    trunk/apps/app_setcallerid.c

Modified: trunk/apps/app_setcallerid.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_setcallerid.c?rev=30411&r1=30410&r2=30411&view=diff
==============================================================================
--- trunk/apps/app_setcallerid.c (original)
+++ trunk/apps/app_setcallerid.c Thu May 25 16:06:43 2006
@@ -107,6 +107,7 @@
 	struct localuser *u;
 	char *opt;
 	int anitoo = 0;
+	static int dep_warning = 0;
 
 	if (ast_strlen_zero(data)) {
 		ast_log(LOG_WARNING, "SetCallerID requires an argument!\n");
@@ -114,7 +115,12 @@
 	}
 	
 	LOCAL_USER_ADD(u);
-	
+
+	if (!dep_warning) {
+		dep_warning = 1;
+		ast_log(LOG_WARNING, "SetCallerID is deprecated.  Please use Set(CALLERID(all)=...) or Set(CALLERID(ani)=...) instead.\n");
+	}
+
 	tmp = ast_strdupa(data);
 	
 	opt = strchr(tmp, '|');



More information about the asterisk-commits mailing list