mallesh
September 2, 2015, 6:12pm
1
Hello,
I am getting error this below line continually,
ERROR[]: utils.c:968 in ast_carefulwrite: write() returned error: Connection refused…
My Asterisk Version:
asterisk -v
Asterisk asterisk-1.4.41-build-ast21307_20110720, Copyright © 1999 - 2010 Digium, Inc. and others.
thanks in Advance.
Regards
Mallesh
david55
September 2, 2015, 8:51pm
2
Support for that version of Asterisk ceased several years ago.
carefulwrite is normally used for responses, so I’m not sure why you would get an error that the TCP connection was refused, but I would look at whatever (e.g. AMI client) was at the other end of the connection.
mallesh
September 3, 2015, 10:30am
3
thanks david for response,
I am using localhost agi connetion,
extensions.conf File:
exten => _[*+X-X].,n,AGI(agi://127.0.0.1:4573/callrouter.agi )
#netstat -nlp | grep 4573
tcp 0 0 :::4573 :::* LISTEN 23726/java
Sep 2 23:53:31 cjjvoipa asterisk[5603]: ERROR[11906]: utils.c:968 in ast_carefulwrite: write() returned error: Connection refused.
How can i stop these errors ?
Thanks in advance .
Regards
Mallesh
09763055756
david55
September 3, 2015, 11:45am
4
Check that your firewall allows access, then check that the process actually honours incoming calls (e.g. try to telnet to it).
I do not believe this problem lies in Asterisk.
mallesh
September 3, 2015, 12:16pm
5
YES.
I tired telnet
[root@HOSTNAME ~]# telnet 127.0.0.1 4573
Trying 127.0.0.1…
Connected to 127.0.0.1.
Escape character is ‘^]’.
here is my firewall
[root@HOSTNAME ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-ASTERISK all – anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain fail2ban-ASTERISK (1 references)
target prot opt source destination
RETURN all – anywhere anywhere
[root@HOSTNAME ~]#
david55
September 3, 2015, 12:31pm
6
Could it be that the you are not forking a worker thread and don’t have a long enough listen queue?