[asterisk-dev] No complete handling of SIP Via: header?

Samuel Tardieu sam at rfc1149.net
Wed Dec 6 04:20:49 MST 2006


>From what I can read in chan_sip.c (SVN), Asterisk contains no
provision for handling SIP Via: headers containing several routing
information.

According to RFC 3261, one can use a single Via: header to put several
data (note the 0 or more "COMMA via-parm" term):

  Via =  ( "Via" / "v" ) HCOLON via-parm *(COMMA via-parm)

At least one vendor hardware (Cirpack) uses this compact form, causing
Asterisk to add the ";received=..." to the wrong place (on the latest
record of the first Via: header, instead of on the first record of the
first Via header). This wrongly placed "received" causes further
problems afterwards.

Did I overlook something in chan_sip.c or is it (as I think) a real
bug?

  Sam
-- 
Samuel Tardieu -- sam at rfc1149.net -- http://www.rfc1149.net/



More information about the asterisk-dev mailing list