maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Sip client behind NAT connect to Asterisk (https://talk.maemo.org/showthread.php?t=75962)

sfrique 2011-08-22 01:52

Sip client behind NAT connect to Asterisk
 
Helo, i am trying to connect my N900 to my asterisk server, but i am having many problems related to NAT i guess.

I read a lot os post, but i did not find anything i could realy use. Sorry if i did not see what i needed!

So, lets go to the problem.

I have my asterisk server in with a public address.
My sip.conf looks like.
[100]
callerid = N900
type=friend
secret=*******
;net=yes ( i already use both, with or without nat )
qualify=5000
port=5060
host=dynamic
dtmfmode=rfc2833
allow=gsm,alaw,ulaw,iLBC
context=sip-prod
callgroup = 1
pickupgroup = 1

On my N900 i have configured like this, in advanced i have marked
Discover public address
Auto detect STUN

I already have tried many confs, but none of them worked when i am behind a nat.

My question is:
I have a laptop and connect to the same network as my N900, and with ekiga i can register to my asterisk and make the call with sound. In my n900 i have no sound when i am in my home network. When i conect over 3G i the sip phone work as expect. Only when i am on a nat network that does not work.

Does any one have any help??
Thanks

sfrique 2011-09-11 06:20

Re: Sip client behind NAT connect to Asterisk
 
it seens it was an asterisk "problem"
asterisk-1.8 have the ability to use symetric ports...
in sip.cof
nat=comedia

and you good to go!
well.. it worked for me!

rajil.s 2011-09-11 07:14

Re: Sip client behind NAT connect to Asterisk
 
Thanks for posting this. Might help somebody. Hopefully you have better experience than some of us.


All times are GMT. The time now is 20:06.

vBulletin® Version 3.8.8