From 4c962672ce9533bc927f7a95d9958c4d9c4c3dfe Mon Sep 17 00:00:00 2001 From: bossiel Date: Tue, 11 Dec 2012 12:19:22 +0000 Subject: [PATCH] Fix IMSDroid bug #420 --- branches/2.0/doubango/tinyNET/src/tnet_transport_poll.c | 2 +- .../2.0/doubango/tinySIP/src/dialogs/tsip_dialog_layer.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/branches/2.0/doubango/tinyNET/src/tnet_transport_poll.c b/branches/2.0/doubango/tinyNET/src/tnet_transport_poll.c index 04878b44..562adf4e 100644 --- a/branches/2.0/doubango/tinyNET/src/tnet_transport_poll.c +++ b/branches/2.0/doubango/tinyNET/src/tnet_transport_poll.c @@ -636,7 +636,7 @@ void *tnet_transport_mainthread(void *param) void* buffer = tsk_null; tnet_transport_event_t* e; - TSK_DEBUG_INFO("NETWORK EVENT FOR SERVER [%s] -- TNET_POLLIN(%d)", transport->description, active_socket->fd); + // TSK_DEBUG_INFO("NETWORK EVENT FOR SERVER [%s] -- TNET_POLLIN(%d)", transport->description, active_socket->fd); /* check whether the socket is paused or not */ if(active_socket->paused){ diff --git a/branches/2.0/doubango/tinySIP/src/dialogs/tsip_dialog_layer.c b/branches/2.0/doubango/tinySIP/src/dialogs/tsip_dialog_layer.c index 57bc9d6a..f8f1564c 100644 --- a/branches/2.0/doubango/tinySIP/src/dialogs/tsip_dialog_layer.c +++ b/branches/2.0/doubango/tinySIP/src/dialogs/tsip_dialog_layer.c @@ -556,7 +556,10 @@ int tsip_dialog_layer_handle_incoming_msg(const tsip_dialog_layer_t *self, tsip_ ret = tsip_transac_start(transac, message); tsk_object_unref(transac); } - else if(TSIP_MESSAGE_IS_REQUEST(message)){ /* No transaction match for the SIP request */ + /* - No transaction match for the SIP request + - ACK do not expect any response (http://code.google.com/p/imsdroid/issues/detail?id=420) + */ + else if(TSIP_MESSAGE_IS_REQUEST(message) && !TSIP_REQUEST_IS_ACK(message)){ const tsip_transport_layer_t *layer; tsip_response_t* response = tsk_null;