[OpenSER-Users] The best way to allow just a few destinations based on prefix?
Iñaki Baz Castillo
ibc at aliax.net
Tue Feb 19 20:53:51 CET 2008
El Martes, 19 de Febrero de 2008, Juha Heinanen escribió:
> Iñaki Baz Castillo writes:
> > Hi, which would be the more ellegant way to allow users to call just a
> > few destinations (based on prefix)?
>
> if you use radius, you could return user's allowed prefixes as reply
> items when user is authenticated.
>
> if the list is long, this is not very practical and you may need to
> implement a separate check for it. it is quite hard to avoid db query
> in that check especially if each domain/user may have its own list.
Thanks. The fact is that I don't need per user allowed prefixed, just a
dynamic list of them (so DB storage) and a way to reload it.
Using PDT module (in a not very common way) solves my problem since I use PDT
table for storage and can reload with a FIFO command.
Regards.
--
Iñaki Baz Castillo
More information about the sr-users
mailing list