[OpenSIPStack] STUN support bug?
Brought to you by:
joegenbaclor
From: H.Kropf <mai...@gl...> - 2007-07-24 08:35:14
|
Hello I try to use OSS SoftPhone client (OSS 1.1.7 CVS) with server OpenSER and with NAT of type NAT::SIPSTUNClient::ConeNat Calling of function SetSTUNServer connect succefully to my STUN-server. SoftPhone receive true NAT IP-address and NAT port. But after, when i call SoftPhone::SendRegister() then OpenSER register client like "NAT, without STUN" Exemples: (correct and wrong) =============================== REGISTER requests via NAT using STUN: (aliases: 111.111.111.111 - instead of local SIP-client IP, 222.222.222.222 - instead of NAT IP, 333.333.333.333 - instead of SIP-server IP) CORRECT (hardware Zyxel SIP-client) ************************************ REGISTER sip:mysrv.com:5060 SIP/2.0 Via: SIP/2.0/UDP 222.222.222.222:30796; branch=z9hG4bK332ccb85f16c5cbd Max-Forwards: 69 To: <sip:10...@my...> From: <sip:10...@my...>; tag=xIjMzUDMxID\015\012 Call-ID: 1464D22DC9741212@222.222.222.222 CSeq: 2 REGISTER Contact: <sip:100010@222.222.222.222:30796> Authorization: Digest username="zzz", realm="mysrv.com", nonce="46a5adc49a3608ebdb26cc2664302ba9a7cc47ca", uri="sip:mysrv.com:5060", response="c5b3f9967cb1ce70e847ce446b7705ec", cnonce="0a4f113b", qop="auth", nc=0000001 Content-Length: 0 Expires: 3600 REGISTER sip:mysrv.com:5060 SIP/2.0 Via: SIP/2.0/UDP 222.222.222.222:30796;branch=z9hG4bK44e19947d5df8012 Max-Forwards: 69 To: <sip:10...@my...> From: <sip:10...@my...>;tag=xIjMzUDMxID Call-ID: 1464D22DC9741212@222.222.222.222 CSeq: 1 REGISTER Contact: <sip:100010@222.222.222.222:30796> Content-Length: 0 Expires: 3600 *********************** WRONG (OSS SIP-Client) *********************** REGISTER sip:mysrv.com SIP/2.0 From: 100008 <sip:10...@my...>;tag=396528833cf9181096d6882afa23793b To: 100008 <sip:10...@ip...> Via: SIP/2.0/UDP 222.222.222.222:31007;iid=3501;branch=z9hG4bK396528833cf9181096d7882afa23793b;uas-addr=333.333.333.333;rport CSeq: 2 REGISTER Call-ID: bcdbfa82-3cf9-1810-8d66-882afa23793b Contact: "100008" <sip:100008@222.222.222.222:5060;transport=udp> // ????????????????? 5060????????????????? User-Agent: OpenSIPStack-1.1.7-1 Expires: 3600 Max-Forwards: 9 Authorization: Digest username="olden1", realm="mysrv.com", nonce="46a5b1b01f9b24a48429cf395d82288132141766", uri="sip:mysrv.com", response="d48c234555217113d91ec016c92bd612", algorithm=MD5 Allow: INVITE, BYE, ACK, REFER, MESSAGE, INFO, NOTIFY, OPTIONS Content-Length: 0 REGISTER sip:mysrv.com SIP/2.0 From: 100008 <sip:10...@my...>;tag=bcdbfa823cf9181096d5882afa23793b To: 100008 <sip:10...@my...> Via: SIP/2.0/UDP 222.222.222.222:31007;iid=3501;branch=z9hG4bKcf4c28833cf9181096d6882afa23793b;uas-addr=333.333.333.333;rport CSeq: 2 REGISTER Call-ID: bcdbfa82-3cf9-1810-8d66-882afa23793b Contact: * User-Agent: OpenSIPStack-1.1.7-1 Expires: 0 Max-Forwards: 9 Allow: INVITE, BYE, ACK, REFER, MESSAGE, INFO, NOTIFY, OPTIONS Content-Length: 0 ========================================================================= Why Contact == 100008@222.222.222.222:5060 instead of 100008@222.222.222.222:31007 ???? and why Contact == * ? |