Posted: Tue Mar 18, 2003 5:07 pm Post subject: [Asterisk-Dev] Coding tip for app
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
This e-mail was scanned and found clean by Monroe-Woodbury CSD Antivirus.
Posted: Tue Mar 18, 2003 5:52 pm Post subject: [Asterisk-Dev] Coding tip for app
John,
I would start by copying app_dial to app_john (or whatever) and then
removing the stuff you don't need. Don't forget to add you app the the
makefile.
--Mike
On Tuesday, March 18, 2003, at 09:07 AM, John Harragin wrote:
Quote:
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
This e-mail was scanned and found clean by Monroe-Woodbury CSD
Antivirus.
Posted: Tue Mar 18, 2003 6:00 pm Post subject: [Asterisk-Dev] Coding tip for app
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);
James
On Tue, 18 Mar 2003, John Harragin wrote:
Quote:
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)?
Posted: Tue Mar 18, 2003 6:00 pm Post subject: [Asterisk-Dev] Coding tip for app
You can use ast_exec.
Mark
On Tue, 18 Mar 2003, John Harragin wrote:
Quote:
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
This e-mail was scanned and found clean by Monroe-Woodbury CSD Antivirus.
Posted: Tue Mar 18, 2003 6:05 pm Post subject: [Asterisk-Dev] Coding tip for app
Check how agi does it. I believe it calls something like
pbx_exec(appnamehere,data) but you will need to look that up and verify
that it behaves the way you are expecting.
Ben
-----Original Message-----
From: John Harragin [mailto:jharragi@mw.k12.ny.us]
Sent: Tuesday, March 18, 2003 12:07 PM
To: asterisk-dev@lists.digium.com
Subject: [Asterisk-Dev] Coding tip for app
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
This e-mail was scanned and found clean by Monroe-Woodbury CSD
Antivirus.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum