dect
/
asterisk
Archived
13
0
Fork 0

Fix (in an admittedly icky way) the CALL variable broken issues (bug #3549)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5001 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2005-02-10 16:38:39 +00:00
parent 10e89a761e
commit 69a8cf9826
1 changed files with 3 additions and 1 deletions

4
pbx.c
View File

@ -920,7 +920,8 @@ void pbx_retrieve_variable(struct ast_channel *c, const char *var, char **ret, c
snprintf(workspace, workspacelen, "%d", c->cid.cid_tns);
*ret = workspace;
}
}
} else
goto icky;
} else if (c && !strcmp(var, "DNID")) {
if (c->cid.cid_dnid) {
strncpy(workspace, c->cid.cid_dnid, workspacelen - 1);
@ -996,6 +997,7 @@ void pbx_retrieve_variable(struct ast_channel *c, const char *var, char **ret, c
strncpy(workspace, c->language, workspacelen - 1);
*ret = workspace;
} else {
icky:
if (headp) {
AST_LIST_TRAVERSE(headp,variables,entries) {
#if 0