chitranshmathur01 / imsdroid

Automatically exported from code.google.com/p/imsdroid
0 stars 0 forks source link

IMSDroid not working over openvpn #213

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Current ip address detection algorithm is pretty simple and doesn't work if the 
device is in the vpn tunnel, for example a user has established the openvpn 
connection using openvpn/tun.ko combination. The case is, the first interface's 
ip address is being returned, and we fail to even register on a SIP server. 
This is a pretty common error on many android SIP clients, check out the same 
error on csipsimple (http://code.google.com/p/csipsimple/issues/detail?id=390) 
or sipdroid (http://code.google.com/p/sipdroid/issues/detail?id=368#c10)
Attached is the patch fixing the issue for imsdroid, at least now it worked on 
my phone.
I make a map of interface/ip address pair and see if tun0 interface is present 
- it means we are on vpn. Then the vpn address is being returned, otherwise I 
just pick up any present ip address. Rather dumb solution, but at least it 
works well.

Original issue reported on code.google.com by volkov.r...@gmail.com on 12 Apr 2011 at 12:50

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch.
IMSDroid v1.x is now frozen. 
The issue is fixed in IMSDroid v2.x. The source code of v2.x is under 
"branches/2.0".
You MUST uninstall v1.x before trying the v2.x.
Appreciate any feedback.

Original comment by boss...@yahoo.fr on 12 Apr 2011 at 11:02

GoogleCodeExporter commented 9 years ago
For information, the NetworkService is now part of "android-ngn-stack" project.
http://code.google.com/p/imsdroid/source/browse/branches/2.0/android-ngn-stack/s
rc/org/doubango/ngn/services/impl/NgnNetworkService.java#138

Original comment by boss...@yahoo.fr on 12 Apr 2011 at 11:04

GoogleCodeExporter commented 9 years ago
I've checked your latest changes to the code and see that you've implemented 
the patch in 2.x with slight modification for better code clearance. Good!

Original comment by volkov.r...@gmail.com on 13 Apr 2011 at 9:05

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 13 Jul 2011 at 11:55

GoogleCodeExporter commented 9 years ago
IMSDroid 2.0.509 (opengl-es 2.0, libyuv) 
仍然无法与openvpn一起工作,但我用sipdroid可以和openvpn一起工�
��

Original comment by zhangsh...@gmail.com on 22 Nov 2012 at 11:49