mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +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:
@@ -40,6 +40,8 @@ ${ENV(VAR)} Environmental variable VAR
|
||||
${EPOCH} Current unix style epoch
|
||||
${DATETIME} Current date time in the format: YYYY-MM-DD_HH:MM:SS
|
||||
${UNIQUEID} Current call unique identifier
|
||||
${DNID} Dialed Number Identifier
|
||||
${RDNIS} Redirected Dial Number ID Service
|
||||
|
||||
There are two reference modes - reference by value and reference by name.
|
||||
To refer to a variable with its name (as an argument to a function that
|
||||
|
@@ -40,6 +40,8 @@ ${ENV(VAR)} Environmental variable VAR
|
||||
${EPOCH} Current unix style epoch
|
||||
${DATETIME} Current date time in the format: YYYY-MM-DD_HH:MM:SS
|
||||
${UNIQUEID} Current call unique identifier
|
||||
${DNID} Dialed Number Identifier
|
||||
${RDNIS} Redirected Dial Number ID Service
|
||||
|
||||
There are two reference modes - reference by value and reference by name.
|
||||
To refer to a variable with its name (as an argument to a function that
|
||||
|
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