mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Add ${DNIS}
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
6
pbx.c
6
pbx.c
@@ -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;
|
||||
|
Reference in New Issue
Block a user