<span style="font-family: courier new,monospace;">GotoIf($["${CALLERID}":".*333.*"]?your_extension)</span> (untested)<br>Something like that (fix variable name to suitable). Check Asterisk regular expressions.<br>
<a href="http://www.voip-info.org/wiki/view/Asterisk+Expressions#Regularexpressions">http://www.voip-info.org/wiki/view/Asterisk+Expressions#Regularexpressions</a><br><br><br>On Wed, Apr 28, 2010 at 3:49 PM, wassim darwich <<a href="mailto:wassimdarwich1@yahoo.com">wassimdarwich1@yahoo.com</a>> wrote:<br>
><br>> Hi guys:<br>> i need to set an extension in my dialplan in which it divert calls if the extension contain specific series ,For example :<br>> I need to divert calls which contain 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. <br>
><br>> --<br>> _____________________________________________________________________<br>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">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">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">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>