[sr-dev] question on sip_msg struct hdr_field* h_via2
Daniel-Constantin Mierla
miconda at gmail.com
Mon Nov 9 14:28:01 CET 2009
On 09.11.2009 10:15 Uhr, Juha Heinanen wrote:
> 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 */
>
via2 is a shortcut to 2nd via for the purpose of reply routing.
Cheers,
Daniel
> 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
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>
--
Daniel-Constantin Mierla
* http://www.asipto.com/
More information about the sr-dev
mailing list