[sr-dev] git:5.4:34ee120a: pv: more details in err log message for s.select parsing
Daniel-Constantin Mierla
miconda at gmail.com
Tue Jun 1 14:24:40 CEST 2021
Module: kamailio
Branch: 5.4
Commit: 34ee120ab555b9aab364af4570033c3a08451fda
URL: https://github.com/kamailio/kamailio/commit/34ee120ab555b9aab364af4570033c3a08451fda
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/34ee120ab555b9aab364af4570033c3a08451fda.diff
Patch: https://github.com/kamailio/kamailio/commit/34ee120ab555b9aab364af4570033c3a08451fda.patch
---
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;
More information about the sr-dev
mailing list