[sr-dev] git:5.1:a59f72f3: tm: use WARN log level for status rewrite by UAS (were decreased before SER tm integration)

Daniel-Constantin Mierla miconda at gmail.com
Mon Feb 10 10:21:41 CET 2020


Module: kamailio
Branch: 5.1
Commit: a59f72f36463761bf47e6d98faaf624749644140
URL: https://github.com/kamailio/kamailio/commit/a59f72f36463761bf47e6d98faaf624749644140

Author: Henning Westerholt <hw at skalatan.de>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-02-10T08:28:10+01:00

tm: use WARN log level for status rewrite by UAS (were decreased before SER tm integration)

- use WARN log level for status rewrite by UAS (log level decreased before SER
  tm integration, e.g. v1.5.x)
- for bad interconnection or gateways this might be reported frequently

(cherry picked from commit e1a01699af450292859e4f2cd69b6a6d85246e5e)
(cherry picked from commit b370041ccfd86e15812e1a06ad803569654eac07)

---

Modified: src/modules/tm/t_reply.c

---

Diff:  https://github.com/kamailio/kamailio/commit/a59f72f36463761bf47e6d98faaf624749644140.diff
Patch: https://github.com/kamailio/kamailio/commit/a59f72f36463761bf47e6d98faaf624749644140.patch

---

diff --git a/src/modules/tm/t_reply.c b/src/modules/tm/t_reply.c
index 8e986e2fab..b4cba92fa1 100644
--- a/src/modules/tm/t_reply.c
+++ b/src/modules/tm/t_reply.c
@@ -1302,7 +1302,7 @@ static enum rps t_should_relay_response( struct cell *Trans , int new_code,
 		}
 		/* this looks however how a very strange status rewrite attempt;
 		 * report on it */
-		LM_ERR("status rewrite by UAS: stored: %d, received: %d\n",
+		LM_WARN("status rewrite by UAS: stored: %d, received: %d\n",
 			Trans->uac[branch].last_received, new_code);
 		goto discard;
 	}




More information about the sr-dev mailing list