[OpenSER-Devel] returning 0 from function

Juha Heinanen jh at tutpro.com
Mon Mar 3 11:08:57 CET 2008


Dan Pascu writes:

 > AFAIK, there are functions in tm that rely on this, including t_relay if 
 > I'm not mistaken. I'd say that until a list of the module functions that 
 > use this behavior is made so we can draw a conclusion, it's premature to 
 > assume this will be easy to change, or that is even possible to give up 
 > on the behavior without major code restructuring.

in my openser.cfg i do call exit also after t_relay.  i think is it is
very bad programming practice to relay certain functions to exit the
script implicitly.  in my opinion, no module function should cause the
script to exit.  it should be always the decision of script writer.

-- juha



More information about the Devel mailing list