[asterisk-bugs] [JIRA] (ASTERISK-28648) chan_sip.c copy_via_headers() function not RFC 3261 compliant

Bill Mandra (JIRA) noreply at issues.asterisk.org
Wed Dec 4 09:16:31 CST 2019


Bill Mandra created ASTERISK-28648:
--------------------------------------

             Summary: chan_sip.c copy_via_headers() function not RFC 3261 compliant
                 Key: ASTERISK-28648
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28648
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Channels/chan_sip/General
    Affects Versions: 16.6.1
            Reporter: Bill Mandra


Per RFC 3261 8.2.6.2 Headers and Tags:
The Via header field values in the response MUST equal the Via header field values in the request and MUST maintain the same ordering.

However, the copy_via_headers function inserts "received=" or "received=;rport=" potentially into the middle of the header which does not maintain ordering of the field values.

To be RFC 3261 compliant, received and rport should always be appended to the end of the via header.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list