diff --git a/pbx.c b/pbx.c index 8a7dd2fd7c..0582081540 100755 --- a/pbx.c +++ b/pbx.c @@ -861,6 +861,7 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var, *ret = workspace; } else if (c && !strcmp(var, "UNIQUEID")) { snprintf(workspace, workspacelen -1, "%s", c->uniqueid); + *ret = workspace; } else { if (c) { AST_LIST_TRAVERSE(headp,variables,entries) {