Add ${DNIS}

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent c80158ce30
commit fb1c18e6fd

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

@ -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;

Loading…
Cancel
Save