Asterisk VPN

Hi,
I have a server setup in VPN with multiple localnets and two local extensions:

externip=X.X.X.X
nat=yes
localnet=10.X.0.0/255.255.255.0
localnet=155.X.X.0/255.255.255.0
localnet=10.X.X.0/255.255.255.0

[19]
username=19
secret=19
type=friend
host=dynamic
port=5060
nat=never
dtmfmode=rfc2833
insecure=port,invite
qualify=yes
canreinvite=nonat
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=g729
context=office

[2000]
username=2000
secret=2000
type=friend
host=dynamic
port=5060
nat=no
dtmfmode=rfc2833
insecure=port,invite
qualify=yes
canreinvite=nonat
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=g729
context=office

local calls between extensions are fine, but when we call PSTN we get one-way audio. Caller can hear callee but not other way round.
I’d appreciate any help in figuring out this problem.

In your topology, where’s the “PSTN” – is it a VOIP provider (sip)? If so, ensure there’s a canreinvite=no on the sip-pstn pathway.

Is the PSTN pathway on the other side of your firewall; if so, it’s most likely you’re NOT opening the needed ports IN BOTH – in- and out-bound – directions.

/S