Add ${DNIS}

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-09-04 22:46:06 +00:00
parent c80158ce30
commit fb1c18e6fd
3 changed files with 10 additions and 0 deletions

6
pbx.c
View File

@@ -797,6 +797,12 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var,
*ret = workspace;
} else
*ret = NULL;
} else if (c && !strcmp(var, "DNID")) {
if (c->dnid) {
strncpy(workspace, c->dnid, workspacelen - 1);
*ret = workspace;
} else
*ret = NULL;
} else if (c && !strcmp(var, "HINT")) {
if (!ast_get_hint(workspace, workspacelen - 1, c, c->context, c->exten))
*ret = NULL;