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.h
--- a/call_box.h	Thu Jan 08 23:44:08 2015 +0000
+++ b/call_box.h	Sat Jan 10 16:35:11 2015 +0000
@@ -16,6 +16,8 @@
 #include "shared_variables.h"
 
 #define __RESQUEST_TIME__ 3
+#define MAX_INVITE_RETRY 30
+
 
 #define __TIMEOUT__  250
 ///< O tempo que a Header demora para "pingar" o Call_Box para saber se esta tudo bem.
@@ -61,6 +63,7 @@
         uint8_t timeslice;
         uint8_t next_aging_type;
         bool invite_response;
+        uint8_t invite_retry_count;
         bool bye_response;
         Timer seconds;
         int sip_socket_fd;
@@ -371,6 +374,10 @@
         
         int8_t get_next_aging_type( void );
         
+        //void set_first_invite_response_ok( void );
+        //void set_first_invite_response_pending( void );
+        //bool get_first_invite_response( void );
+        
         void set_invite_response_ok( void );
         void set_invite_response_pending( void );
         bool get_invite_response( void );
@@ -382,5 +389,7 @@
         int get_sip_socket_fd( void );
         int sip_udp_incomming_pkg( void );
         void reset_cb_status( void );
+        void invite_retry_count_reset( void );
+        uint8_t get_invite_retry_count( void );
 };
 #endif
\ No newline at end of file