The server is Fedora release 15 (Lovelock), Asterisk 18.104.22.168, installed trough “yum install asterisk” from Fedora rep.
The net is as follows:
Asterisk external IP: 22.214.171.124
Asterisk internal IP: 192.168.0.77
Asterisk SIP port: 45789
Asterisk RTP ports: 10000 to 10036
Open ports in the Router: 45789 and from 10000 to 10036
Client external IP: 126.96.36.199
Client internal IP: 192.168.0.102
Client rtp port: 3333
matchexternaddrlocally = no
externaddr = 188.8.131.52:45789
nat = force_rport
media_address = 184.108.40.206
When making calls all controls are OK,
But the rtp packets from the server to the client are transmitted not to external IP of the client, but to the internal IP. This is visible when at CLI I have issued command “rtp set debug on”:
Sent RTP packet to 192.168.0.102:3333 (type 00, seq 063049, ts 009280, len 000160)
At one of every 50 cases the server transmits rtp packets to the right address of the client (external) and the voice can be heard, but at other cases there is no voice.
When there is a voice, the debug shows following:
Sent RTP packet to 220.127.116.11:3333 (type 00, seq 063049, ts 009280, len 000160)
Please, if I have mistake on configuration of the Asterisk or the net, help me to resolve it.
Is it possible this to be a bug of the version?
It is very strange, that from time to time rtp packets are transmitted to the right destination…