No RTP traffic, ports enabled, no sound

Hello, I am having issue with both external and internal calls not having any audio, most likely due to me not receiving any RTP traffic (I checked using rtp set debug on ). I am using ufw so naturally I have enabled ports in range 10000-20000/udp as can be seen on this output:

root@mainasteriskenv:~# sudo ufw status 
Status: active

To                         Action      From
--                         ------      ----
5060/tcp                   ALLOW       Anywhere                  
22/tcp                     ALLOW       Anywhere                  
5060                       ALLOW       Anywhere                  
5061                       ALLOW       Anywhere                  
5061/udp                   ALLOW       Anywhere                  
5060/udp                   ALLOW       Anywhere                  
4000:5000/udp              ALLOW       Anywhere                  
4000:5000/tcp              ALLOW       Anywhere                  
10000:20000/udp            ALLOW       Anywhere                  
53/udp                     ALLOW       Anywhere                  
53/tcp                     ALLOW       Anywhere                  
123/udp                    ALLOW       Anywhere                  
5060:5061/udp              ALLOW       Anywhere                  
5060/tcp (v6)              ALLOW       Anywhere (v6)             
22/tcp (v6)                ALLOW       Anywhere (v6)             
5060 (v6)                  ALLOW       Anywhere (v6)             
5061 (v6)                  ALLOW       Anywhere (v6)             
5061/udp (v6)              ALLOW       Anywhere (v6)             
5060/udp (v6)              ALLOW       Anywhere (v6)             
4000:5000/udp (v6)         ALLOW       Anywhere (v6)             
4000:5000/tcp (v6)         ALLOW       Anywhere (v6)             
10000:20000/udp (v6)       ALLOW       Anywhere (v6)             
53/udp (v6)                ALLOW       Anywhere (v6)             
53/tcp (v6)                ALLOW       Anywhere (v6)             
123/udp (v6)               ALLOW       Anywhere (v6)             
5060:5061/udp (v6)         ALLOW       Anywhere (v6)             

root@mainasteriskenv:~#

this range corresponds to rtp.conf

Note that I am using fail2ban as well, though that should have zero impact on anything. But I feel like I should mention it…

Thank you to anyone who contributes here

This is the answer. The you’ll need to trace a call to see where the packets are dropping, some firewall in the chain, likely. It’s just wild guesses otherwise.

You need to both accept the traffic but also forward it to the PBX on your point of ingress router if the PBX is NAT’ed

tried capturing the traffic on UDP 1000-20000 and all SIP ports. It’s apparent that some RTP traffic is being transmitted but no audio streams are available, hence the error.

Anything I could do?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.