izzatothman / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 0 forks source link

Wrong IP for SIP #1021

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I started to get o look on sipdroid.
It looks realy nice!

I detected some Problems in the SIP communication.

Just want to use sipdroid with an local Asterisk Server in a local Net.

My Android has any data connection except WLAN turned off.
I also tryed to turn on flying mode.

But every time sipdroid uses the external IP instad.

Local mobile IP: 10.14.0.104
Ext mobile IP: 77.24.121.xxx
Local Asterisk IP: 10.14.0.66
Sipdroid: 2.4 

<--- SIP read from 10.14.0.104:60164 --->
REGISTER sip:10.14.0.66 SIP/2.0
Via: SIP/2.0/UDP 77.24.121.xxx:60164;rport;branch=z9hG4bK43696
Max-Forwards: 70
To: <sip:bennysipdroid@10.14.0.66>
From: <sip:bennysipdroid@10.14.0.66>;tag=z9hG4bK97281273
Call-ID: 543706522837@77.24.121.xxx
CSeq: 1 REGISTER
Contact: <sip:bennysipdroid@77.24.121.xxx:60164;transport=udp>
Expires: 0
User-Agent: Sipdroid/2.4 beta/LG-P990
Content-Length: 0

<------------->
--- (11 headers 0 lines) ---
Using latest REGISTER request as basis request
Sending to 10.14.0.104 : 60164 (NAT)

<--- Transmitting (no NAT) to 77.24.121.xxx:60164 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 
77.24.121.xxx:60164;branch=z9hG4bK43696;received=10.14.0.104;rport=60164
From: <sip:bennysipdroid@10.14.0.66>;tag=z9hG4bK97281273
To: <sip:bennysipdroid@10.14.0.66>
Call-ID: 543706522837@77.24.121.xxx
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:bennysipdroid@10.14.0.66>
Content-Length: 0

<------------>

<--- Transmitting (no NAT) to 77.24.121.xxx:60164 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 
77.24.121.xxx:60164;branch=z9hG4bK43696;received=10.14.0.104;rport=60164
From: <sip:bennysipdroid@10.14.0.66>;tag=z9hG4bK97281273
To: <sip:bennysipdroid@10.14.0.66>;tag=as30d3e68c
Call-ID: 543706522837@77.24.121.xxx
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="01e9502d"
Content-Length: 0

<------------>
Scheduling destruction of SIP dialog '543706522837@77.24.121.xxx' in 32000 ms 
(Method: REGISTER)

Original issue reported on code.google.com by sipdr...@trash-mail.com on 8 Feb 2012 at 3:20

GoogleCodeExporter commented 8 years ago

Original comment by pmerl...@googlemail.com on 8 Feb 2012 at 8:50