[SR-Users] {param.count,delimiter} issue

Daniel-Constantin Mierla miconda at gmail.com
Mon Aug 19 14:23:50 CEST 2019


On 19.08.19 12:21, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>> iirc, the comma does not work as delimiter between parameters, because
>> it is the delimiter between the header bodies (when many bodies are
>> serialized within same header name).
> I thought that comma can be used as param.count delimiter, because it
> works as select delimiter:
>
> https://www.kamailio.org/wiki/cookbooks/devel/transformations#sselect_index_separator

That's pure string tokenizer -- find the separator in the buffer and
advance to next token.

The param transformation is using the parser for SIP header/URI
parameters, where comma is not a separator for parameters, but for
header/uri bodies.

I think it may work with some workaround done in pv module -- iirc, the
pv module is cloning the value in a local buffer, so then it can replace
the comma separator with another one (set by modparam or so) in the
local buffer, so it doesn't impact the original value and it doesn't
require to change the sip param parser.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda




More information about the sr-users mailing list