SIP (RFC 3261) uses port 5060 over UDP and TCP for call signalling, 5061 for SIP over TLS (SIPS). PBXs like Asterisk or FreeSWITCH and VoIP phones register and set up calls through it. The audio itself (RTP) runs on separate, dynamically chosen UDP ports – on Asterisk a configurable range in rtp.conf.
Do not leave 5060 open to the whole internet: SIP ports are scanned around the clock for weak extension passwords and open relays. Allow only your provider's IPs and known clients, prefer TLS on 5061, use strong passwords and ban repeated failures with fail2ban.
Typical: the phone rings but there is no audio, or only one way – the RTP ports are blocked, or a router's "SIP ALG" rewrites packets incorrectly (try turning it off).
Check
nmap -sU -p 5060 pbx.example.com