qoharu / webrtc2sip

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

Connect TLS #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 5 Oct 2012 at 4:25

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 6 Oct 2012 at 9:15

GoogleCodeExporter commented 9 years ago
I am getting the same issue. Latest svn code. TLS works fine with other 
clients. I have tried changing my realm to my.realm.com:5061 and also tried 
changing my public_id to "sips:" but no go.

I can see the tls negotiation going on using ssldump on the server side, and it 
looks like it all goes OK:

2 2  0.1446 (0.0045)  S>C  Handshake
      ServerHello
        Version 3.3 
        session_id[0]=

        cipherSuite         Unknown value 0x3d
        compressionMethod                   NULL
2 3  0.1448 (0.0001)  S>C  Handshake
      Certificate
2 4  0.1448 (0.0000)  S>C  Handshake
      ServerHelloDone
2 5  0.6552 (0.5104)  C>S  Handshake
      ClientKeyExchange
2 6  0.7199 (0.0646)  C>S  ChangeCipherSpec
2 7  0.7199 (0.0000)  C>S  Handshake
2 8  0.7211 (0.0011)  S>C  ChangeCipherSpec
2 9  0.7211 (0.0000)  S>C  Handshake
2 10 6.3404 (5.6192)  C>S  application_data
2 11 6.3444 (0.0039)  S>C  application_data

Original comment by ba...@flanagan.ie on 9 Oct 2012 at 11:30