[SR-Users] Using =~ to get the group identifier with longest match

Iñaki Baz Castillo ibc at aliax.net
Mon Jun 6 12:50:02 CEST 2011


2011/6/6 Henning Westerholt <henning.westerholt at 1und1.de>:
> if you just want to have the longest match on a prefix tree, this is what
> carrierroute was build for.
>
>> In case $rU = "999999" I need to get "null", in case $rU =
>> "1000022323" I need to get "1".
>
> Its works a bit differently, but this is similar to the logic that we use.
> You've a bunch of specific prefixes with special routing, normal country
> prefixes that you want to route differently and then a default routing for the
> rest

Thanks Henning. I do know that CR and LCR operate with longest prefix
matching, but I don't want this feature now for routing purposes, but
for blacklist purposes. So using dialplan module with higher
priorities in longer prefixes would be valid in my case.

Thanks a lot.

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the sr-users mailing list