[OpenSER-Users] userblacklist

Henning Westerholt henning.westerholt at 1und1.de
Wed Apr 16 13:00:51 CEST 2008


On Tuesday 15 April 2008, Helmut Kuper wrote:
> is it possible to add a way to userblacklist so that we have two tables
> (one for incomming and one for outgoing (user|global)blacklists) ?

Hi Helmut,

yes, this could be possible. The actual logic is although not designed to this 
case, for example table version checks are done during the startup.

For the global blacklists (check_blacklist function) nothing needs to be done, 
this works out of the box, as you specify the table name in the function.

> I enhanced userblacklist module following the sledge hammer method (just
> duplicating the code) so I have now a 2nd userblacklist table which can
> be requested by my own check_user_blacklist2() function controlled by 2
> additional modparams (use_domain2, db_table2)
>
> It would be nice to have one check_blacklist function with a tablename
> as an additional parameter.

For the user blacklists (check_user_blacklist function) there could be one 
more parameter for the table added. This parameter should be optional.

check_user_blacklist (string user, string domain, table)

Cheers,

Henning




More information about the sr-users mailing list