Index: pbx/pbx_dundi.c =================================================================== --- pbx/pbx_dundi.c (revision 44311) +++ pbx/pbx_dundi.c (working copy) @@ -4277,6 +4277,7 @@ int res; int x=0; char req[1024]; + char *dundiargs; struct ast_app *dial; if (!strncasecmp(context, "macro-", 6)) { @@ -4314,7 +4315,11 @@ } if (x < res) { /* Got a hit! */ - snprintf(req, sizeof(req), "%s/%s", results[x].tech, results[x].dest); + dundiargs = pbx_builtin_getvar_helper(chan, "DUNDIDIALARGS"); + if (!dundiargs) { + dundiargs = ""; + } + snprintf(req, sizeof(req), "%s/%s||%s", results[x].tech, results[x].dest, dundiargs); dial = pbx_findapp("Dial"); if (dial) res = pbx_exec(chan, dial, req);