asterisk it is listening on port 5038, so I assume AMI service is running but just in case check your general settings for manager.conf
[general]
enabled = yes
also try to test the AMI connection directly on the Asterisk machine using loopback address, so in that way you will know if is network connection issue
Hi
i use command in my asterisk telnet ip 5038
after i do Action: login
Username: admin ( i creat these user
Secret: 123456789
enter two times
but all time appears these information Response: Error
Message: Authentication failed
in you terminal use command telnet 127.0.0.1 5038 enter
action: login
username: admin
secret:123456789
2x enter for login
afther
action: logoff 2x enter for exit
My issue is that I am able to connect successfully from inside asterisk machine, but when I tried connecting from outside the asterisk machine it doesnât connect and I noticed the port 5038 is closed to outside connection but opened for inside connection
This is my configuration
;
; AMI - Asterisk Manager interface
;
; IssabelPBX needs this to be enabled. Note that if you enable it on a different IP, you need
; to assure that this canât be reached from un-authorized hosts with the ACL settings (permit/deny).
; Also, remember to configure non-default port or IP-addresses in amportal.conf.
;
; The AMI connection is used both by the portal and the operatorâs panel in IssabelPBX.
;
; IssabelPBX assumes an AMI connection to localhost:5038 by default.
;
[general]
enabled = yes
;webenabled = yes
bindaddr = 0.0.0.0
port = 5039 #include manager_general_additional.conf
That clearly shows that Asterisk is listening on port 5039 for connections
from anyway (âinsideâ, âoutsideâ, whatever you want to call them).
I have also tried this
iptables -A INPUT -p tcp --dport 5039 -j ACCEPT
What do you get from âiptables -L INPUT | grep 5039â?
telnet localhost 5039 or telnet <asterisk_system_ip> 5039
works inside the asterisk system
but telnet <asterisk_system_ip> 5039 does not work from outside the
asterisk system
Give us a better idea of what you mean by âoutside the Asterisk systemâ.
Are you trying to connect from a machine on the same local network as
Asterisk, with no router or firewall in between, or are you trying to connect
from further away?
Antony.
â
The Linux Operating System kernel was first released on this day in 1991. https://www.kernel.org/
What do you get from âiptables -L INPUT | grep 5039â?
to allow connection to the port, based on what I found online and AI
telnet localhost 5039 or telnet <asterisk_system_ip> 5039
works inside the asterisk system
but telnet <asterisk_system_ip> 5039 does not work from outside the
asterisk system
Okay, so I want to connect to asterisk system with ip address of (102.216.110.27) from my laptop (MACBOOK) using terminal command
tjdibbs@Timis-Macbook luli_chat_backend % telnet 102.216.110.27 5039
Trying 102.216.110.27...
telnet: connect to address 102.216.110.27: Connection refused
telnet: Unable to connect to remote host
When I tried inside the asterisk system
[root@issabel ~]# telnet 102.216.110.27 5039
Trying 102.216.110.27...
Connected to 102.216.180.27.
Escape character is '^]'.
Asterisk Call Manager/1.3
on localhost inside asterisk system
[root@issabel ~]# telnet localhost 5039
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/1.3
Are you trying to connect from a machine on the same local network as
Asterisk, with no router or firewall in between, or are you trying to connect
from further away?
They are not the same network I guess, and I am not sure if there is a firewall betweenâŚ
You were being asked for the console output, to make sure that the accept rule had actually been added. Most postings here mentioning AI have, at least, one hallucination.