Documentation seems also missing at https://www.kamailio.org/wiki/cookbooks/devel/transformations
Cheers,
Henning
Am 20.08.19 um 11:22 schrieb Daniel-Constantin Mierla:
I just pushed the commit adding the {s.count,c} parameter:
* https://github.com/kamailio/kamailio/commit/18eb1c973c5d863a562864c2b77b4e1d...
Can you try it and see if works fine? I didn't have any time for testing yet ...
Cheers, Daniel
On 19.08.19 14:44, Daniel-Constantin Mierla wrote:
On 19.08.19 14:41, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
One alternative could be to implement
{s.count, delimiter}
which would tell how many items a list separated by delimiter has.
That can be added, probably it would be just a generic {s.count,char} => return the number of appearances of char in the value.
Then for a param-like list with such delimiter it has to add 1. However, for this specific case, to have a proper context parsing, in order to be sure the params are well formatted, it should not be just a bare string walk through.
In my current use case, the list is not a parameter list, but any list. So s.count would suffice.
OK. That should be easy, I can add it later today or latest tomorrow, if nobody else does it meanwhile.
Cheers, Daniel