totemkevin / imsdroid

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

IPv6: Failed to start the stack #411

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Version: imsdroid-2.532.758.apk
Device: Galaxy Nexus
Android: 4.1.2

When using IPv6 with the above version it fails with the following log. I have 
replaced the different host parts of the addresses with XXXX.

D/org.doubango.ngn.services.impl.NgnNetworkService(12871): ::1%1
D/org.doubango.ngn.services.impl.NgnNetworkService(12871): 127.0.0.1
D/org.doubango.ngn.services.impl.NgnNetworkService(12871): fe80::XXXX%p2p0
D/org.doubango.ngn.services.impl.NgnNetworkService(12871): 2002:XXXX%10
D/org.doubango.ngn.services.impl.NgnNetworkService(12871): 2001:470:XXXX%10
D/org.doubango.ngn.services.impl.NgnNetworkService(12871): fe80::XXXX%wlan0
D/org.doubango.ngn.services.impl.NgnNetworkService(12871): 2002:XXXX%10
D/org.doubango.ngn.services.impl.NgnNetworkService(12871): 2001:XXXX%10
D/org.doubango.ngn.services.impl.NgnNetworkService(12871): 192.168.1.131
D/org.doubango.ngn.services.impl.NgnSipService(12871): Local 
IP='2001:470:XXXX%10'
E/tinyWRAP(12871): ***ERROR: function: "tnet_getaddrinfo()" 
E/tinyWRAP(12871): file: "src/tnet_utils.c" 
E/tinyWRAP(12871): line: "776" 
E/tinyWRAP(12871): MSG: getaddrinfo(family=2, node=2001:470:XXXX%10 and 
service=0) failed: [No address associated with hostname]
E/tinyWRAP(12871): ***ERROR: function: "tnet_socket_ctor()" 
E/tinyWRAP(12871): file: "src/tnet_socket.c" 
E/tinyWRAP(12871): line: "213" 
E/tinyWRAP(12871): MSG: tnet_getaddrinfo(family=2, hostname=2001:470:XXXX%10 
and port=0) failed: [No address associated with hostname]
E/tinyWRAP(12871): ***ERROR: function: "tnet_socket_ctor()" 
E/tinyWRAP(12871): file: "src/tnet_socket.c" 
E/tinyWRAP(12871): line: "213" 
E/tinyWRAP(12871): MSG: (SYSTEM)NETWORK ERROR ==>Success
E/tinyWRAP(12871): ***ERROR: function: "tnet_transport_create()" 
E/tinyWRAP(12871): file: "src/tnet_transport.c" 
E/tinyWRAP(12871): line: "68" 
E/tinyWRAP(12871): MSG: Failed to create master socket
E/tinyWRAP(12871): ***ERROR: function: "tsip_stack_start()" 
E/tinyWRAP(12871): file: "src/tsip.c" 
E/tinyWRAP(12871): line: "701" 
E/tinyWRAP(12871): MSG: Failed to add new transport
E/org.doubango.ngn.services.impl.NgnSipService(12871): Failed to start the 
stack. 
E/org.doubango.ngn.services.impl.NgnSipService(12871): Additional info:
E/org.doubango.ngn.services.impl.NgnSipService(12871): Failed to add new 
transport
E/org.doubango.ngn.services.impl.NgnSipService(12871): Failed to start the SIP 
stack

Original issue reported on code.google.com by mikma...@gmail.com on 13 Nov 2012 at 3:16

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 13 Nov 2012 at 8:36

GoogleCodeExporter commented 9 years ago
Same problem when retesting with the following:

Version: imsdroid-2.532.758.apk
Device: Asus Nexus 7
Android: 4.2

Original comment by mikma...@gmail.com on 27 Nov 2012 at 10:14

GoogleCodeExporter commented 9 years ago
IPv6 works with imsdroid-2.0.509 (on Android 4.0.3), but does not work with 
imsdroid-2.548.870.

It seems to be an issue with newer releases of doubango engine. Refer to Boghe 
issue 161 (https://code.google.com/p/boghe/issues/detail?id=161).

Original comment by ste.zhuj...@gmail.com on 1 Nov 2013 at 2:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
same issue has been observed on android 4.2.2 i am building my custom 
application and while starting the stack it gives the same error as mentioned 
above, can you kindly mention whether ipv6 is supported by doubango.

Regards,
Naman.

Original comment by namanje...@gmail.com on 2 Jun 2014 at 2:30

GoogleCodeExporter commented 9 years ago
IPv6 - May 8th 2015 latest source code build
svn checkout http://imsdroid.googlecode.com/svn/branches/2.0/
Android Version 4.4.4. SG3 Cyanogenmod

Two IPv6 issues

1. Same as listed here (above) 
2. NgnNetworkService.java line number 254 - IPv6 Google URL wrong which throws 
an uncaught exception and Force Closes the application.  Added catch ( 
Exception e ) to try block with the additional fix below.
Currently: java.net.Socket socket = new java.net.Socket(ipv6 ? 
"ipv6.google.com/" : "google.com", 80);
Change: java.net.Socket socket = new java.net.Socket(ipv6 ? 
"ipv6test.google.com/" : "google.com", 80);

Cheers,

Russell

Original comment by twisteda...@gmail.com on 8 May 2015 at 3:39