[Asterisk-Users] sample REGEX's for astcc

Karl H. Putz kputz at columbus.rr.com
Wed Feb 9 17:29:10 MST 2005


remember to use the ^ to indicate matching at the beginning of the number.

i.e ^01144 should be all you need to match any international call going to
country code 44.


Karl Putz

>-----Original Message-----
>From: asterisk-users-bounces at lists.digium.com
>[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Jason
>Kawakami
>Sent: Wednesday, February 09, 2005 7:05 PM
>To: asterisk-users at lists.digium.com
>Subject: [Asterisk-Users] sample REGEX's for astcc
>
>
>So I have a route with [1-9][0-9][0-9][1-9][0-9]* as a base route that
>should match NXXNX. Right?
>
>I built another route 01144[0-9]* that I thought would match 01144X. and
>send the call to the UK but the script is matching 01144207108???? With the
>first route.
>
>Can someone smarter than me help with some samples? Please?  If I can get
>one for 1NXXN. and 01144. I should be able to figure the rest out.
>
>Jason Kawakami
>www.optellabs.com
>Salt Lake City, UT
>
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>





More information about the asterisk-users mailing list