Unnamed
public text v1 · immutable /* try to make the call */
app = pbx_findapp("Dial");
if ((app) && (account->number) && (cdr->dialstr)) {
/* set the account number */
ast_cdr_setaccount(chan, account->number);
/* reset the cdr */
ast_cdr_reset(chan->cdr, 0);
/* fire off the dial sequence */
res = pbx_exec(chan, app, cdr->dialstr, 1);
}
else {
/* something broke, send back an error */
ast_log(LOG_WARNING, "VocTelRoute: Unable to find Asterisk Dial() application.\n");
}