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

Daniel-Constantin Mierla miconda at gmail.com
Mon Aug 19 12:04:05 CEST 2019


Hello,

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).

If someone wants that, then should be extended, but careful not to break
SIP header parsing.

An alternative is to replace comma with another char (use subst
transformation) and then use the param transformation.

Cheers,
Daniel

On 19.08.19 10:31, Juha Heinanen wrote:
> Looks like there is bug in {param.count,delimiter} transformation:
>
>     $var(test) = "a=1;b=2";
>     xinfo("param count = $(var(test){param.count,;})\n");
>     $var(test) = "a=1,b=2";
>     xinfo("param count = $(var(test){param.count,,})\n");
>
> syslog:
>
> Aug 19 11:27:27 salmon /usr/bin/sip-proxy[26513]: INFO: param count = 2
> Aug 19 11:27:27 salmon /usr/bin/sip-proxy[26513]: INFO: param count = 1
>
> -- Juha
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

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




More information about the sr-users mailing list