[OpenSER-Devel] SF.net SVN: openser: [2420] trunk
Juha Heinanen
jh at tutpro.com
Mon Jul 9 21:19:06 CEST 2007
Daniel-Constantin Mierla writes:
> I applied now the same fix as in devel to 1.2 -- if PV is null, then no
> transformation can be applied.
daniel,
i tried
$rU = null;
xlog("L_INFO", "Request URI <$ru>\n");
if ($(rU{s.len}) == 0) {
xlog("L_INFO", "Length is 0\n");
}
if ($(rU{s.len}) == 1) {
xlog("L_INFO", "Length is 1\n");
}
xlog("L_INFO", "Length is $(rU{s.len})\n");
sl_send_reply("500", "Testing\n");
exit;
with tonight's svn trunk version and got:
Jul 9 21:59:06 localhost /usr/sbin/openser[23658]: Request URI <sip:test.fi>
Jul 9 21:59:06 localhost /usr/sbin/openser[23658]: comp_scriptvar: cannot get left var value
Jul 9 21:59:06 localhost /usr/sbin/openser[23658]: WARNING: do_action:error in expression
Jul 9 21:59:06 localhost /usr/sbin/openser[23658]: comp_scriptvar: cannot get left var value
Jul 9 21:59:06 localhost /usr/sbin/openser[23658]: WARNING: do_action:error in expression
Jul 9 21:59:06 localhost /usr/sbin/openser[23658]: Length is
in order to get rid of the error messages, i would need to test if $rU
is not null before trying to get its length.
i would prefer to be able to use null value also in expressions without
error messages.
-- juha
More information about the Devel
mailing list