Module: kamailio
Branch: 5.4
Commit: 34ee120ab555b9aab364af4570033c3a08451fda
URL:
https://github.com/kamailio/kamailio/commit/34ee120ab555b9aab364af4570033c3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-06-01T11:10:28+02:00
pv: more details in err log message for s.select parsing
(cherry picked from commit 02ad9e1b87f89b9456d0d85e16c2fe0cda67ab64)
(cherry picked from commit 2273d7d856b5c1fca1ec24fbb6ee249793ea6719)
---
Modified: src/modules/pv/pv_trans.c
---
Diff:
https://github.com/kamailio/kamailio/commit/34ee120ab555b9aab364af4570033c3…
Patch:
https://github.com/kamailio/kamailio/commit/34ee120ab555b9aab364af4570033c3…
---
diff --git a/src/modules/pv/pv_trans.c b/src/modules/pv/pv_trans.c
index 0ce73c4542..2f5c2cd48d 100644
--- a/src/modules/pv/pv_trans.c
+++ b/src/modules/pv/pv_trans.c
@@ -2532,8 +2532,8 @@ char* tr_parse_string(str* in, trans_t *t)
while(*p && (*p==' ' || *p=='\t' || *p=='\n')) p++;
if(*p!=TR_RBRACKET)
{
- LM_ERR("invalid select transformation: %.*s!!\n",
- in->len, in->s);
+ LM_ERR("invalid select transformation: %.*s (c:%c/%d - p:%d)!!\n",
+ in->len, in->s, *p, *p, (int)(p - in->s));
goto error;
}
goto done;