Asterisk supports more protocols than SIP and IAX2, but these ports are typical voice protocol ports and can be redirected from your router (firewall) to the Asterisk server (due to NAT ):
- UDP: 5060 SIP (sip.conf), newer TCP version support: 5060
- UDP: 10000-20000 RTP (rtp.conf) for media stream, higher Portrange
- UDP: 5036 IAX2
You can also check the asterisk (module) ports with:
lsof -n -i -P
You can find additional ports based on loaded modules (modules.conf) and configuration, for example TCP: 5038 (manager.conf).
List your modules with
asterisk -rx 'module show'
or for older versions: asterisk -rx 'show modules' .
Modules can be automatically loaded and disabled using noload => modulename.so in modules.conf.
source share