<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE>@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 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2>I<SPAN class=075455818-27022006>'m trying to find a way in 
extensions.conf to match ANYTHING dialled, including characters such as 
*.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN class=075455818-27022006>The following works for 
numbers...</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN 
class=075455818-27022006></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN class=075455818-27022006>exten =&gt; 
_X.,1,AGI(script)</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN 
class=075455818-27022006></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN class=075455818-27022006>but doesn't catch when someone dialls * 
first. I tried this:</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN 
class=075455818-27022006></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN class=075455818-27022006>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN class=075455818-27022006>exten =&gt; 
_.,1,AGI(script)</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN 
class=075455818-27022006></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN class=075455818-27022006>which catches when someone dials say, *123 
for example, but after the AGI script terminates, Asterisk executes it again 
with the 'h' extension. So then I 
tried...</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN 
class=075455818-27022006></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN class=075455818-27022006>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN class=075455818-27022006>exten =&gt; 
_.,1,AGI(script)</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN class=075455818-27022006>exten =&gt; 
_.,2,Hangup()</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN 
class=075455818-27022006></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN class=075455818-27022006>which doesn't work. So, what exten regex 
can I use that would catch anything dialled, or how can I stop Asterisk from 
executing the AGI script a second time when I use 
"_."?</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN 
class=075455818-27022006></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN 
class=075455818-27022006>Thanks,</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN 
class=075455818-27022006>Doug.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=075455818-27022006><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN 
class=075455818-27022006></SPAN></FONT></FONT></FONT></SPAN>&nbsp;</DIV></SPAN></FONT></FONT></FONT></SPAN></DIV></SPAN></FONT></FONT></FONT></SPAN></DIV></BODY></HTML>