[asterisk-bugs] [JIRA] (ASTERISK-21065) Asterisk 11 TCPv6 AGI fail
Michael L. Young (JIRA)
noreply at issues.asterisk.org
Tue Feb 12 15:52:58 CST 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-21065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202844#comment-202844 ]
Michael L. Young commented on ASTERISK-21065:
---------------------------------------------
Just like cloos states, I find it interesting that your hosts file lists localhost for both the ipv4 and ipv6 interfaces. Most dists that I have seen label them differently. In RHEL/Fedora it is normally localhost for ipv4 and localhost6 for ipv6.
I took a look at the res_agi.c code and it does look like it already does get a list of addresses and goes through them until connect succeeds. In this case, it would appear that Asterisk does its job in checking if it can create a socket and connect to, in this case, localhost using the ipv6 address that was returned. This is successful since the loopback adapter is setup to handle ipv6. What is failing is when Asterisk tries to send a message over the socket that has been setup that Asterisk gets the message, "Connection refused", since the daemon is not listening on ipv6.
I think the best way to fix this is to change the hosts file so that localhost does not resolve to the ipv6 address.
> Asterisk 11 TCPv6 AGI 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
> 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