Module: kamailio
Branch: 5.5
Commit: 2273d7d856b5c1fca1ec24fbb6ee249793ea6719
URL:
https://github.com/kamailio/kamailio/commit/2273d7d856b5c1fca1ec24fbb6ee249…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-05-26T08:13:36+02:00
pv: more details in err log message for s.select parsing
(cherry picked from commit 02ad9e1b87f89b9456d0d85e16c2fe0cda67ab64)
---
Modified: src/modules/pv/pv_trans.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2273d7d856b5c1fca1ec24fbb6ee249…
Patch:
https://github.com/kamailio/kamailio/commit/2273d7d856b5c1fca1ec24fbb6ee249…
---
diff --git a/src/modules/pv/pv_trans.c b/src/modules/pv/pv_trans.c
index f93f126099..c9e7438b83 100644
--- a/src/modules/pv/pv_trans.c
+++ b/src/modules/pv/pv_trans.c
@@ -2734,8 +2734,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;