aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index 8c48d1e09..bb571274a 100755
--- a/pbx.c
+++ b/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;