[sr-dev] question on sip_msg struct hdr_field* h_via2

Juha Heinanen jh at tutpro.com
Mon Nov 9 10:15:40 CET 2009


daniel, andrei, or any parser expert,

i see that in typedef struct sip_msg there is these:

	struct via_body* via1;         /* The first via */
	struct via_body* via2;         /* The second via */

why two?  

if i call parse_headers(msg, HDR_EOH_F, 0) and via2 is not set, does it
mean that message had only one via?

-- juha



More information about the sr-dev mailing list