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

Bill Mandra (JIRA) noreply at issues.asterisk.org
Mon Dec 9 09:30:32 CST 2019


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249008#comment-249008 ] 

Bill Mandra commented on ASTERISK-28648:
----------------------------------------

Note, this issue also applies to the pjsip implementation.

> 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