![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: call_box.h
- Revision:
- 114:472502b31a12
- Parent:
- 113:db67ae00550e
- Child:
- 115:a1e1e2e60a2c
diff -r db67ae00550e -r 472502b31a12 call_box.h --- a/call_box.h Thu Apr 16 12:57:13 2015 +0000 +++ b/call_box.h Mon Apr 20 14:40:09 2015 +0000 @@ -18,7 +18,6 @@ #define __RESQUEST_TIME__ 3 #define MAX_INVITE_RETRY 1000 -#define RTP_REQUEST_PORT_TIMEOUT 45 // 600 // seconds #define __TIMEOUT__ 250 ///< O tempo que a Header demora para "pingar" o Call_Box para saber se esta tudo bem. @@ -28,6 +27,8 @@ #define __CYCLES__ __TIME_TO_REGISTER__ / __RESQUEST_TIME__ // 200 // 3 ~ 66 +#define RTP_REQUEST_PORT_TIMEOUT 45 // 600 // seconds + #define REQUEST_REGISTRY -1 #define REQUEST_PEND -2 #define REQUEST_PING -4 @@ -58,6 +59,7 @@ int ext; // ramal int port; // porta Timer t; + Timer rtp_timer; // usado pra controlar o timeout dos pedidos de porta rtp uint8_t remaining_attempts; float timeout; uint8_t msg_id; @@ -67,9 +69,7 @@ uint16_t invite_retry_count; bool bye_response; Timer seconds; - Timer rtp_timer; // usado pra controlar o timeout dos pedidos de porta rtp int sip_socket_fd; - int shift_port; public : /** * @Synopsis Objeto Sip que será usado para tratativas com o servidor. @@ -398,8 +398,8 @@ int get_sip_port( void ); int get_timer( void ); int get_rtp_port ( void ); + int print_yourself ( void ); void set_rtp_port ( int ); - int print_yourself ( void ); void init_rtp_timer ( void ); void reset_rtp_timer ( void ); bool is_rtp_timer_timeout ( void );