[asterisk-bugs] [JIRA] (ASTERISK-21065) Asterisk 11 IPv6 - FastAGI fail

Michael L. Young (JIRA) noreply at issues.asterisk.org
Wed Feb 13 11:17:58 CST 2013


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

Michael L. Young commented on ASTERISK-21065:
---------------------------------------------

Jeremy,

What you need to understand is there is the OS involved here and then there is the application.  Asterisk uses the standard kernel libraries for setting up the socket for FastAGI.  The kernel is reporting to Asterisk that the host can be found at ::1 and 127.0.0.1.  Asterisk then asks the kernel to create a socket based on the returned IP address.  The kernel responds back that it was successful.  Then Asterisk proceeds to ask the kernel to connect to ::1.  The kernel responds back that it was successful.  Asterisk then attempts to send data over the established connection.  It receives an error, not due to Asterisk's fault or the kernel's fault, but due to the fact that there is nothing on the host to handle the data being sent to the host.

The RFC you refer to, based on a quick look through it, seems to be for handling when IPv6 fails which is not what is happening here.  IPv6 to the host is successful but there is no daemon listening or responding.

I am not sure how else we can correct what is plainly a configuration problem, which is not under Asterisk's control.  Everything is working properly.

I did review the code and everything looks good from my perspective.  I don't think it would be very beneficial to create a socket, connect and then try to send data over the socket to then have to tear it all down and do it all over again for every address resolved for that host due to a configuration problem on an OS level.  The configuration problem should be corrected (whether by changing the hostname, removing the hostname in hosts or by setting up the daemon to listen on both IPv4 and IPv6), not masked.

The wiki page is probably more for issues that people have come across when upgrading Asterisk in general.  For this situation, that would be the best place to put this information.  UPGRADE*.txt is more for when there are Asterisk related code changes that directly affect Asterisk configurations, not necessarily, changes that are related to the configuration in the distro of choice.  That is just my opinion... Matt will correct me if I am wrong.
                
> Asterisk 11 IPv6 - FastAGI fail
> -------------------------------
>
>                 Key: ASTERISK-21065
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21065
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_agi
>    Affects Versions: 11.2.1
>            Reporter: Jeremy Kister
>            Assignee: Matt Jordan
>         Attachments: 21065-1.patch, console_debug.txt, console.txt, extensions.conf
>
>
> exten => 1,1,AGI(agi://localhost/foo) always fails with "Connect failed"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list