[SR-Users] Globalblacklist - change c-code - how to???

Juha Heinanen jh at tutpro.com
Sun Oct 17 15:07:42 CEST 2010


"Nicolas Rüger" writes:

> I am just not an experienced programmer and I thought it might be
> easier for me just to change "msg->parsed_uri.user.s" to something
> that returns the caller instead of the callee.

if you do that then you need to keep on patching sr yourself.  if you
param, you can submit your patch to be included in the module.

> Do you think that adding a parameter is not that complicated?

no it is not that complicated.  there are lots of examples in the
modules on how to do it.  in this case a little complication comes from
the fact that the function already has an optional parameter.  you would
need to make the syntax look like

check_blacklist ([string table, uri]).

-- juha



More information about the sr-users mailing list