Symmetric NAT problem

Hi all,

I am new to asterisk. I unable to hear the voice over internet bcoz both UAs are behind Symmetric NAT :frowning:, I was hanging with this for past one month. Pls help me to solve this problem? will openSER solve this problem?

Thanks in advance

Regards,
Raguraman P

did u solve ur problem? if so then ok, if not can u tell what u r using sip or iax and did u enable nat on ur asterisk box?

did u solve ur problem? if so then ok, if not can u tell what u r using sip or iax and did u enable nat on ur asterisk box?

did u solve ur problem? if so then ok, if not can u tell what u r using sip or iax and did u enable nat on ur asterisk box?

No, I am using SIP and in sip.conf i gave nat=yes, even i unable to hear voice over internet. But this works fine in local network.

can u post ur sip.conf file ?

This is my sip.conf :
[general]
context=default
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
canreinvite=yes
directrtpsetup=yes
rtcachefriends=yes
rtupdate=yes

[111]
type=friend
username=111
secret=password
nat=yes
host=dynamic
reinvite=no
canreinvite=yes
qualify=yes
dtmfmode=inband
callerid=111
disallow=all
allow=ulaw
context=from-sip
rtpkeepalive=10

[222]
type=friend
username=2222
secret=password
nat=yes
host=dynamic
reinvite=no
canreinvite=yes
qualify=yes
dtmfmode=inband
callerid=222
disallow=all
allow=ulaw
context=from-sip
rtpkeepalive=10

seems everything ok. u r using ulaw, which required 64k bandwidth. try to use g723 or g729 or try gsm. that type of codec need much lower bandwidth then the ulaw. and see

My problem as follws:

Green Line indicates : voice transmitted between my to local machine(I can hear voice)
Red Line indicates: I unable to hear any voice between two machines in the internet.

[Note: Both UA machines are behind NAT. Asterisk Server not behind NAT]

pls help me…

Regards,
Raguraman P

I found the solution.

Thank u.