[asterisk-dev] using apps in other apps
M Shokuie
senahrm at gmail.com
Mon Nov 8 04:04:20 CST 2010
Hi Stefan,
Thank you very much for your early reply, I'll give it a try.
Regards.
--
M. Shokuie Nia
On Mon, Nov 8, 2010 at 1:12 PM, Stefan Schmidt <sst at sil.at> wrote:
> Am 08.11.10 10:15, schrieb M Shokuie:
> > Dear Folks,
> >
> > Im sorry for a very primitive question, I just wanna use one of the apps
> > (for instance app_sayunixtime) in another app like app_voicemail, the
> > compiler just nag about the prototype and compiles well but when loading
> > app_voicemail module it keeps saying undefide symbol sayunixtime. Anyone
> > could give me a hint how should i solve the problem, should i link the
> > app_sayunixtime to the other app? how?
> >
> > Im working on Asterisk-1.6.2.11, it seems the make files also changed
> much
> > according to 1.2 or even 1.4.
> >
> > Regards.
> > --
> > M. Shokuie Nia.
> >
> >
> Hello,
>
> yuo can use the pbx app api like this:
>
> struct ast_app *ast_app = pbx_findapp("SayUnixtime");
> if (ast_app) {
> pbxexec(chan,ast_app,parameters);
> }
>
> best regards
>
> stefan
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20101108/9145498b/attachment-0001.htm
More information about the asterisk-dev
mailing list