Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Apr 24, 2024 10:58 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: prefix matching pattern
PostPosted: Wed Jun 28, 2006 10:12 pm 
Offline

Joined: Mon Jun 19, 2006 5:14 pm
Posts: 218
does anybody know if a2b will match any prefix or must it be numeric. for example can I do

**74
.
*82


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 28, 2006 10:21 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
it must be numeric.
Rgds, Areski


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 03, 2008 1:08 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
I thought to celebrate my 2^10th post I'd try to implement one of the oldest feature requests for A2Billing.
Gue, you'll be pleased to know when A2Billing v1.4 ships it will support using a mix of Asterisk and POSIX regular expression syntax to match rates, eg
Code:
_447[57-9]XXXXXXXX     matches all UK mobile numbers
_X{0,3}(112|999|911)   matches any 0-3 digits followed by one of the emergency numbers
_XXX                   matches any 3 digit numbers
_NX.                   match numbers starting with 2-9, followed by at least one more digit
_X{6,8}                match only 6- or 8-digit numbers

You can use more '_' (anywhere in the string) to pad the length, and therefore increase the match priority.

I'm running this in production on branches/1.3 and enjoying much more concise rate tables.


Last edited by stavros on Fri Dec 19, 2008 12:27 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 03, 2008 6:22 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
You rock mannnnnnn.

I will try this on a test server before getting used to it. But I really like the idea.

You da man.

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 22, 2008 8:40 am 
Offline

Joined: Sat Mar 29, 2008 11:03 pm
Posts: 2
i just have to say brilliant work on this.

followed this thread to find it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group