Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
12:07fd716e0f35
Parent:
10:22da1a0ac1e1
Child:
13:ae278302dffe
diff -r 738eeac3b736 -r 07fd716e0f35 call_box.cpp
--- a/call_box.cpp	Mon Sep 15 20:58:59 2014 +0000
+++ b/call_box.cpp	Tue Sep 16 13:21:01 2014 +0000
@@ -12,8 +12,8 @@
     timeslice = 0x00;
     status = cb_idle;
     //Sip sip( ext, port );
-    sip = NULL;
-    //sip = new Sip( ext, port );
+    //sip = NULL;
+    sip = new Sip( ext, port );
 }
 
 Call_Box::~Call_Box( void ){
@@ -98,6 +98,7 @@
     > 0 :: devo remover essa call do vetor de calls 
 */
 int Call_Box::listen_SIP_server( void ){
+    debug_msg("");
     if( this->sip == NULL ){
         if( status == cb_on_call || status == cb_idle ){
             this->sip = new Sip( ext, port );
@@ -114,8 +115,12 @@
                 delete( sip );
                 this->sip = NULL;
             }
+            debug_msg("");
             return( out_read );
-        }else return( 0 );
+        }else{
+            debug_msg("");
+            return( 0 );
+        }
     }
 }