Re: [OpenSIPStack] STUN support bug?
Brought to you by:
joegenbaclor
From: tomach <to...@dg...> - 2007-07-25 10:11:44
|
Sorry but I do not know whats wrong. I tried to use STUN server. So in OSSPhone I set everthing as it should be: Registrar, OutboundProxy and STUN server then I tried to register and I got no respond from my registrar server. Using ethereal I sniffed my eth and I noticed that: 1. Ossphone sends request to stun. 2. Stun answers with this kind of answer. (public address of ossphone is 192.168.2.14 and local is 192.168.44.46): Simple Traversal of UDP Through NAT Message Type: Binding Response (0x0101) Message Length: 0x0044 Message Transaction ID: 0163E14BE5515702A2407C07C23C6073 Attributes Attribute: MAPPED-ADDRESS Attribute Type: MAPPED-ADDRESS (0x0001) Attribute Length: 8 Protocol Family: IPv4 (0x0001) Port: 50666 IP: 192.168.44.46 (192.168.44.46) Attribute: SOURCE-ADDRESS Attribute Type: SOURCE-ADDRESS (0x0004) Attribute Length: 8 Protocol Family: IPv4 (0x0001) Port: 3478 IP: 192.168.44.254 (192.168.44.254) Attribute: CHANGED-ADDRESS Attribute Type: CHANGED-ADDRESS (0x0005) Attribute Length: 8 Protocol Family: IPv4 (0x0001) Port: 3479 IP: 192.168.2.14 (192.168.2.14) Attribute: XOR_MAPPED_ADDRESS Attribute Type: XOR_MAPPED_ADDRESS (0x8020) Attribute Length: 8 Protocol Family: IPv4 (0x0001) Port (XOR-d): 50313 Port: 50666 IP (XOR-d): 193.203.205.101 (193.203.205.101) IP: 192.168.44.46 (192.168.44.46) Attribute: SERVER Attribute Type: SERVER (0x8022) Attribute Length: 16 Server version: Vovida.org 0.96 3. Then ossphone sends register message to sipserver. Where Contact and Via headers have incorrect ossphone address. Should be public 192.168.2.14 and there is local 192.168.44.46. 4. Sip server does not response because in Contact and Via headers is wrong ossphone address. Do you have the same behaviour? why Contact field and via arent changed to public in register message? |