All pastes #10986 Raw Edit

Unnamed

public text v1 · immutable
#10986 ·published 2005-05-05 00:51 UTC
rendered paste body
	/* 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");
	}