voltando a versao de n aberturas e fechamentos de sockets data 19/09

Dependencies:   EthernetInterface NTPClient mbed-rtos mbed EALib

Fork of header_main_publish by VZTECH

Revision:
18:01a93677e40c
Parent:
17:67a6b557eda5
--- a/sip.cpp	Fri Sep 19 16:40:17 2014 +0000
+++ b/sip.cpp	Fri Sep 19 17:39:09 2014 +0000
@@ -183,15 +183,6 @@
                 }
             }
             if( ( status == sip_trying ) || ( status == sip_ringing ) ){            
-                if( !( strncasecmp( buffer + 12, "Busy Here", strlen("Busy Here") ) ) ){
-                    debug_msg("Busy Here");
-                    send_bye();
-                    delete( call );
-                    set_status( status, sip_busy );
-                    return( NULL );  
-                }
-            }
-            if( ( status == sip_trying ) || ( status == sip_ringing ) ){            
                 if( !( strncasecmp( buffer + 12, "Session Progress", strlen("Session Progress") ) ) ){
                     debug_msg( "Trocando dados de audio -- musica de espera com o CBx" );
                     char *ref = strstr( buffer, "audio" );
@@ -223,7 +214,6 @@
             sock.init();
             sock.set_blocking( false, 1 );
             debug_msg("Reconnect");
-            wdt.kick();
             reconnect.reset();
             //sock.sendTo( sip_server, buffer, sizeof( buffer ) );
             led4 = !led4;