Any header which uses the "repeated field separated by comma" format can be repeated either via the comma for by multiple instances of the header. It spells this out somewhere in 3261.
In theory I think some form of header that doesn't meet that requirement might also be allowed to be repeated, but I can't think of a case of that right now. You are discovering that the ABNF isn't a complete specification of the syntax. It doesn't cover this sort of thing. Paul Iñaki Baz Castillo wrote: > Hi, AFAIK headers "Via", "Route" and "Record-Route" can appear multiple times > in a message (not just multiples values in each header), for example: > > INVITE sip:asdasdasd SIP/2.0 > Via: xxxxxxxx, xxxx > Via: xxxxxxx > Via: xxxxxxxxxxx > ... > > I don't find in RFC 3261 which exact headers can appear multiple times in a > message. For example: can "Require" header appear multiple times? Considere > this case: > > INVITE sip:qweqweqwe SIP/2.0 > Require: replaces > Require: wrong_value > > Should the UAS reply 420 (Bad Extension) because the second "Require" is > wrong? or should it accepts the message since the only "Require" header it > must inspect is the first one? > > Any point to RFC 3261 is welcome :) > Thanks for any explanation. > > _______________________________________________ Sip-implementors mailing list Sip-implementors@lists.cs.columbia.edu https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors