NAT issue, one way audio


#1

I know this always comes up, but all the changes and everything haven’t been working out for me. So hoping someone catches something that I have configured wrong.

It only is getting audio one way. Currently the asterisk box is DMZ just to not worry about port forwarding. Also incoming are only one way also.
I do get DTMF tones to pass. I cant hear any talking but if I press a number it does pass through.

Here is a SIP debug of a call:
pastebin.com/rLVHTfFV

sip.conf:

[general]
nat=yes
externip=50.74.218.30
localnet=192.168.1.0/255.255.255.0

[provider]
type=peer
defaultuser=user
secret=pass
host=meta2-o.pins.net
canreinvite=yes
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=gsm
qualify=yes
context=incoming

[chris]
type=friend
defaultuser=chris
secret=PASS
host=dynamic
context=allowed
qualify=yes
nat=yes

#2

nat=yes is unlikely to be serving any useful purpose. It says the other party is natted and you should believe the IP address, not the Contact header.

canreinvite, may, depending on the version of Asterisk you are using, be rejected when parsing sip.conf, but if it is accepted will generally not work across NAT, although other factors including, possibly, rejection by the service provide, may mean it is ineffective and harmless.