voltando a versao de n aberturas e fechamentos de sockets data 19/09
Dependencies: EthernetInterface NTPClient mbed-rtos mbed EALib
Fork of header_main_publish by
Diff: call_box.cpp
- Revision:
- 4:de46f0d9b14d
- Parent:
- 3:cd9148672e25
- Child:
- 7:019b08223b87
--- a/call_box.cpp Wed Sep 10 18:21:48 2014 +0000 +++ b/call_box.cpp Thu Sep 11 14:23:47 2014 +0000 @@ -8,7 +8,7 @@ timeout = __TIMEOUT__; //sip.set_ext( this->ext ); //sip.set_port( this->port ); - msg_id = 0x00; + msg_id = 0x10; timeslice = 0x00; status = cb_idle; //Sip sip( ext, port ); @@ -45,12 +45,14 @@ void Call_Box::registry( void ){ if( this->sip == NULL ){ this->sip = new Sip( ext, port ); + debug_msg(" Registrando %d", ext ); sip->registry(); delete( sip ); this->sip = NULL; }else{ + debug_msg(" Registrando %d", ext ) sip->registry(); } }