diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 7a59a2a8f2..98481ea38f 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -1746,7 +1746,7 @@ static int show_callback(void *pArg, int argc, char **argv, char **columnNames) if (holder->http) { char aval[512]; - switch_amp_encode(argv[x], aval, sizeof(aval)); + switch_amp_encode(val, aval, sizeof(aval)); holder->stream->write_function(holder->stream, "