Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
sip_manager.cpp
00001 #include "sip_manager.h" 00002 00003 int sip_manager ( Vector * v_cb ) 00004 { 00005 if ( v_cb != NULL ) 00006 { 00007 static int sip_index = 0; 00008 00009 if ( v_cb -> size () > 0 ) 00010 { 00011 if ( sip_index >= v_cb -> size () ) sip_index = 0; 00012 }else return 0; 00013 00014 Call_Box * cb = (Call_Box * )v_cb->get_element( sip_index ); 00015 /* Retorna 00016 = 0 :: ok 00017 < 0 :: tive problemas 00018 > 0 :: devo remover essa call do vetor de calls 00019 */ 00020 int returned_value = 0; 00021 00022 //FIXME pensar em ouvir todos os cbx que estiverem em ligacao apenas, sao poucos 00023 //if( cb->status == cb_on_call || cb->status == cb_idle ){ 00024 if( cb -> get_status () == cb_on_call ){ 00025 returned_value = cb->listen_SIP_server(); 00026 } 00027 sip_index++; 00028 return( returned_value ); 00029 } 00030 return( -1 ); 00031 }
Generated on Tue Jul 12 2022 16:25:13 by
