aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-02-17 19:41:23 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-02-17 19:41:23 +0000
commit9b334db0b459c1bc16e658d9b18c93564dbc915d (patch)
tree8ca50a2f710b9e54aa671db749ee7eb7fa74f5b9 /pbx.c
parent71a8df15206a4c6c725daa81b787dcec40e626f6 (diff)
Fix ${CALLINGSUBADDR}
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5044 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pbx.c b/pbx.c
index 171b7c07f..339e73082 100755
--- a/pbx.c
+++ b/pbx.c
@@ -911,7 +911,8 @@ void pbx_retrieve_variable(struct ast_channel *c, const char *var, char **ret, c
*ret = workspace;
} else
*ret = NULL;
- }
+ } else
+ goto icky;
} else if (!strncmp(var + 4, "ING", 3)) {
if (!strcmp(var + 7, "PRES")) {
/* CALLINGPRES */
@@ -929,7 +930,8 @@ void pbx_retrieve_variable(struct ast_channel *c, const char *var, char **ret, c
/* CALLINGTNS */
snprintf(workspace, workspacelen, "%d", c->cid.cid_tns);
*ret = workspace;
- }
+ } else
+ goto icky;
} else
goto icky;
} else if (c && !strcmp(var, "DNID")) {