Module: kamailio
Branch: master
Commit: 02ad9e1b87f89b9456d0d85e16c2fe0cda67ab64
URL:
https://github.com/kamailio/kamailio/commit/02ad9e1b87f89b9456d0d85e16c2fe0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-05-22T10:00:09+02:00
pv: more details in err log message for s.select parsing
---
Modified: src/modules/pv/pv_trans.c
---
Diff:
https://github.com/kamailio/kamailio/commit/02ad9e1b87f89b9456d0d85e16c2fe0…
Patch:
https://github.com/kamailio/kamailio/commit/02ad9e1b87f89b9456d0d85e16c2fe0…
---
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;