[sr-dev] Possible bug in app_perl

Daniel-Constantin Mierla miconda at gmail.com
Fri May 2 21:49:44 CEST 2014


On 02/05/14 13:52, James Cloos wrote:
>>>>>> "DM" == Daniel-Constantin Mierla <miconda at gmail.com> writes:
> DM> The return codes have a special interpretation in the config file:
>
> DM> * >0 - is true
> DM> * <0 - is false
> DM> * =0 - exit config file execution
>
> Ah.  I didn't find that.
>
> DM> http://www.asipto.com/pub/kamailio-devel-guide/#c16return_values
>
> Thanks for that pointer; most interesting!
>
> DM> I guess perl_exec() returns what is returned from the perl script.
>
> Yes.
>
> The -/0/+ distinctiong nicely makes things easier for what I want to do.
>
This evaluation is from the beginning of ser back in 2001, some notes 
were in cookbook:

http://www.kamailio.org/wiki/cookbooks/4.1.x/core?&#return

I added an entry in the faq to be easier to find:

http://www.kamailio.org/wiki/tutorials/faq/main#how_is_the_function_return_cod

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda




More information about the sr-dev mailing list