Reopen if the option with variable doesn't work.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1041#issuecomment-290382310___
sr-dev ma
Closed #1041.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1041#event-1022119231___
sr-dev mailing list
sr-dev@lists.sip-router.org
ht
Can you try with latest 4.4 branch? I pushed some commits to fix the use of
variable for separator.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1041#issuecomment-289781516_
OK, it seems this needs more investigation.
Meanwhile, maybe you can use other function or transformation to replace the
`,` with another character and the count.
On the other hand, if you just want to count those headers, probably you can do
a while loop to check how many headers are.
--
You
Yes, there was whitespace. I tried without whitespace without success.
```
$var(delimiter) = ",";
$var(count) = $(hdr(History-Info)[*]{param.count,$var(delimiter)});
ERROR: pv [pv_trans.c:2631]: tr_parse_paramlist(): invalid separator in
transformatio
Is there a whitespace before the variable?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1041#issuecomment-288959707___
sr-dev mailing
Unfortunately, this doesn't work:
```
$var(delimiter) = ",";
$var(count) = $(hdr(History-Info)[*]{param.count, $var(delimiter)});
```
```
ERROR: pv [pv_trans.c:2631]: tr_parse_paramlist(): invalid separator in
transformation: count, $var(delimiter)}
Can you try storing the delimiter in a variable (eg. $var(...)) and provide
the variable to the transformation? It could be a quick around for now.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio
Kamailio can't parse construction like $(hdr(History-Info)[*]{param.count,,})
where delimiter is comma.
I tried to use delimiter as , / ',' / "," wuthout success.
ERROR: pv [pv_trans.c:2631]: tr_parse_paramlist(): invalid separator in
transformation: count,,}
ERROR: [pvapi.c:1629]: tr_lookup():