Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
135:2f4290590e51
Parent:
132:05cd37f7e007
--- a/call_box.h	Tue Sep 01 19:34:34 2015 +0000
+++ b/call_box.h	Thu Sep 10 20:11:35 2015 +0000
@@ -96,6 +96,8 @@
         Timer t;
         Timer rtp_timer; // usado pra controlar o timeout dos pedidos de porta rtp
         Timer invite_timer;
+        
+        Call_Box * pair;
     public :
                 /**
                  * @Synopsis Cria um objeto Call_Box
@@ -296,18 +298,6 @@
         void send_bye ( void );
 
                 /**
-                 * @Synopsis Destroi o objeto Sip vinculado ao Call_Box, criando e vinculando outro em seguida.
-                 *
-                 * Exemplo:
-                 * @code
-                 * ...
-                 *  cb->reset_sip();
-                 * ...
-                 * @endcode
-                 */
-        void reset_sip ( void );
-
-                /**
                  * @Synopsis Altera o valor do status do objeto Sip vinculado.
                  *
                  * @param status O novo valor de status que será associado ao objeto Sip vinculado ao Call_Box.
@@ -324,8 +314,6 @@
         /*------------------------------------------------------------------------------------------------*/
         bool get_invite_response ( void );
         
-        bool get_bye_response ( void );
-        
         bool time_to_retry ( void );
         
         bool is_rtp_timer_timeout ( void );
@@ -362,8 +350,6 @@
         
         int sip_udp_incomming_pkg ( void );
         
-        int get_rtp_timer ( void );
-        
         int call_init ( const int timeslice );
         
         int call_end ( const bool send_bye_to_ast = true  );
@@ -383,8 +369,6 @@
         
         void set_bye_response_ok ( void );
         
-        void set_bye_response_pending ( void );
-        
         void reset_cb_status ( void );
         
         void invite_retry_count_reset ( void );
@@ -402,10 +386,14 @@
         Sip * get_sip ( void );
         
         uint16_t get_invite_counter ( void );
-        
+            
         uint16_t update_invite_counter ( void );
         
         int update ( void );
+        
+        Call_Box * get_pair_cbx ( void );
+        
+        int set_pair_cbx ( Call_Box * new_cbx );
 };
 
 #endif
\ No newline at end of file