[asterisk-bugs] [JIRA] (ASTERISK-26357) AMI binds to random port every Asterisk restart on FreeBSD
Roman Petrov (JIRA)
noreply at issues.asterisk.org
Sun Sep 11 11:29:01 CDT 2016
Roman Petrov created ASTERISK-26357:
---------------------------------------
Summary: AMI binds to random port every Asterisk restart on FreeBSD
Key: ASTERISK-26357
URL: https://issues.asterisk.org/jira/browse/ASTERISK-26357
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: . I did not set the category correctly.
Affects Versions: 13.11.2, 13.10.0
Environment: OS: FreeBSD 11.0-STABLE amd64
Asterisk 13.11.2
Reporter: Roman Petrov
I'm setup simpliest asterisk system, and try to work with AMI.
That's my manager.conf:
----------------------------------------
[general]
enabled = yes
webenabled= no
debug = no
port = 5038
bindaddr= 127.0.0.1
[admin]
secret = secret
deny = 0.0.0.0/0.0.0.0
permit = 127.0.0.1/255.255.255.0
read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
write = system,call,agent,user,config,command,reporting,originate,message
-------------------------------------------------
When I start asterisk, and see: netstat -an | grep LISTEN
there is not 127.0.0.1:5038 socket.
But it has other record:
tcp4 0 0 127.0.0.1.54792 *.* LISTEN
And when I try to check that opened port with telnet, it is a AMI port:
telnet 127.0.0.1 54792
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/2.8.0
I can authorize on telnet with credentials which I setup in manager.conf.
When I see in asterisk console: manager show settings it gives me:
----------------------------------------
Global Settings:
----------------
Manager (AMI): Yes
Web Manager (AMI/HTTP): No
TCP Bindaddress: 127.0.0.1:0
HTTP Timeout (minutes): 60
TLS Enable: No
TLS Bindaddress: Disabled
TLS Certfile: asterisk.pem
TLS Privatekey:
TLS Cipher:
Allow multiple login: Yes
Display connects: Yes
Timestamp events: No
Channel vars:
Debug: Yes
----------------------------------------
And other interesting info: When I restart asterisk, that port changes to other and that happens every asterisk restart.
Similar appears with 2 versions: 13.10.0 and 13.11.2
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list