![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
voltando a versao de n aberturas e fechamentos de sockets
Dependencies: EthernetInterface NTPClient mbed-rtos_old mbed
Fork of header_main_public by
Diff: utils.cpp
- Revision:
- 12:07fd716e0f35
- Parent:
- 10:22da1a0ac1e1
- Child:
- 13:ae278302dffe
--- a/utils.cpp Mon Sep 15 20:58:59 2014 +0000 +++ b/utils.cpp Tue Sep 16 13:21:01 2014 +0000 @@ -135,23 +135,26 @@ } int sip_manager( Vector * v_cb, Vector * v_call, uint8_t * write_buffer ){ - //debug_msg(""); + debug_msg(""); static int index = 0; + debug_msg("v_cb->size() :: %d", v_cb->size() ); if( v_cb && write_buffer ){ if( v_cb->size() > 0 ){ if( index >= v_cb->size() ) index = 0; }else return 0; Call_Box * cb = (Call_Box * )v_cb->get_element( index ); + debug_msg("cb -- %p", cb ); + debug_msg("Cb Ext :: %d", cb->get_ext() ); /* Retorna = 0 :: ok < 0 :: tive problemas > 0 :: devo remover essa call do vetor de calls */ int returned_value = 0; - - //if( cb->status == cb_on_call || cb->status == cb_idle ) returned_value = cb->listen_SIP_server(); - if( cb->status == cb_on_call ) returned_value = cb->listen_SIP_server(); - + debug_msg("Cb Ext :: %d", cb->get_ext() ); + if( cb->status == cb_on_call || cb->status == cb_idle ) returned_value = cb->listen_SIP_server(); + //if( cb->status == cb_on_call ) returned_value = cb->listen_SIP_server(); + debug_msg(""); index++; return( returned_value ); }