[asterisk-bugs] [JIRA] (ASTERISK-27434) [patch] chan_sip/ICE: Square brackets around IPv6 addresses.

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Mon Apr 1 13:24:06 CDT 2019


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Harwell updated ASTERISK-27434:
-------------------------------------

    Target Release Version/s: 16.3.0

> [patch] chan_sip/ICE: Square brackets around IPv6 addresses.
> ------------------------------------------------------------
>
>                 Key: ASTERISK-27434
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27434
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/IPv6
>    Affects Versions: 13.18.2, 15.1.2
>            Reporter: Alexander Traud
>              Labels: patch
>      Target Release: 13.19.0, 15.2.0, 16.0.0, 16.3.0
>
>         Attachments: ice_ipv6.patch
>
>
> Very similar to ASTERISK-26256, IPv6 addresses in the ICE candidates should not be represented with square brackets around them.
> *Steps to reproduce*
> # channel driver _chan_sip_
> # configuration file _sip.conf_ enabled for IPv6: {{bindaddr=::}}
> # configuration file _sip.conf_ enabled for ICE: {{icesupport=yes}}
> # call an extension on this Asterisk server, trace with Wireshark
> *Expected results*
> The answer to the SIP-INVITE contains an SDP media session with ICE candidates, like:
> {{a=candidate:1 1 UDP 2130706431 2001:470:e0d4::ee 8998 typ host}}
> *Actual results*
> The answer to the SIP-INVITE contains an SDP media session with ICE candidates, like:
> {{a=candidate:1 1 UDP 2130706431 \[2001:470:e0d4::ee\] 8998 typ host}}
> *Notes*
> The IP address and the port are separated through a space and not through a colon. Therefore, no brackets are required. Although every implementation should cope with that (see [RFC 5952|http://tools.ietf.org/html/rfc5952#section-6]), according to [RFC 5245 section 15.1|http://tools.ietf.org/html/rfc5245#section-15.1], no brackets are defined at that place:
> {code}
> connection-address = multicast-address / unicast-address
>    unicast-address = IP4-address / IP6-address / FQDN / extn-addr
>        IP6-address = hexpart [ ":" IP4-address ]
>            hexpart = hexseq / hexseq "::" [ hexseq ] / "::" [ hexseq ]
>             hexseq = hex4 *( ":" hex4)
>               hex4 = 1*4HEXDIG
> {code}



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



More information about the asterisk-bugs mailing list