![](/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: sip.cpp
- Revision:
- 92:92df17f538a8
- Parent:
- 91:c2a86b1f8aaa
- Child:
- 97:8985817e8847
--- a/sip.cpp Thu Jan 08 23:44:08 2015 +0000 +++ b/sip.cpp Sat Jan 10 16:35:11 2015 +0000 @@ -174,6 +174,10 @@ if( debug_sip ) debug_msg("Sent %i of %i bytes to ext %d", sent, strlen( buffer ), my_ext ); + if( sent != strlen( buffer ) ){ + sip_socket_send_failure++; + } + return( sent ); /* @@ -227,7 +231,7 @@ } if( invite_timer.read() > __INVITE_MAX_WAITING_TIME__ ){ - if( debug_invite == true ) send_msg("Invite call timeout :("); + if( debug_invite == true ) debug_msg("Invite call timeout :("); if( ( this->invite_pkg_sent == -1 ) || length_muted || ok_sent == -1 ){ muted = true; @@ -319,7 +323,7 @@ strcat( buffer, ":" ); itoa( server_port, itoa_buffer, 10 ); strcat( buffer, itoa_buffer ); - strcat( buffer, ">;expires=180" ); + strcat( buffer, ">;expires=270" ); //itoa( 1200, itoa_buffer, 10 ); //strcat( buffer, itoa_buffer ); strcat( buffer, "\r\n" );