Daniel-Constantin Mierla writes:
It was the parser setting the value of host part to
"", not the
transformation, so the change had to be done in other file. Can you try
again with latest master?
thanks for the fix. now the crash is gone. statements:
$var(test_uri) = "tel:+358447058060";
xlog("L_INFO", "****** extracting host from
<$var(test_uri)>\n");
$var(host) = $(var(test_uri){uri.host});
xlog("L_INFO", "****** host is <$var(host)>\n");
$rd = $var(host);
xlog("L_INFO", "****** request uri is <$ru>\n");
produce to syslog:
Apr 7 18:25:24 lohi /usr/bin/sip-proxy[25002]: INFO: ****** extracting host from
<tel:+358447058060>
Apr 7 18:25:24 lohi /usr/bin/sip-proxy[25002]: INFO: ****** host is <>
Apr 7 18:25:24 lohi /usr/bin/sip-proxy[25002]: ERROR: pv [pv_core.c:250]: pv_get_ruri():
failed to parse the R-URI
Apr 7 18:25:24 lohi /usr/bin/sip-proxy[25002]: INFO: ****** request uri is
<<null>>
this crash has existed at least from version 4.0 onwards.
-- juha