Add CALLERPRES dialplan function and deprecate SetCallerPres application

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2007-02-03 22:05:02 +00:00
parent 777a51ad5a
commit c59714fbfc
2 changed files with 49 additions and 4 deletions

View File

@@ -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) {