Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
81:3656f00ab3db
Parent:
78:1353744f01e1
Child:
85:b6f2dc1d0f4f
diff -r 61d61c9eb75c -r 3656f00ab3db call_box.cpp
--- a/call_box.cpp	Tue Dec 16 19:34:30 2014 +0000
+++ b/call_box.cpp	Tue Dec 30 12:37:40 2014 +0000
@@ -13,6 +13,8 @@
     
     next_aging_type = __CYCLES__;
     seconds.start();
+    invite_response = true;
+    bye_response = true;
 }
 
 int Call_Box::get_status( void ){ return this->status; }
@@ -64,13 +66,13 @@
         this->sip = new Sip( ext, port );
     
         if( sip->registry() > 0x00 ) reset_elapsed_time();
-        if( debug_aging ) debug_msg( "%d Registered", ext );
+        if( debug_aging ) debug_msg( "%d Registered - ( %f )", ext, __TIMEOUT__ - t.read() );
         
         delete( sip );
         this->sip = NULL;
     }else{
         if( sip->registry() > 0x00 ) reset_elapsed_time();
-        if( debug_aging ) debug_msg( "%d Registered", ext );
+        if( debug_aging ) debug_msg( "%d Registered - ( %f )", ext, __TIMEOUT__ - t.read() );
     }
 }
 
@@ -181,4 +183,12 @@
     else if( ( next_aging_type % 7 ) == 0 ) return( REQUEST_PEND );
     
     else return( REQUEST_PING );
-}
\ No newline at end of file
+}
+
+void Call_Box::set_invite_response_ok( void ){ this->invite_response = true; }
+void Call_Box::set_invite_response_pending( void ){ this->invite_response = false; }
+bool Call_Box::get_invite_response( void ){ return( this->invite_response ); }
+
+void Call_Box::set_bye_response_ok( void ){ this->bye_response = true; }
+void Call_Box::set_bye_response_pending( void ){ this->bye_response = false; }
+bool Call_Box::get_bye_response( void ){ return( this->bye_response ); }
\ No newline at end of file