wiki transformations page on param.value does not mention, what is the result of the transformation when named param does not exist. same with many other transformations.
what is the value if referenced value does not exit? should it be mentioned on the wiki page?
-- juha
Hello,
I haven;t checked the sources, but, iirc, most of the transformations return an empty string if the expected value was not found.
Adding in the docs what happens in such cases it is good of course, anyone just have to do it when they discover something missing.
Cheers, Daniel
On 12/11/14 03:29, Juha Heinanen wrote:
wiki transformations page on param.value does not mention, what is the result of the transformation when named param does not exist. same with many other transformations.
what is the value if referenced value does not exit? should it be mentioned on the wiki page?
-- juha
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel-Constantin Mierla writes:
I haven;t checked the sources, but, iirc, most of the transformations return an empty string if the expected value was not found.
i don't think that empty string is returned, because when i tried to assign result of a transformation on result of another transformation to a variable, i got
Nov 12 05:14:08 rautu /usr/bin/sip-proxy[13649]: ERROR: <core> [lvalue.c:356]: lval_pvar_assign(): non existing right pvar
if the inner transformation would have resulted in empty string, then also the outer transformation would have done the same.
-- juha
On 12/11/14 13:53, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
I haven;t checked the sources, but, iirc, most of the transformations return an empty string if the expected value was not found.
i don't think that empty string is returned, because when i tried to assign result of a transformation on result of another transformation to a variable, i got
Nov 12 05:14:08 rautu /usr/bin/sip-proxy[13649]: ERROR: <core> [lvalue.c:356]: lval_pvar_assign(): non existing right pvar
if the inner transformation would have resulted in empty string, then also the outer transformation would have done the same.
Was the value of the variable null or not a string? If not, was there any parameter in the value?
Cheers, Daniel
Daniel-Constantin Mierla writes:
Was the value of the variable null or not a string? If not, was there any parameter in the value?
the inner transformation was uri.headers transformation on an uri that did not have headers. the outer one was param.value transformation. when i then tried to assign the final value to a variable, i got the error message.
-- juha