I’m running Asterisk 13.14.1 for Raspbian Stretch
netstat -altunp | grep asterisk
udp 0 0 0.0.0.0:41808 0.0.0.0:* 412/asterisk
udp 0 0 0.0.0.0:4569 0.0.0.0:* 412/asterisk
udp6 0 0 :::44441 :::* 412/asterisk
It’s a VERY minimal configuration for security reasons with only IAX2 protocol enabled.
The other two “mistery” ports are different everytime Asterisk boots.
Does anyone knows what those are for and how to close them?
Thank you very much,
See the previous thread, on the same subject, within the last couple of months.
I believe the way to close them is to disable chan_pjsip.
Thank you for your reply.
noload => chan_pjsip.so
in modules.conf and rebooted but the ports are still opened.
Would you please provide me the link to the older posts you mentioned?
I guess so, although doing so was almost as much work as doing so for yourself, as the subject is fairly obvious and I had to trawl the forum history to find it:
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…
Marked it as [solved] thanks to David551.
Relevant Wiki page:
(Jump to the “Disabling res_pjsip and chan_pjsip” section)