<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Steve,<br>
<br>
Yeah, that's what I've been doing, but I was hoping to make it a little
clearer in the dial plan.<br>
<br>
Ah well, you win some and lose some. Thanks!<br>
<br>
Sean<br>
<br>
Steve Totaro wrote:
<blockquote
cite="midBE9DDFB4003EB1499F18B605C4A0E54D1CCC@Steves.first-notification.com"
type="cite">
<pre wrap="">You just need separate extensions.
</pre>
<blockquote type="cite">
<pre wrap="">Hi Dan,
Thanks for the info, but what I'm after is the ability to match a
digit/character 0 or 1 times at the beginning of the string. If I'm
reading your example right, it'll match anything starting with 866,
which doesn't work for me. I am trying to match:
18661234567 and 8661234567
Sean
ps: The pdf doesn't have a good explaination of this either, although
it occurs to me that this might not be possible with * if I'm having
such a hard time finding it.
Daniel Wright wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Sean Kennedy wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,
I'm having a hard time finding information related to the regular
expressions that can be used in a dialplan, specifically as an
extension. For example, I have an 800 number which I'd like to
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->jump
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">directly to if my users dial it, instead of going over my pstn
termination. Currently, it looks like this:
exten => 8661234567,1,Goto(800-in)
However, I'd like 1866123456 to match as well. I can't find in the
wiki or sample configs how to say "match this 0 or 1 times".
Can anybody provide a link that would go over this? Again, I've
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->been
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">digging through the wiki, but I seem to be missing it.
Thanks
Sean
</pre>
</blockquote>
<pre wrap="">You could do it like this:
exten => _866.,1,GoTo(800-in)
The period means match one or more characters.
You can find reference to expressions and how they work in this pdf
book <a class="moz-txt-link-freetext" href="http://www.nufone.net/downloads/asteriskdocs/AsteriskTFOT.zip">http://www.nufone.net/downloads/asteriskdocs/AsteriskTFOT.zip</a>
Dan
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<br>
</body>
</html>