Unable to connect SIP clients to asterisk server
Hi,
I built asterisk 17 on ubuntu 20.04 and everything went good but when I try to connect SIP clients he connection is not possible, is there any aditional configuration I have to do in a linode server? (I have no issues locally in my Lan network with the same set up)
This is the configuration:
pjsip.conf File
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
UFW status
Status: active
To Action From
-- ------ ----
22/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
5060,5061/tcp ALLOW Anywhere
22/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
5060,5061/tcp (v6) ALLOW Anywhere (v6)
2 Replies
protocol=udp
and
5060,5061/tcp ALLOW Anywhere
You opened TCP 5060.
Open it for UDP.
sudo ufw allow 5060/udp
If you need a range for something like rtp
sudo ufw allow 10000:20000/udp
Quick edit to include a link to the ufw guide which has other examples.
You are right! sorry my bad, now it is working I was thinking that was related with NAT configuration. Thank you so much for your help.