Module: kamailio
Branch: 5.2
Commit: 2d6101227365f1f21b39ec4806b09f1c44df6348
URL:
https://github.com/kamailio/kamailio/commit/2d6101227365f1f21b39ec4806b09f1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Henning Westerholt <hw(a)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/2d6101227365f1f21b39ec4806b09f1…
Patch:
https://github.com/kamailio/kamailio/commit/2d6101227365f1f21b39ec4806b09f1…
---
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;
}