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

Henning Westerholt hw at skalatan.de
Mon Feb 3 12:00:44 CET 2020


Module: kamailio
Branch: 5.3
Commit: b98bdc21dc495ca2f4babcc6a556b9c0dc63884a
URL: https://github.com/kamailio/kamailio/commit/b98bdc21dc495ca2f4babcc6a556b9c0dc63884a

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-02-03T11:57:37+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)

---

Modified: src/modules/tm/t_reply.c

---

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

---

diff --git a/src/modules/tm/t_reply.c b/src/modules/tm/t_reply.c
index 331bdbdf71..77747d34c0 100644
--- a/src/modules/tm/t_reply.c
+++ b/src/modules/tm/t_reply.c
@@ -1307,7 +1307,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