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

Henning Westerholt henning.westerholt at 1und1.de
Mon Jun 6 13:36:02 CEST 2011


On Monday 06 June 2011, Iñaki Baz Castillo wrote:
> It's not valid for my custom case as I need a function returning an id
> of the matched groups. This is, I have various geo-zone groups:
> 
>   1: Europe (prefixes of Europe)
>   2: North America (prefixes of North America)
>   ...
> 
> Each client has a boolean field to set permission for calls to each
> geo-zones.
> 
> So I think it's better for me to use dialplan module and return the
> geo-zone id in the "attrs" AVP.

Yes - the dialplan is much more flexible of course. :-)

Henning



More information about the sr-users mailing list