[asterisk-bugs] [JIRA] (ASTERISK-27437) [patch] chan_sip/ICE: server-reflexive candidates (srflx) with Dual-Stack.
Alexander Traud (JIRA)
noreply at issues.asterisk.org
Tue Nov 21 06:26:07 CST 2017
Alexander Traud created ASTERISK-27437:
------------------------------------------
Summary: [patch] chan_sip/ICE: server-reflexive candidates (srflx) with Dual-Stack.
Key: ASTERISK-27437
URL: https://issues.asterisk.org/jira/browse/ASTERISK-27437
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Channels/chan_sip/IPv6, Resources/res_rtp_asterisk
Affects Versions: 15.1.2, 13.18.2
Reporter: Alexander Traud
When ICE and IPv4+IPv6 (Dual-Stack) are enabled, no server-reflexive ICE candidates (srflx) are advertised in SDP, even if a user-agent client is connected via IPv4 only.
*Steps to reproduce*
# Asterisk behind a NAT
# 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 server-reflexive ICE candidates, like:
{{a=candidate:2 1 UDP 1694498815 192.0.2.3 45664 typ srflx raddr 10.0.1.1 rport 8998}}
*Actual results*
The answer to the SIP-INVITE contains an SDP media session without any server-reflexive ICE candidates.
*Notes*
The current source code works for IPv4-only servers. In all other cases (IPv6-only, IPv4+IPv6) no srflx are gathered. The attached patch gathers srflx even when Asterisk is enabled for IPv4+IPv6. When no IPv4 interface is available (Asterisk is IPv6-only), the proposed patch does not gather srflx as before.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list