${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
${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
*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;