No audio and video

Sometimes there is no audio and video. I am using pjsip.

Far too little information to be useful. Lack of media is often the result of firewall or NAT misconfiguration.

Asterisk server is behind the NAT. My pjsip configuration file:
pjsip.txt (2.4 KB)

You are missing signalling and media addresses, and local networks.

Asterisk is a client, when making outgoing calls.

Attempt 3 to send STUN request to ‘x.x.x.x’ timed out. How to resolve this errror. In the firewall port 3478 is opened.

I’ve given

local_net=10.0.0.0/255.0.0.0
external_media_address=
external_signaling_address=

still no audio and video.

Do we need a TURN server when using asterisk?