[SR-Users] failure in accessing r-uri params

Juha Heinanen jh at tutpro.com
Thu Dec 19 06:19:08 CET 2013


i started to wonder, why my config does not work when there is
';user=phone' param in r-uri.  in order to investigate, i added these to
the config:

    xlog("L_INFO", "r-uri = '$ru'\n");
    xlog("L_INFO", "r-uri params = '$(ru{uri.params})'\n");
    xlog("L_INFO", "r-uri params = '$sel(ruri.params)'\n");

and made two tests. in the first, r-uri param is ;user=phone:

Dec 19 07:08:10 rautu /usr/sbin/sip-proxy[5107]: INFO: r-uri = 'sip:+35862345670 at test.tutpro.com;user=phone'
Dec 19 07:08:10 rautu /usr/sbin/sip-proxy[5107]: INFO: r-uri params = ''
Dec 19 07:08:10 rautu /usr/sbin/sip-proxy[5107]: INFO: r-uri params = '<null>'

and in the second r-uri param is ;param=value:

Dec 19 07:09:59 rautu /usr/sbin/sip-proxy[5107]: INFO: r-uri = 'sip:+35862345670 at test.tutpro.com;param=value'
Dec 19 07:09:59 rautu /usr/sbin/sip-proxy[5107]: INFO: r-uri params = 'param=value'
Dec 19 07:09:59 rautu /usr/sbin/sip-proxy[5107]: INFO: r-uri params = 'param=value'

note the difference.  in the first, neither uri transformation nor ruri select
works, but they work in the second.

i checked from rfc3261 and both request uris are syntactically valid and
in both cases there is a valid r-uri parameter.

my current hack is to use tobody.params, but would like to get rid of
it.

-- juha



More information about the sr-users mailing list