${DUNDTECH} * The Technology of the result from a call to DUNDiLookup()
${DUNDDEST} * The Destination of the result from a call to DUNDiLookup()
+The DUNDi dialplan switch uses the following variables
+---------------------------------------------------------
+${DUNDIDIALARGS} Settings this variable allows you to provide options to be
+ passed to the Dial application for calls being placed using
+ the DUNDi switch.
+
The Zaptel channel sets the following variables:
---------------------------------------------------------
${ANI2} * The ANI2 Code provided by the network on the incoming call.
int res;
int x=0;
char req[1024];
+ const char *dundiargs;
struct ast_app *dial;
if (!strncasecmp(context, "macro-", 6)) {
}
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");
+ snprintf(req, sizeof(req), "%s/%s||%s", results[x].tech, results[x].dest,
+ S_OR(dundiargs, ""));
dial = pbx_findapp("Dial");
if (dial)
res = pbx_exec(chan, dial, req);