diff options
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -786,7 +786,7 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var, ast_shrink_phone_number(num); *ret = num; } else - *ret = ""; + *ret = workspace; } else if (!strcmp(var, "CALLERIDNAME")) { if (c->callerid) strncpy(workspace, c->callerid, workspacelen - 1); @@ -794,7 +794,7 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var, if (name) *ret = name; else - *ret = ""; + *ret = workspace; } else if (!strcmp(var, "CALLERID")) { if (c->callerid) { strncpy(workspace, c->callerid, workspacelen - 1); |