[asterisk-bugs] [JIRA] (ASTERISK-17090) bindaddr=[::]:5060 does not work as expected under FreeBSD

Dan Lukes (JIRA) noreply at issues.asterisk.org
Fri Dec 6 16:45:03 CST 2013


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

Dan Lukes commented on ASTERISK-17090:
--------------------------------------

RFC2553 does not define the ordering constraint between calls to bind(2), nor how IPv4 TCP/UDP port numbers and IPv6 TCP/UDP port numbers relate to each other (should they be integrated or separated).  Implemented behavior is very different from kernel to kernel.  Therefore, it is unwise to rely too much upon the behavior of AF_INET6 wildcard bind sockets.  It is recommended to listen to two sockets, one for AF_INET and another for AF_INET6, when you would like to accept both IPv4 and IPv6 traffic.

Unfortunately, Asterisk decided to follow easy way.

                
> bindaddr=[::]:5060 does not work as expected under FreeBSD
> ----------------------------------------------------------
>
>                 Key: ASTERISK-17090
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-17090
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Channels/chan_sip/IPv6
>            Reporter: Paul Belanger
>            Severity: Minor
>
> Bamboo found this issue.  Apparently, bindaddr=[::]:5060 in sip.conf will only open IPv6 ports, IPv4 remain closed.
> This is different from Linux systems.
> ****** ADDITIONAL INFORMATION ******
> http://bamboo.asterisk.org/browse/AST18-FREEBSD81-35

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list