Hi everyone, Is it possible to call an asterisk function out an AGI script? How do I do this? Thank you, Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070118/51d24a2e/attachment.htm
It is called exec. http://www.google.com/search?hl=en&q=asterisk+agi+exec On 1/18/07, Thomas Hecker <thomas.hecker@gmail.com> wrote:> > Hi everyone, > > Is it possible to call an asterisk function out an AGI script? How do I do > this? > > Thank you, > Thomas > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com <http://easynews.com/>-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070118/95d030ea/attachment.htm
Thomas Hecker wrote:> Hi everyone, > > Is it possible to call an asterisk function out an AGI script? How do I > do this? > > Thank you, > ThomasYes, we have done this a few times, using PHP. You define an extension in the dialplan, from which you call your AGI, then in in you have access to all call variables, then you do your own thing, hit a DB, etc... -- thanks, Yusuf -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
The documentation says that the exec() command exists to execute applications, not functions. How would I convert an dialplan extension like exten => 11,1,Set(count_naptr=${ENUMLOOKUP(4961369993473,ALL,c)}) into an exec call like $AGI->exec($app, $options) ? On 18/01/07, William Piper <william.piper@gmail.com> wrote:> > It is called exec. > http://www.google.com/search?hl=en&q=asterisk+agi+exec > > > On 1/18/07, Thomas Hecker <thomas.hecker@gmail.com> wrote: > > > Hi everyone, > > > > Is it possible to call an asterisk function out an AGI script? How do I > > do this? > > > > Thank you, > > Thomas > > > > _______________________________________________ > > --Bandwidth and Colocation provided by Easynews.com<http://easynews.com/>-- > > > > asterisk-users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070119/c8e21c8f/attachment.htm