mydecember / doubango-1

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

Problems reusing the stack in ios (looks like the same problem with Android TLS) #219

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Start and Stop the stack a few times
2. After a while everything hangs and the error happens
3.
SSL is enabled :)
DTLS supported: yes
DTLS-SRTP supported: yes
2013-03-15 11:55:38.551 myApp[279:907] NgnConfigurationService///: Start()
2013-03-15 11:55:38.561 myApp[279:907] NgnNetworkService///: Start()
2013-03-15 11:55:38.578 myApp[279:907] 0
2013-03-15 11:55:38.583 myApp[279:907] NgnSipService///: Start()
2013-03-15 11:55:38.588 myApp[279:907] NgnHttpClientService///: Start()
2013-03-15 11:55:38.595 myApp[279:907] NgnSoundService///: Start()
2013-03-15 11:55:38.652 myApp[279:907] NgnSipService///: register()
2013-03-15 11:55:38.655 myApp[279:907] NgnSipService///: realm='sp1n3.com', 
impu='sip:s48684333220@sp1n3.com', impi='s4868424220'
*INFO: Calling 'tnet_dns_resolvconf_parse()' to load DNS servers
*INFO: Failed to open [/etc/resolv.conf]. But don't panic, we have detected 
that you are using Google Android/iOS Systems.
You should look at the Progammer's Guide for more information.
 If you are not using DNS functions, don't worry about this warning.
2013-03-15 11:55:38.689 myApp[279:907] NgnSipService///: STUN=yes
2013-03-15 11:55:38.692 myApp[279:907] NgnSipService///: STUN2 - 
server=stun.sp1n3.com and port=3478
2013-03-15 11:55:38.694 myApp[279:907] NgnSipService///: 
pcscf-host='sp1n3.com', pcscf-port='5060', transport='TCP', ipversion='ipv4'
*INFO: Stack running in CLIENT mode
*INFO: tsk_timer_manager_start
*INFO: Proxy-CSCF=[sp1n3.com]:5060
*INFO: Timer manager run()::enter
*INFO: TIMER MANAGER -- START
*INFO: Socket added
*INFO: SIP STACK::run -- START
*INFO: Transport::run() - enter
*INFO: Socket added
*INFO: Starting [SIP transport] server with IP {192.168.1.146} on port 
{49608}...
*INFO: SIP STACK -- START
*INFO: State machine: tsip_dialog_register_Started_2_InProgress_X_oRegister
*INFO: State machine: tsip_transac_nict_Started_2_Trying_X_send
2013-03-15 11:55:38.864 myApp[279:6703] NgnSipService///: Stack started
What is the expected output? What do you see instead?
Should Logout or Login accordingly (stoping and starting the stack)

What version of the product are you using? On what operating system?
ios 6.1, latest svn version

Please provide any additional information below.
*INFO: State machine: tsip_transac_nict_Started_2_Trying_X_send
***ERROR: function: "tnet_get_ip_n_port()" 
file: 
"/Users/n0n3/Documents/code/ftc/AISTEPS_ios_2/ios/ios_ngn_stack_libs/iPhone/idou
bs/branches/2.0/ios-ngn-stack/../../../../../doubango/branches/2.0/doubango/tiny
NET/src/tnet_utils.c" 
line: "1130" 
MSG: TNET_GET_SOCKADDR has failed with status code: -1
***ERROR: function: "tnet_get_ip_n_port()" 
file: 
"/Users/n0n3/Documents/code/ftc/AISTEPS_ios_2/ios/ios_ngn_stack_libs/iPhone/idou
bs/branches/2.0/ios-ngn-stack/../../../../../doubango/branches/2.0/doubango/tiny
NET/src/tnet_utils.c" 
line: "1130" 
MSG: (SYSTEM)NETWORK ERROR ==>Bad file descriptor

Original issue reported on code.google.com by Sp1n3.t...@gmail.com on 15 Mar 2013 at 10:07