Hi, we are using OpenSIPS 1.6.2 as an outbound proxy, we have registered with 
Voipfone to test but the same problem occurs with other Voip providers
Once registered we can't receive incoming calls, if we use STUN on the UAC then 
we are ok. However we would prefer to handle the nat traversal on the proxy. We 
have implemented all the code in Flavio's book.

However the contact header sent from the proxy to the Voipfone server has a 
private ip although it has the nat=yes appended. So something is working please 
see REGISTER trace below.

We think we are missing something but unsure what.

UAC->Proxy

REGISTER sip:voipfone.co.uk SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.2;rport;branch=z9hG4bKeyaZHZ6DrXptj.
Max-Forwards: 70.
From: <sip:[email protected]>;tag=44U5mK3gB9ZvH.
To: <sip:[email protected]>.
Call-ID: 102ce92b-166c-122e-a99f-37fea39c3827.
CSeq: 134125887 REGISTER.
Contact: <sip:[email protected]:5060>.
Expires: 600.
User-Agent: 
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, NOTIFY.
Supported: path.
Authorization: Digest username="30146027", realm="asterisk", nonce="hhvuahjm", 
algorithm=MD5, uri="sip:voipfone.co.uk", response="4d8dbfef$
Content-Length: 0.
.

Proxy->Voipfone

REGISTER sip:voipfone.co.uk SIP/2.0.
Via: SIP/2.0/UDP 178.235.138.190;branch=z9hG4bK23c.505fb9b2.0.
Via: SIP/2.0/UDP 
192.168.0.2;received=88.148.7.122;rport=5060;branch=z9hG4bKeyaZHZ6DrXptj.
Max-Forwards: 69.
From: <sip:[email protected]>;tag=44U5mK3gB9ZvH.
To: <sip:[email protected]>.
Call-ID: 102ce92b-166c-122e-a99f-37fea39c3827.
CSeq: 134125887 REGISTER.
Contact: <sip:[email protected]:5060;nat=yes>.
Expires: 600.
User-Agent: 
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, NOTIFY.
Supported: path.
Authorization: Digest username="30146027", realm="asterisk", nonce="hhvuahjm", 
algorithm=MD5, uri="sip:voipfone.co.uk", response="4d8dbfef$
Content-Length: 0.

Voipfone->Proxy

SIP/2.0 200 OK.
Via: SIP/2.0/UDP 
178.235.138.190;branch=z9hG4bK23c.505fb9b2.0;received=178.235.138.190;rport=5060.
Record-Route: <sip:195.189.173.10:5060;lr=on>.
Via: SIP/2.0/UDP 
192.168.0.2;received=88.148.7.122;rport=5060;branch=z9hG4bKeyaZHZ6DrXptj.
From: <sip:[email protected]>;tag=44U5mK3gB9ZvH.
To: <sip:[email protected]>.
Call-ID: 102ce92b-166c-122e-a99f-37fea39c3827.
CSeq: 134125887 REGISTER.
Contact: <sip:[email protected]:5060;nat=yes>;expires=60.
Expires: 60.
Date: Fri, 30 Jul 2010 15:16:15 GMT.
Min-Expires: 60.
User-Agent: Voipfone.
Content-Length: 0.

 



      

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to