You have a *right* to consider this a syntax error if you like.
But whether that is a good thing to do or not depends on your goals.
If you are writing a certification tool it may well be. If you are 
writing a product whose goal is to maximize interoperation then it is 
probably not the best choice.

In your example, that part of the via header is not operationally 
important to you. You might be better off to ignore the error. The 
server that sees it as the top Via can deal with the problem.

        Paul

Iñaki Baz Castillo wrote:
> Hi, in the parser I'm doing if a multivalue header (i.e. "Via") has a wrong 
> entry then the parser return ERROR, even if the wrong entry is the last one.
> 
> Imagine this case in which the last (third) "Via" value is wrong:
> 
>   Via: SIP/2.0/TCP 192.168.1.5:4343;received=88.88.88.88;rport  ,  SIP  /
>     3.0 /UDP  bob.host.com, WRONG VALUE"
> 
> Is it correct if I return error because that? or should I parse indepently 
> each entry of a multivalue header? Of course I know that there is not a 100% 
> pure rule for this issue and is a vendor decission, but I'd like to know the 
> possible issues I could have by giving error.
> 
> Thanks.
> 
> 
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to