[asterisk-bugs] [JIRA] (ASTERISK-26625) All PJSIP calls rejected with 'Unable to allocate RTP socket: Address family not supported by protocol'
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Fri Nov 25 12:28:10 CST 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=233902#comment-233902 ]
Asterisk Team commented on ASTERISK-26625:
------------------------------------------
Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.
A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.
Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].
> 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