[asterisk-bugs] [JIRA] (ASTERISK-26625) All PJSIP calls rejected with 'Unable to allocate RTP socket: Address family not supported by protocol'

Joshua Colp (JIRA) noreply at issues.asterisk.org
Mon Nov 28 06:12:10 CST 2016


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

Joshua Colp closed ASTERISK-26625.
----------------------------------

    Resolution: Duplicate

> All PJSIP calls rejected with 'Unable to allocate RTP socket: Address family not supported by protocol'
> -------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-26625
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26625
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_sdp_rtp
>    Affects Versions: 13.13.0
>         Environment: Linux 4.8.3
> # CONFIG_IPV6 is not set
>            Reporter: Alexei Gradinari
>            Severity: Critical
>
> If the IPV6 is not supported the asterisk rejects all PJSIP calls with next errors:
> {noformat}
> WARNING[28163] res_rtp_asterisk.c: Unable to allocate RTP socket: Address family not supported by protocol
> WARNING[28163] res_rtp_asterisk.c: Failed to create a new socket for RTP instance '0x3cfb060'
> ERROR[28163] res_pjsip_sdp_rtp.c: Unable to create RTP instance using RTP engine 'asterisk'
> {noformat}
> The endpoint is configured with
> {noformat}
>  bind_rtp_to_media_address          : false
>  media_address                      : 
> {noformat}
> It's because the res_pjsip_sdp_rtp.c on load_module set default address to "::" which is the IPV6 address, then in a create_rtp a function 'ast_rtp_instance_new' is called with this IPV6 address.
> The function ast_rtp_new in res_rtp_asterisk.c checks sockaddr type and calls a function create_new_socket with a domain AF_INET6.
> The function create_new_socket calls socket with domain AF_INET6,
> as the IPV6 is not supported by the system, we got "Address family not supported by protocol"



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



More information about the asterisk-bugs mailing list