aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-30 18:21:54 +0000
committermalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-30 18:21:54 +0000
commitdb8d625744c1b900ab8f6651e38f181651d84a3a (patch)
tree7796aedcfa182e50ae9a37a049f2b6798887dd25 /pbx.c
parent65f8cc1881c13a5d674b40653c64548e956ac218 (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-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);