Hello, I do not recal now any place in the code where the sip_uri structure is printed back in a string. Mainly because the sip_uri structure is used read-only, its fields are pointing inside the buffer where the URI that was parsed was stored.
If you want to get the URI, at least in the kamailio code I am very familair with, there should be already available somewhere in another variable or field, otherwise the sip_uri structure is invalid, pointing to nowhere. So, if you look a specific part of code where you want to get the URI, then give more details (file/line/function/) and I can eventually give hints how to access the URI buffer. Cheers, Daniel On 14.02.19 16:27, Ivan Ribakov wrote: > Hi all, > > does anyone know if there is a C function available in some module/header > that assembles parsed sip_uri struct back into a single buffer? I’ve been > looking at msg_parser.h (where sip_uri struct is defined) and parse_uri.h, > but I can’t see anything of that kind. > > Thanks in advance, > Ivan > _______________________________________________ > Kamailio (SER) - Users Mailing List > [email protected] > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com _______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
