[ previous ] [ next ] [ threads ]
 To :  yate@v...
 From :  Paul Chitescu <paulc@v...>
 Subject :  Re: [yate] Problem with NAT
 Date :  Wed, 9 Jun 2010 16:27:07 +0300
Please look at the 200 OK result (sent by Yate) of the successful REGISTER request.

Please check the configs and logs.

Look how a registration from behind NAT should look like:

 Registration NAT detected: private '192.168.1.50:0' public 'a.b.c.d:5060'
 Registered user 'username' expires in 3600 s (NAT)
 Sending code 200 0x8139478 to a.b.c.d:5060
------
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bKb3bg6vg3fr74ut04nb6dn5b;rport=5060;received=a.b.c.d
From: ;tag=2pprlj3fsdhc7ueq0bit
To: ;tag=960792127
Call-ID: haeWPfr4oIdyX0bBTnAF2O7iD4Yg_4
CSeq: 589 REGISTER
Expires: 3600
Contact: ;expires=3600
P-NAT-Refresh: 25
X-Real-Contact: sip:username@a...:5060;transport=UDP
Server: YATE/3.0.0
Allow: ACK, INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, PRACK, INFO, SUBSCRIBE, MESSAGE, NOTIFY, PUBLISH
Content-Length: 0


Paul


On Wednesday 09 June 2010 03:56:02 pm Alfred Stainer wrote:
> Hi,
> yes, both Phones register with Contact containing the private IP.
> Is this wrong?
> This is the tcpdump:
> 
> REGISTER sip:public-ip-Yate SIP/2.0
> Via: SIP/2.0/UDP private-ip-called:5060;branch=z9hG4bKfdbb95c017ca0f57
> From: "...removed..." ;tag=b49dfafec055b506
> To: 
> Contact: 
> Supported: path
> Call-ID: 1f2b34a546cac811@private-ip-Yate
> CSeq: 10001 REGISTER
> Expires: 3600
> User-Agent: Grandstream BT201 1.2.3.5
> Max-Forwards: 70
> Allow:
> INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK
> Content-Length: 0
> 
> 
> Thanks,
> 
> Alfred
> 
> On Wed, Jun 9, 2010 at 1:45 PM, Maxim Telegin  wrote:
> 
> > I may be wrong, but It seems that Phone2 registred with it's private IP.
> > What Phone2 sends in Contact SIP header in REGISTER message?
> >
> > 2010/6/9 Alfred Stainer 
> >
> >> Hi,
> >> I have a strange problem to make a call between two sip phones.
> >>
> >> The scenario is:
> >> 1. Yate 3 svn version on CentOs with a public IP
> >> 2. Phone1 behind a NAT (NAT-1), caller
> >> 3. Phone2 behind a NAT (NAT-2), called
> >>
> >> Alfred