git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30411
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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");
}
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, '|');