-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've been trying to figure out this problem for the last couple of days, but to no avail. My last resort being you guys.
For my setup I'm using double NAT, that is, my OpenPBX server is running on my local network on a reserved ip 192.168.20.2. At my home router I have forwarded 5060/udp and the port range defined by rtp.conf (10000-19999/udp). All good. In sip.conf I've set nat=yes and canreinvite=no globally, so I will assume every peer is behind nat, and I want all rtp traffic to go through my server. In addition to that I've got localnet=192.168.20.0/255.255.255.0 and externhost set to my public ip. At the remote end I've got a NAT-ed setup with local ips in the range of 192.168.100.0/24. At the peer I'm using X-lite to test my setup. I can dial just fine, so the sip handshaking works. The problems comes when trying to send audio. I can receive audio from the remote end, but the remote end doesn't receive anything. When debugging this by using rtp debug, I got the following interesting output: Got RTP packet from <public address of remote peer>:45722 (type 8, seq 5620, ts 512440, len 160) Sent RTP packet to 192.168.20.4:10000 (type 8, seq 37874, ts 512440, len 160) Got RTP packet from 192.168.20.4:10000 (type 8, seq 3118, ts 587920, len 160) Sent RTP packet to 192.168.100.11:45722 (type 8, seq 3900, ts 587920, len 160) The fourth line being the interesting one and the one breaking everything. My server stupidly tries to send RTP data to 192.168.100.11 (which is the local ip for the remote peer) instead of using the public ip of the peer. Why does it do that? And what can I do to resolve this issue once and for all? Great thanks in advance, Marius -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFreniWJlVZ0GegywRAs+YAJwJcfQpUvLodeb9KzICqOB269z84gCff+MJ AQ3scuxSAZJ6U8BoJgCj/6M= =kyMp -----END PGP SIGNATURE----- _______________________________________________ Openpbx-users mailing list [email protected] http://lists.openpbx.org/mailman/listinfo/openpbx-users
