[sr-dev] Possible bug in app_perl

James Cloos cloos at jhcloos.com
Fri May 2 02:01:03 CEST 2014

Given this code in .cfg:

        if (!perl_exec("verify", "route_LOCATION")) {
           xlog("L_INFO", "Invite verify failed for ruri: $ru\n");
           sl_send_reply("403", "Not Allowed");

if the perl function returns 1 everything proceeds nicely (skipping the if
block as as expected).

But should the perl function return 0 (which seemed like the right choice
for failure) the call fails to progress; the if block does not run, and
nothing else does either.  The INVITing sip client retries and times out.

I had to return a negative value to get the if block to run.

Expected?  Or bug?

(Running deb's sid build on amd64.)

James Cloos <cloos at jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6

More information about the sr-dev mailing list