Hello,

after sip_msg is parsed , parsed flag is up. even if msg is parsed , whole 
header  stores in body variable in
typedef struct hdr_field {
    hdr_types_t type;       /*!< Header field type */
    str name;               /*!< Header field name */
    str body;               /*!< Header field body (may not include CRLF) */
    int len;        /*!< length from hdr start until EoHF (incl.CRLF) */
    void* parsed;           /*!< Parsed data structures */
    struct hdr_field* next; /*!< Next header field in the list */
} hdr_field_t;

Good luck.
Yasin CANER

________________________________
From: sr-users <[email protected]> on behalf of Ivan Ribakov 
<[email protected]>
Sent: Thursday, February 14, 2019 6:27 PM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] Assemble struct sip_uri back to string?

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
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to