From 3d283b295309fa8e8877f6ad0fc062c341db7e9e Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 6 Sep 2017 17:22:33 +0200 Subject: [PATCH] stop transaction's retransmissions when a call is cancelled. --- coreapi/bellesip_sal/sal_op_call.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coreapi/bellesip_sal/sal_op_call.c b/coreapi/bellesip_sal/sal_op_call.c index c8a06a95b..c6e35e1db 100644 --- a/coreapi/bellesip_sal/sal_op_call.c +++ b/coreapi/bellesip_sal/sal_op_call.c @@ -1141,6 +1141,9 @@ int sal_call_terminate_with_error(SalOp *op, const SalErrorInfo *info){ * The state is passed to Terminating to remember to terminate later. */ op->state=SalOpStateTerminating; + /* However, even if the transaction is kept alive, we can stop sending retransmissions to avoid flowing the network with no longer + * necessary messages and avoid confusion in logs.*/ + belle_sip_client_transaction_stop_retransmissions(op->pending_client_trans); } } break;