[asterisk-bugs] [JIRA] (ASTERISK-26357) core: AMI binds to random port every Asterisk restart on FreeBSD
Roman Petrov (JIRA)
noreply at issues.asterisk.org
Wed Sep 14 02:40:01 CDT 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roman Petrov updated ASTERISK-26357:
------------------------------------
Affects Version/s: 11.23.1
> core: 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: Core/ManagerInterface
> Affects Versions: 11.23.1, 13.10.0, 13.11.2
> Environment: OS: FreeBSD 11.0-STABLE amd64
> Asterisk 13.11.2
> --------------------------------------------------
> Also repeated on:
> Jailed FreeBSD 10.3-PRERELEASE #0 r295211 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
> Repeat that on another PC, create new Jail on FreeBSD 10.3-PRERELEASE #0 r295211, install Asterisk 13 and edit only manager.conf to enabled=yes
> Problem exists.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list