[sr-dev] help with parse_sip_msg_uri function
Juha Heinanen
jh at tutpro.com
Fri Apr 2 09:14:54 CEST 2010
Andrei Pelinescu-Onciul writes:
> Yes, if uri->type = TEL_URI_T then the sip uri params are in
> msg->parsed_uri.sip_params.
> uris with user=phone are autoconverted to tel uris (if you don't want
> this, set phone2tel=0 in the .cfg) and in this case uri->params will
> contain the embedded tel uri params (e.g. 123;foo=bar at test.com;user=phone
> => uri->params="foo=bar").
andrei,
thanks for the explanation.
i made a couple of more tests and they showed that when r-uri does NOT
contain user=phone, then the parameters are stored in BOTH params and
sip_params fields and when user=phone is present, then the parameters
are stored ONLY in sip_params field.
based on that, it seems safe to convert handle_ruri_alias() function to
always look ;alias parameter in sip_params field.
-- juha
More information about the sr-dev
mailing list