Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
112:6ae726539ab9
Parent:
109:a5b8264ffbbc
Child:
113:db67ae00550e
--- a/call_box.cpp	Tue Apr 07 18:26:21 2015 +0000
+++ b/call_box.cpp	Mon Apr 13 12:16:21 2015 +0000
@@ -281,7 +281,6 @@
 int Call_Box::get_sip_ext( void ){ return this->sip->get_ext(); }
 int Call_Box::get_sip_port( void ){ return this->sip->get_port(); }
 
-
 int Call_Box::get_timer( void ){ return t.read(); }
 
 int Call_Box::get_rtp_port ( void )
@@ -353,4 +352,25 @@
     send_msg ("");
     
     return ( sizeof( Call_Box ) );
+}
+ 
+void Call_Box::init_rtp_timer ( void )
+{
+    this->rtp_timer.start();   
+}
+ 
+void Call_Box::reset_rtp_timer ( void )
+{
+    this->rtp_timer.stop();
+    this->rtp_timer.reset();
+}
+ 
+bool Call_Box::is_rtp_timer_timeout ( void )
+{
+    return ( rtp_timer.read () > RTP_REQUEST_PORT_TIMEOUT ) ? true : false;  
+}
+ 
+int Call_Box::get_rtp_timer ( void )
+{
+    return ( rtp_timer.read () );
 }
\ No newline at end of file