summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorMalcolm Davenport <malcolmd@digium.com>2004-07-30 18:21:54 +0000
committerMalcolm Davenport <malcolmd@digium.com>2004-07-30 18:21:54 +0000
commit9b0b4bf04154bdbb89a8d9f38500c9262fa8b8cf (patch)
tree7796aedcfa182e50ae9a37a049f2b6798887dd25 /pbx.c
parent183fb08ee61b5e202549a790aae232b435a8186a (diff)
Bug # 2115: Allow Caller TON to be retrieved in the dialplan
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index 1a18208fd..279cafd0e 100755
--- a/pbx.c
+++ b/pbx.c
@@ -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);