Re: [sr-dev] [kamailio/kamailio] tr_lookup(): error parsing [{param.count, , }] (#1041)

2017-03-30 Thread Daniel-Constantin Mierla
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

Re: [sr-dev] [kamailio/kamailio] tr_lookup(): error parsing [{param.count, , }] (#1041)

2017-03-30 Thread Daniel-Constantin Mierla
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

Re: [sr-dev] [kamailio/kamailio] tr_lookup(): error parsing [{param.count, , }] (#1041)

2017-03-28 Thread Daniel-Constantin Mierla
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:

Re: [sr-dev] [kamailio/kamailio] tr_lookup(): error parsing [{param.count, , }] (#1041)

2017-03-27 Thread Daniel-Constantin Mierla
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. --

Re: [sr-dev] [kamailio/kamailio] tr_lookup(): error parsing [{param.count, , }] (#1041)

2017-03-24 Thread Sergey Lavrov
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

Re: [sr-dev] [kamailio/kamailio] tr_lookup(): error parsing [{param.count, , }] (#1041)

2017-03-24 Thread Daniel-Constantin Mierla
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

Re: [sr-dev] [kamailio/kamailio] tr_lookup(): error parsing [{param.count, , }] (#1041)

2017-03-23 Thread Sergey Lavrov
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)}

Re: [sr-dev] [kamailio/kamailio] tr_lookup(): error parsing [{param.count, , }] (#1041)

2017-03-23 Thread Daniel-Constantin Mierla
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:

[sr-dev] [kamailio/kamailio] tr_lookup(): error parsing [{param.count, , }] (#1041)

2017-03-23 Thread Sergey Lavrov
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]: