[ previous ] [ next ] [ threads ]
 To :  Maxim Telegin <maximtel@g...>
 From :  Alfred Stainer <alfred.stainer@g...>
 Subject :  Re: [yate] Problem with NAT
 Date :  Wed, 9 Jun 2010 14:56:02 +0200
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
>>
>
>



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..." <sip:called@public-ip-Yate>;tag=b49dfafec055b506
To: <sip:called@public-ip-Yate>
Contact: <sip:called@private-ip-called:5060;transport=udp>
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 <maximtel@g...> 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 <alfred.stainer@g...>
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