PAP2 behind NAT: missing incoming audio and ringing

I know there are a lot of NAT problems out there, but I’ve not seen a solution for this one:

PAP2 -> NAT router -> Internet -> Asterisk server

I get 2-way audio for outgoing calls, but no audio at all for incoming. Also I don’t hear the remote phone ringing for outgoing calls, I just get audio when the person picks up.

The FreePBX/PAP2 configuration worked perfectly when I was running SipAtH (SIP/RTP proxy) on the firewall, but that’s not available anymore so I’m back to port forwarding. I’ve turned on all the NAT options on the PAP2, and told it to use a STUN server. I’ve set it up as the DMZ on the router, so all ports forward through to it.

Extension config:

[1000]
type=friend
secret=XXXX
qualify=yes
port=5060
nat=yes
host=dynamic
dtmfmode=rfc2833
disallow=all
canreinvite=yes
allow=g729
allow=g723

Does anyone have any ideas? I’d really appreciate some help.

http://www.freepbx.org/support/documentation/howtos/howto-setup-a-remote-sip-extension