Module: kamailio
Branch: master
Commit: a85bdf58e3f1933a4a1d231b5de4fd9cf1393366
URL:
https://github.com/kamailio/kamailio/commit/a85bdf58e3f1933a4a1d231b5de4fd9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-15T17:06:36+01:00
core: more details on error log on failed comp_num() expression
---
Modified: src/core/route.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a85bdf58e3f1933a4a1d231b5de4fd9…
Patch:
https://github.com/kamailio/kamailio/commit/a85bdf58e3f1933a4a1d231b5de4fd9…
---
diff --git a/src/core/route.c b/src/core/route.c
index 4aa7f25f76..ad2fa66e64 100644
--- a/src/core/route.c
+++ b/src/core/route.c
@@ -1212,7 +1212,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;
}