Fix getting ${UNIQUEID} value
authorMartin Pycko <martinp@digium.com>
Sat, 20 Sep 2003 00:34:03 +0000 (00:34 +0000)
committerMartin Pycko <martinp@digium.com>
Sat, 20 Sep 2003 00:34:03 +0000 (00:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1533 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index 8a7dd2f..0582081 100755 (executable)
--- 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) {