Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
25:2cf5e8dd4035
Parent:
18:01a93677e40c
Child:
27:98f824719d1c
--- a/sip.cpp	Sat Sep 20 21:20:01 2014 +0000
+++ b/sip.cpp	Mon Sep 22 14:43:46 2014 +0000
@@ -183,6 +183,15 @@
                 }
             }
             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" );