[asterisk-bugs] [JIRA] (ASTERISK-21065) Asterisk 11 TCP AGI fail
Jeremy Kister (JIRA)
noreply at issues.asterisk.org
Tue Feb 12 12:07:58 CST 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-21065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202829#comment-202829 ]
Jeremy Kister commented on ASTERISK-21065:
------------------------------------------
{noformat}
2. You put in localhost:port/url
{noformat}
that fails [mostly] the same way:
{code}
[Feb 12 12:55:46] DEBUG[14462][C-00000002]: netsock2.c:138 ast_sockaddr_split_hostport: Splitting 'localhost:4573' into...
[Feb 12 12:55:46] DEBUG[14462][C-00000002]: netsock2.c:192 ast_sockaddr_split_hostport: ...host 'localhost' and port '4573'.
[Feb 12 12:55:46] ERROR[14462][C-00000002]: utils.c:1187 ast_carefulwrite: write() returned error: Connection refused
[Feb 12 12:55:46] WARNING[14462][C-00000002]: res_agi.c:1528 launch_netscript: Connect to 'agi://localhost:4573/url=http%3A%2F%2Fexample.net%3A8081%2Fcgi-bin%2Favxml' failed: Connection refused
{code}
{noformat}
1. You put in the explicit IPv4 address/port that you are listening on?
{noformat}
that works.. okay, so it's some sort of ipv6 resolver issue?
{code}
pbx1> dig a localhost
[...]
;; ANSWER SECTION:
localhost. 0 IN A 127.0.0.1
{code}
hmm.
{code}
pbx1> grep localhost /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
{code}
okay, interesting. my host has some ipv6 on the interfaces-- but it's all default:
{code}
pbx1> ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:00:29:07:00:8e
inet addr:10.9.1.3 Bcast:10.9.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe07:398e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25200579 errors:5 dropped:2 overruns:0 frame:0
TX packets:21607036 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4288193164 (3.9 GiB) TX bytes:3481644916 (3.2 GiB)
Interrupt:18 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:501151 errors:0 dropped:0 overruns:0 frame:0
TX packets:501151 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:60945765 (58.1 MiB) TX bytes:60945765 (58.1 MiB)
{code}
commenting out the ipv6 localhost in /etc/hosts hides the problem.
> Asterisk 11 TCP 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