[sr-dev] git:5.2:2d610122: core: more details on error log on failed comp_num() expression

Henning Westerholt hw at skalatan.de
Wed Jan 22 23:12:31 CET 2020


Module: kamailio
Branch: 5.2
Commit: 2d6101227365f1f21b39ec4806b09f1c44df6348
URL: https://github.com/kamailio/kamailio/commit/2d6101227365f1f21b39ec4806b09f1c44df6348

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-01-22T23:05:22+01:00

core: more details on error log on failed comp_num() expression

(cherry picked from commit a85bdf58e3f1933a4a1d231b5de4fd9cf1393366)

---

Modified: src/core/route.c

---

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

---

diff --git a/src/core/route.c b/src/core/route.c
index aa814007f0..30ac12eaf6 100644
--- a/src/core/route.c
+++ b/src/core/route.c
@@ -1199,7 +1199,8 @@ inline static int comp_num(int op, long left, int rtype, union exp_op* r,
 			}
 			break;
 		default:
-			LM_CRIT("Invalid right operand (%d)\n", rtype);
+			LM_CRIT("Invalid right operand (rtype: %d expr-op: %d lval: %ld)\n",
+					rtype, op, left);
 			return E_BUG;
 	}
 




More information about the sr-dev mailing list