Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
92:92df17f538a8
Parent:
91:c2a86b1f8aaa
Child:
97:8985817e8847
diff -r c2a86b1f8aaa -r 92df17f538a8 call_box.cpp
--- a/call_box.cpp	Thu Jan 08 23:44:08 2015 +0000
+++ b/call_box.cpp	Sat Jan 10 16:35:11 2015 +0000
@@ -20,7 +20,9 @@
     next_aging_type = __CYCLES__;
     seconds.start();
     invite_response = true;
+    //invite_first_response = true;
     bye_response = true;
+    invite_retry_count = MAX_INVITE_RETRY;
     cb_new_counter++;
 }
 
@@ -226,9 +228,23 @@
 }
 
 void Call_Box::set_invite_response_ok( void ){ this->invite_response = true; }
+
+//void Call_Box::set_first_invite_response_ok( void ){ this->invite_first_response = true; 
+//    debug_msg("");
+//}
+
 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_first_invite_response_pending( void ){ this->first_invite_response = false; }
+//bool Call_Box::get_first_invite_response( void ){ return( this->first_invite_response ); }
+
+
+void Call_Box::invite_retry_count_reset( void ){ invite_retry_count = MAX_INVITE_RETRY; }
+uint8_t Call_Box::get_invite_retry_count( void ){ 
+    return ( invite_retry_count ) ? invite_retry_count-- : 0;
+}
+
 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 ); }