[asterisk-users] dialplan

wassim darwich wassimdarwich1 at yahoo.com
Wed Apr 28 11:35:59 CDT 2010


Hi:
Thanks for your answer.
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 :
a call come from outside when it came with a number contains 3333 like (0096133335552)
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 .
 
exten => _.3333.,1,Congestion 
exten => _00.,1,Dial,Dahdi/1/${EXTEN}
--- On Wed, 4/28/10, Jim Dickenson <dickenson at cfmc.com> wrote:


From: Jim Dickenson <dickenson at cfmc.com>
Subject: Re: [asterisk-users] dialplan
To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
Date: Wednesday, April 28, 2010, 1:10 PM


Are talking about something like


exten => _.3333.,1,Noop(Have 3333 in this extension)




There is also this function that can be used to look for sub strings inside a string.



core show function REGEX


  -= Info about function 'REGEX' =- 


[Syntax]
REGEX("<regular expression>" <data>)


[Synopsis]
Regular Expression


[Description]
Returns 1 if data matches regular expression, or 0 otherwise.
Please note that the space following the double quotes separating the regex from the data
is optional and if present, is skipped. If a space is desired at the beginning of the data,
then put two spaces there; the second will not be skipped.




-- 
Jim Dickenson
mailto:dickenson at cfmc.com


CfMC
http://www.cfmc.com/





On Apr 28, 2010, at 5:49 AM, wassim darwich 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

-----Inline Attachment Follows-----


-- 
_____________________________________________________________________
-- 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100428/9aaf961e/attachment.htm 


More information about the asterisk-users mailing list