[sr-dev] [permissions module] allow_source_address_group() drops the request if it returns 0

Iñaki Baz Castillo ibc at aliax.net
Tue Feb 9 00:33:02 CET 2010


El Martes, 9 de Febrero de 2010, Daniel-Constantin Mierla escribió:
> > So what about if I want to develop a module function which can return 0
> > as a valid integer
> 
> You can do that ...
> 
> >   and store it in a pv?
> 
> but it won't get here!

Sure, I've experimented by myself :)


> Returning 0 from a function (core or module) is 'exit' from the
> beginning of SER in 2001, it is how tm functions absorb retransmissions
> and the config is not executed further (e.g., t_check_trans(),
> t_newtran(), ...).

Oh yes, it makes more sense now :)



> > "return 0" is document (AFAIK) but I didn't expect that any function
> > returning 0 means "exiting".
> 
> It means. 'return' is a core function.

But I don't meant "return" core function, but any other function. Anyhow 
understood now.

 

Thanks.

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



More information about the sr-dev mailing list