[sr-dev] set_ruri_host crash

Daniel-Constantin Mierla miconda at gmail.com
Sat Apr 8 09:44:19 CEST 2017



On 07.04.17 17:27, Juha Heinanen wrote:
> 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.
>
Indeed, patches will be backported -- I see you did it for 5.0, thanks!

Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com




More information about the sr-dev mailing list