<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Tahoma; TEXT-DECORATION: none
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=308413612-06102003><FONT face=Arial color=#0000ff size=2>I
failed to mention in my original post that I've looked at perl through AGI, but
haven't yet found a function that allows me to capture digits to a variable that
I can then manipulate. I probably should also mention that I'm not a
programmer-type, although I can usually muddle through simple scripts for
smaller uses like this one. Can you suggest which function I would
use?</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
asterisk-users-admin@lists.digium.com
[mailto:asterisk-users-admin@lists.digium.com] <B>On Behalf Of </B>Mark
Hagler<BR><B>Sent:</B> Sunday, October 05, 2003 9:57 PM<BR><B>To:</B>
asterisk-users@lists.digium.com<BR><B>Subject:</B> RE: [Asterisk-Users] IVR
Questions?<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Tahoma size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Look into AGI, and the associated
AGI interface perl module. The interface is super easy to use in
perl to gather digits and perform your own logic.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Tahoma size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"></SPAN></FONT> </P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
asterisk-users-admin@lists.digium.com
[mailto:asterisk-users-admin@lists.digium.com] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Joe Dennick<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Sunday, October 05, 2003 5:54
PM<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] IVR
Questions?</SPAN></FONT></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I'm fairly new to Asterisk, but
I've been searching the archives extensively and haven't seen much information
on using IVR for more than menus. I'd like to prompt a caller to enter
his ID (employee, customer, account, etc). The business use I have in mind
requires a five-digit ID. Then I need to be able to capture the ID
entered, validate it (probably by playing it back with say-digit) and then
store the five-digit ID into a variable that I can pass to another
program. </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Obviously, what we're aiming for
is CTI. Once I have the Customer ID, I should be able to grab that
customer's information from a database and pass it along with the call to the
next available agent in a queue. </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I've noticed that its pretty easy
to incorporate perl scripts into Asterisk, but I haven't seen an answer to
capturing dialed digits.</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><BR>Thank you for your
help!</SPAN></FONT></P></DIV></DIV></BLOCKQUOTE></BODY></HTML>