diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-03 22:05:02 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-03 22:05:02 +0000 |
commit | 5fa699be6e9427537c30263ac09d38c80984e9fc (patch) | |
tree | bca36d1e143249b1856159bb426bff9db3b866f3 /apps/app_setcallerid.c | |
parent | 11af697398721c9ff7d26d133ed4a42622a8dc2e (diff) |
Add CALLERPRES dialplan function and deprecate SetCallerPres application
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53141 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_setcallerid.c')
-rw-r--r-- | apps/app_setcallerid.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/app_setcallerid.c b/apps/app_setcallerid.c index 9596b8897..59b4d9af8 100644 --- a/apps/app_setcallerid.c +++ b/apps/app_setcallerid.c @@ -68,9 +68,14 @@ static int setcallerid_pres_exec(struct ast_channel *chan, void *data) { struct ast_module_user *u; int pres = -1; + static int deprecated = 0; u = ast_module_user_add(chan); - + + if (!deprecated) { + deprecated = 1; + ast_log(LOG_WARNING, "SetCallerPres is deprecated. Please use Set(CALLERPRES()=%s) instead.\n", (char *)data); + } pres = ast_parse_caller_presentation(data); if (pres < 0) { |