[Asterisk-Dev] Coding tip for app

James Golovich james at wwnet.net
Tue Mar 18 11:00:17 MST 2003

You would want to do something similar to this:

struct ast_app *app;
int res;
app = pbx_findall("Dial");
if (app) 
	res = pbx_exec(chan, app, data, 1);


On Tue, 18 Mar 2003, John Harragin wrote:

> Hi,
> I would like to use the functionality the dial app directly from a new app.
> dial_exec(chan, dial_data);
> ...can this be done directly and would I need additional includes or is
> there a better mechanism to do this (obviously I have already tried it like
> this and * rejected my app on that line)?
> Thanks in advance,
> John

More information about the asterisk-dev mailing list