<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Gill Sans MT";
        panose-1:2 11 5 2 2 1 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Gill Sans MT";
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'>Hi Richard –<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'>What you want is
AGI: <a href="http://www.voip-info.org/tiki-index.php?page=Asterisk+AGI">http://www.voip-info.org/tiki-index.php?page=Asterisk+AGI</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'>You could write
a perl script to read the <st1:place w:st="on">PO</st1:place> number from stdin
and spit back the balance (or whatever). To read the <st1:place w:st="on">PO</st1:place>
number from the user, use the Read() dialplan application. To play back the
balance, you could use SayDigits() (but there’s probably a more elegant
solution specifically for speaking amounts of money).<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Richard Reina<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, 24 February 2006
9:34 AM<br>
<b><span style='font-weight:bold'>To:</span></b> asterisk-users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Asterisk-Users] How to
query a table from the keypad?</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I am trying to give users the option to query our accts. payable
database by supplying their <st1:place w:st="on">PO</st1:place> number. I
able to write queries via perl->DBI->mysql but have no idea how to get *
to do it from the IVR. Is this possible? Can anyone point me in the
right direction for help or examples?<br>
<br>
Thanks,<br>
<br>
Richard<o:p></o:p></span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=1 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
What are the most popular cars? Find out at <a
href="http://us.rd.yahoo.com/evt=38382/_ylc=X3oDMTEzNWFva2Y2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMmF1dG9z/*http:/autos.yahoo.com/newcars/popular/thisweek.html%20%0d%0a">Yahoo!
Autos</a> <o:p></o:p></span></font></p>
</div>
</body>
</html>