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.