[SR-Users] failure in accessing r-uri params
Daniel-Constantin Mierla
miconda at gmail.com
Thu Dec 19 09:06:31 CET 2013
Hello,
I expect it has to do with the special requirements on handling uri
enforced by 'user=phone'. Something related was on sr-dev few time ago:
- http://lists.sip-router.org/pipermail/sr-dev/2013-December/022267.html
- http://lists.sip-router.org/pipermail/sr-dev/2013-December/022269.html
At that time I checked the sources and parameters are linked to another
field in uri structure than without it, thus the params field is somehow
left empty. I had no time to investigate more the specs, maybe looking
at parse_uri() will shed more light.
Cheers,
Daniel
On 19/12/13 06:19, Juha Heinanen wrote:
> 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
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
More information about the sr-users
mailing list