[Asterisk-Users] Newbie IVR question

Steven Critchfield critch at basesys.com
Sun Aug 31 14:31:21 MST 2003


On Sun, 2003-08-31 at 16:07, Josh Edwards wrote:
> Are there any examples for ther psql or agi scripts....can I use php
> with
> agi....

Why do people try to shoe horn the wrong tools into this arena? You are
better off using perl than php. Yes you can use php, but it is not meant
to be used in a non web based applications. PHP is optimized for quick
short run applications. Use perl, ruby, python, shell, or any other
language that is intended to run systems and long run applications. 

Next point, there are already agi examples that have been included in
the asterisk distribution. I have submitted psql extension logic here
before. There is even documentation for it in the source code itself.
Examples abound if you just look a little. They won't be exactly what
you are asking for, but they will point you to how to do it yourself. 

> >From: Steven Critchfield 
> >Reply-To: asterisk-users at lists.digium.com 
> >To: asterisk-users at lists.digium.com 
> >Subject: Re: [Asterisk-Users] Newbie IVR question 
> >Date: 31 Aug 2003 15:54:53 -0500 
> > 
> >On Sun, 2003-08-31 at 15:39, Josh Edwards wrote: 
> > > let me first say this is an amazing product. 
> > > 
> > > 
> > > ok here is my question 
> > > 
> > > what I want to do is be able to have people call me and answar 
> > > questions. The answars to there questions would need to be stored
> in a 
> > > mysql database. 
> > > 
> > > so 
> > > 
> > > call comes in 
> > > 
> > > asterisks plays question 
> > > 
> > > asterisk waits for answar 
> > > 
> > > caller presses 
> > > 3 
> > > 
> > > into a sql table goes (callerid,questionnum,3) 
> > > 
> > > on to next question. 
> > > 
> > > 
> > > Can this be done in asterisks, if so, can anyone point me in the 
> > > correct direction? howto's code examples etc 
> > 
> > 
> >If you are stuck on mysql, then you will need to do this in agi. If
> you 
> >could do it in postgres, then there is the PSQL commands. 
> >-- 
> >Steven Critchfield 
> > 
> >_______________________________________________ 
> >Asterisk-Users mailing list 
> >Asterisk-Users at lists.digium.com 
> >http://lists.digium.com/mailman/listinfo/asterisk-users 
> 
> ______________________________________________________________________
>  Get MSN 8and enjoy automatic e-mail virus protection.  
> _______________________________________________ Asterisk-Users mailing
> list Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list