nestle1998 / idoubs

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

Connect via TLS transport #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I build with latest version.
2. I config for idoubs run via TLS transport.

What is the expected output? What do you see instead?
idoubs can not connect.

What version of the product are you using? On what operating system?
idoubs 2.0; iOS 5.0

Please provide any additional information below.

I trying connect idoubs to server via TLS: port:5061, proxy: 
proxy.sip.sipthor.net,
public id=sip:thanhhai@sip2sip.info,
private ID = thanhhai
Realm=sip2sip.info

But connection is falis. doese anyone know, please help me.

this console log:
2012-10-05 23:23:41.351 idoubs[14178:207] idoubs2AppDelegate///: 
applicationWillEnterForeground and RegistrationState=0
2012-10-05 23:23:41.360 idoubs[14178:207] NgnSipService///: register()
2012-10-05 23:23:41.360 idoubs[14178:207] NgnSipService///: Recycling the stack
2012-10-05 23:23:42.348 idoubs[14178:6007] NgnSipService///: Stack stopped
**WARN: function: "tsip_stack_stop()" 
file: 
"/Volumes/SOFT/Source/MyDoub/mydoubs/iPhone/idoubs/branches/2.0/ios-ngn-stack/..
/../../../../doubango/branches/2.0/doubango/tinySIP/src/tsip.c" 
line: "834" 
MSG: Stack already stopped
2012-10-05 23:23:42.350 idoubs[14178:207] NgnSipService///: 
realm='sip2sip.info', impu='sip:thanhhai@sip2sip.info', impi='thanhhai'
2012-10-05 23:23:42.353 idoubs[14178:207] NgnSipService///: STUN=no
2012-10-05 23:23:42.354 idoubs[14178:207] NgnSipService///: 
pcscf-host='proxy.sipthor.net', pcscf-port='5061', transport='TLS', 
ipversion='ipv4'
 interface: en0
**WARN: function: "tnet_sockfd_connectto()" 
file: 
"/Volumes/SOFT/Source/MyDoub/mydoubs/iPhone/idoubs/branches/2.0/ios-ngn-stack/..
/../../../../doubango/branches/2.0/doubango/tinyNET/src/tnet_utils.c" 
line: "1476" 
MSG: 
TNET_ERROR_WOULDBLOCK/TNET_ERROR_ISCONN/TNET_ERROR_INPROGRESS/TNET_ERROR_EAGAIN 
 ==> use tnet_sockfd_waitUntilWritable.
2012-10-05 23:23:42.871 idoubs[14178:530b] NgnSipService///: Stack started
**WARN: function: "recvData()" 
file: 
"/Volumes/SOFT/Source/MyDoub/mydoubs/iPhone/idoubs/branches/2.0/ios-ngn-stack/..
/../../../../doubango/branches/2.0/doubango/tinyNET/src/tnet_transport_cfsocket.
c" 
line: "127" 
MSG: IOCTLT returned zero for fd=29

Original issue reported on code.google.com by thanhha...@gmail.com on 10 Oct 2012 at 1:37

GoogleCodeExporter commented 9 years ago
I get exactly the same issue as you. Using iOS 6.0

If I change to TCP/Port 5060 it registers, but soon then the network connection 
dies and inbound/outbound fails.

Original comment by ba...@flanagan.ie on 29 Nov 2012 at 1:02

GoogleCodeExporter commented 9 years ago
Same thing here (( running on 6.1

Original comment by Sp1n3.t...@gmail.com on 15 Feb 2013 at 11:02

GoogleCodeExporter commented 9 years ago
So as i figured out, TLS in CFSockets is not supported, so if you want to do 
TLS, need to switch to BSD sockets
Here's where i've found the info - 
http://code.google.com/p/doubango/issues/detail?id=106&sort=status%20priority

http://code.google.com/p/doubango/source/diff?spec=svn654&r=691&format=side&path
=/branches/2.0/doubango/tinyNET/src/tnet_transport_poll.c&old_path=/branches/2.0
/doubango/tinyNET/src/tnet_transport_poll.c&old=699

Original comment by Sp1n3.t...@gmail.com on 18 Feb 2013 at 12:07

GoogleCodeExporter commented 9 years ago
Should be fixed by  Doubango 822

Original comment by boss...@yahoo.fr on 19 Feb 2013 at 11:20