[OpenSER-Devel] error messages in log
Dan Pascu
dan at ag-projects.com
Fri Oct 26 12:13:51 UTC 2007
I have these messages in log:
core:do_assign: no value in right expression
core:do_assign: error at line: 246
They appear everytime I have something like this in my script:
$avp(s:some_var) = $hdr(some_header);
and the header is missing.
IMO, those messages should be moved to debug level, because it makes no
sense to have to write every such statement as:
if ($hdr(some_header)) {
$avp(s:some_var) = $hdr(some_header);
}
when it can simply leave the avp unset (do nothing) if the right side is
missing. Maybe it makes sense to see such errors if the right side is
another avp/var, that wasn't yet set, to detect programming errors, but
it makes no sense when the right side is a (potentially missing) header.
The end result of the operation is right (i.e. $avp(s:some_var) will be
null after this), only the messages appear in log everytime the header is
missing.
--
Dan
More information about the Devel
mailing list