GotoIf($["${CALLERID}":".*333.*"]?your_extension) (untested)
Something like that (fix variable name to suitable). Check Asterisk regular
expressions.
http://www.voip-info.org/wiki/view/Asterisk+Expressions#RegularexpressionsOn Wed, Apr 28, 2010 at 3:49 PM, wassim darwich <[email protected]> wrote: > > Hi guys: > i need to set an extension in my dialplan in which it divert calls if the extension contain specific series ,For example : > 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. > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
