Asterisk 18 - no RTP

I’ve just upgraded from Asterisk 16 to Aterisk 18. I can’t figure out why I have no RTP.

So all SIP signalling works fine. However for the inbound RTP, asterisk sends a request with the RTP port.

I have soft client on
asterisk lan side = and
external here is = x.x.x.x

100	1.154821	SIP/SDP	1030	Request: INVITE sip:0800000000@;transport=udp, in-dialog | 

here is Asterisk saying where to send RTP:

m=audio 62413 RTP/AVP 8 101

But then Asterisk isn’t listening on that port

asterisk  485977        asterisk   31u  IPv4 2700959      0t0  TCP> (ESTABLISHED)
asterisk  485977        asterisk   32u  IPv6 2701781      0t0  UDP *:11740
asterisk  485977        asterisk   33u  IPv4 2702751      0t0  UDP x.x.x.x:10285
asterisk  485977        asterisk   38u  IPv6 2701784      0t0  UDP *:10284
asterisk  485977        asterisk   39u  IPv4 2699970      0t0  UDP

Then my server responds with port unreachable

Why isn’t asterisk listening on RTP port?

Here is pjsip config

type = endpoint
context = from-internal
disallow = all
allow = alaw
aors = 333
auth = auth_333

protocol=udp ;udp,tcp,tls,ws,wss

You’d need to provide an actual full SIP trace, along with the output of “rtp set debug on”.

Thanks, I figured it out, for some reason it was trying to do direct media. I thought for trunks, direct_media was defaulted to no. Just added direct_media=no to the endpoints and it all started working

There is no inherent concept of “trunks”. Defaults apply equally to all.

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