[asterisk-users] balance anouncement

John Millican jmillican at sentinelcommunications.com
Fri Sep 1 07:36:42 MST 2006


On Friday September 01 2006 10:19 am, ram wrote:
> Hi
>
> thanks for the quick reply
>
> any documents to read to achive this
> or any examples would be great to read
>
> Ram
>
> On 9/1/06, John Millican <jmillican at sentinelcommunications.com> wrote:
> > On Friday September 01 2006 9:27 am, ram wrote:
> > > Hi
> > >
> > > how can i do balance anouncement by using asterisk
> > >
> > > take example, i have table balance , user name 99999, balance 200$
> > >
> > > user dial *98 or what ever, then i need anouce his balance is 200$, by
> > > reading from that row
> > >
> > > any clues how can i achive this or is this possible ?
> > >
> > > Ram
> >
> > Create an AGI script that does a db look up for the ballance and then
> > pass the
> > result back to Cepstral or Festival or your favorite text to speech
> > software.
> > John M
> >
Try google or voip-info.org and search for 
Asterisk AGI  should yeid some good results.
AGI can be called from the dial plan and written in your favorite language 
i.e. PHP, C++, Perl, C, Java
or start here:
 http://home.cogeco.ca/~camstuff/agi.html
 http://asterisk.drunkcoder.com/agi.cgi 

John M




More information about the asterisk-users mailing list