diff options
author | malcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-30 18:21:54 +0000 |
---|---|---|
committer | malcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-30 18:21:54 +0000 |
commit | db8d625744c1b900ab8f6651e38f181651d84a3a (patch) | |
tree | 7796aedcfa182e50ae9a37a049f2b6798887dd25 /pbx.c | |
parent | 65f8cc1881c13a5d674b40653c64548e956ac218 (diff) |
Bug # 2115: Allow Caller TON to be retrieved in the dialplan
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3538 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -896,6 +896,8 @@ static void pbx_substitute_variables_temp(struct ast_channel *c, const char *var *ret = workspace; } else *ret = NULL; + } else if (c && !strcmp(var, "CALLERTON")) { + snprintf(workspace, workspacelen, "%d", c->callerton); } else if (c && !strcmp(var, "DNID")) { if (c->dnid) { strncpy(workspace, c->dnid, workspacelen - 1); |