<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi:</DIV>
<DIV>Thanks for your answer.</DIV>
<DIV>i tried your suggestion (exten => _.3333.,1,Noop) but it didnt work ,i think (_.3333.) is wrong formula to mean that number contains those 3333 coz asterisk didnt matched the call with extension , is there any other formula? i will write down wht i want to exactly to do :</DIV>
<DIV>a call come from outside when it came with a number contains 3333 like (00961<FONT style="BACKGROUND-COLOR: #ff0000">3333</FONT>5552)<BR>it will give him congestion ,and if it came up with number doesnt have those 3333 it will pass to another extension ,this is sample about wht i want exactly but i wrote it in simple way coz i dont know other than this to try .</DIV>
<DIV> </DIV>
<DIV>exten => _.3333.,1,Congestion </DIV>
<DIV>exten => _00.,1,Dial,Dahdi/1/${EXTEN}<BR>--- On <B>Wed, 4/28/10, Jim Dickenson <I><dickenson@cfmc.com></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Jim Dickenson <dickenson@cfmc.com><BR>Subject: Re: [asterisk-users] dialplan<BR>To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com><BR>Date: Wednesday, April 28, 2010, 1:10 PM<BR><BR>
<DIV id=yiv513510162>Are talking about something like
<DIV><BR></DIV>
<DIV>exten => _.3333.,1,Noop(Have 3333 in this extension)</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>There is also this function that can be used to look for sub strings inside a string.</DIV>
<DIV><BR></DIV>
<DIV>
<DIV>core show function REGEX</DIV>
<DIV><BR></DIV>
<DIV> -= Info about function 'REGEX' =- </DIV>
<DIV><BR></DIV>
<DIV>[Syntax]</DIV>
<DIV>REGEX("<regular expression>" <data>)</DIV>
<DIV><BR></DIV>
<DIV>[Synopsis]</DIV>
<DIV>Regular Expression</DIV>
<DIV><BR></DIV>
<DIV>[Description]</DIV>
<DIV>Returns 1 if data matches regular expression, or 0 otherwise.</DIV>
<DIV>Please note that the space following the double quotes separating the regex from the data</DIV>
<DIV>is optional and if present, is skipped. If a space is desired at the beginning of the data,</DIV>
<DIV>then put two spaces there; the second will not be skipped.</DIV>
<DIV><BR></DIV>
<DIV><SPAN style="FONT-FAMILY: Helvetica" class=Apple-style-span>
<DIV>
<DIV style="MARGIN: 0px; FONT: 10px Monaco">-- </DIV>
<DIV style="MARGIN: 0px; FONT: 10px Monaco">Jim Dickenson</DIV>
<DIV style="MARGIN: 0px; FONT: 10px Monaco"><A href="http://us.mc653.mail.yahoo.com/mc/compose?to=dickenson@cfmc.com" rel=nofollow target=_blank ymailto="mailto:dickenson@cfmc.com">mailto:dickenson@cfmc.com</A></DIV>
<DIV style="MARGIN: 0px; MIN-HEIGHT: 14px; FONT: 10px Monaco"><BR></DIV>
<DIV style="MARGIN: 0px; FONT: 10px Monaco">CfMC</DIV>
<DIV style="MARGIN: 0px; FONT: 10px Monaco"><A href="http://www.cfmc.com/" rel=nofollow target=_blank>http://www.cfmc.com/</A></DIV>
<DIV><FONT class=Apple-style-span size=2 face=Monaco><SPAN style="FONT-SIZE: 10px" class=Apple-style-span><BR></SPAN></FONT></DIV></DIV></SPAN><BR class=Apple-interchange-newline></DIV><BR>
<DIV>
<DIV>On Apr 28, 2010, at 5:49 AM, wassim darwich wrote:</DIV><BR class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>Hi guys:</DIV>
<DIV>i need to set an extension in my dialplan in which it divert calls if the extension contain specific series ,For example :</DIV>
<DIV>I need to divert calls which <FONT style="BACKGROUND-COLOR: #ff0000">contain</FONT> 3333 to specific extension (contain ,not start or end with), as i know i should set Gotoif command but i dont know what to set after that,Any help will be appreciated. </DIV></TD></TR></TBODY></TABLE><BR>-- <BR>_____________________________________________________________________<BR>-- Bandwidth and Colocation Provided by <A href="http://www.api-digital.com/" rel=nofollow target=_blank>http://www.api-digital.com</A> --<BR>New to Asterisk? Join us for a live introductory webinar every Thurs:<BR> <A href="http://www.asterisk.org/hello" rel=nofollow target=_blank>http://www.asterisk.org/hello</A><BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE or update options visit:<BR> <A href="http://lists.digium.com/mailman/listinfo/asterisk-users"
rel=nofollow target=_blank>http://lists.digium.com/mailman/listinfo/asterisk-users</A></BLOCKQUOTE></DIV><BR></DIV></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>-- <BR>_____________________________________________________________________<BR>-- Bandwidth and Colocation Provided by <A href="http://www.api-digital.com/" target=_blank>http://www.api-digital.com</A> --<BR>New to Asterisk? Join us for a live introductory webinar every Thurs:<BR> <A href="http://www.asterisk.org/hello" target=_blank>http://www.asterisk.org/hello</A><BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE or update options visit:<BR> <A href="http://lists.digium.com/mailman/listinfo/asterisk-users" target=_blank>http://lists.digium.com/mailman/listinfo/asterisk-users</A></DIV></BLOCKQUOTE></td></tr></table><br>