Blob Blame History Raw
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Mon, 12 Oct 2020 15:47:05 +0200
Subject: [PATCH] tm: clone message in async mode only in request route

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

diff --git a/modules/tm/async.c b/modules/tm/async.c
index c4fa9152b..40618c11b 100644
--- a/modules/tm/async.c
+++ b/modules/tm/async.c
@@ -239,7 +239,7 @@ int t_handle_async(struct sip_msg *msg, struct action* a , int resume_route,
 	} else {
 		/* update the cloned UAS (from transaction)
 		 * with data from current msg */
-		if (t->uas.request)
+		if ((t->uas.request) && (route_type==REQUEST_ROUTE))
 			update_cloned_msg_from_msg( t->uas.request, msg);
 	}