[SR-Users] route return value confusion

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 12 11:29:05 CET 2011


Hello,

On 12/12/11 10:45 AM, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>> cannot test it for now personally, but what you get if you do:
>>
>> route(TEST_ROUTE_MINUS_ONE);
>>
>> $var(r) = $rc;
>>
>> xlog("returned code by route minus one is: $var(r)\n");
>>
>> Maybe this will give some leads I can follow in the code...
> daniel,
>
> i correctly get:
>
> Dec 12 11:42:37 sip /usr/sbin/sip-proxy[1308]: ERROR: returned code by route minus one is: -1
>
> so it is only the test
>
> if (route(TEST_ROUTE_MINUS_ONE) == -1) ...
>
> that fails.
ok, so looks like IF with a mod function returning negative needs 
investigation. I will look over it soon.

Cheers,
Daniel



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




More information about the sr-users mailing list