Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Submitted By: Sergio Gutierrez (saguti)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: parse_sip_msg_uri not working as expected.
parse_sip_msg_uri is intended to initialize parsed_uri field of sip_msg struct.
When using this function, I see that parsed_uri.user.s, when is displayed, shows the whole sip message.
parsed_uri.user is a STR struct and the these kind of strings are not null
terminated (they are kept as start + len). When printing, %s is for a
null-terminated string (and it will not work for a str struct); for STR
use, "%.*s" and pass len and start as parameters.