Hi!
Why asterisk listen on all interfaces on random udp ports? What module should i disable or configure?
-
What i need.
I want to use a few voip phones to call my parents. Planned to setup asterisk on cheapest VPS with openvpn. No NAT (on phones), no DBs, no PSTN, etc. Just SIP (codec conversion when needed) with callerid. Simplest config with minimum memory usage. -
What i have.
Asterisk 15.2.2 in archlinux guest VM. One Yealink voip-phone and one softphone (linphone) in local network, of course no NAT. Bare minimum config (see below). -
Problem.
For some unknown reason after every restart asterisk binds to all available interfaces (both ipv4 and ipv6) and listen on random ports (somewhere 30000-60000).
ss -ulpn
State Recv-Q Send-Q Local Address:Port Peer Address:Port
UNCONN 0 0 192.168.1.100:5060 0.0.0.0:* users:(("asterisk",pid=929,fd=8))
UNCONN 0 0 0.0.0.0:58324 0.0.0.0:* users:(("asterisk",pid=929,fd=6))
UNCONN 0 0 [::]:47208 [::]:* users:(("asterisk",pid=929,fd=7))
- Config. Only these files in /etc/asterisk:
extensions.conf
[general]
static=yes
writeprotect=no
[demo]
exten => 600,1,Playback(demo-echotest)
exten => 600,n,Echo
exten => 600,n,Playback(demo-echodone)
exten => 600,n,Goto(s,1)
[home]
exten => 301,1,Dial(SIP/test1)
exten => 302,1,Dial(SIP/test2)
include => demo
modules.conf
[modules]
autoload=yes
musiconhold.conf
[general]
[default]
mode=files
directory=moh
sip.conf
[general]
udpbindaddr=192.168.1.100:5060
mohinterpret=default
mohsuggest=default
[testuser](!)
type=friend
context=home
host=dynamic
[test1](testuser)
secret=pass1
callerid="test user 1" <301>
disallow=all
allow=g722,g926,ilbc,alaw
[test2](testuser)
secret=pass2
callerid="test user 2" <302>
disallow=all
allow=g722,g926,ilbc,alaw
- I’m not a programmer. Simple linux home user.
Spend so many hours on wiki and google.
Configured logger.conf, "grep $SUSPICIOUSPORT /var/log/asterisk/debugfile.txt, nothing. Played with sip.conf. Tried to disable modules autoload and load only important ones (cannot even make calls despite the efforts made to guess necessary modules, ha-ha). Tried to send random data to that opened ports (only get errors in asterisk console when sending to 5060 port). Out of ideas.