[SR-Users] Parameters list transformations comma and semi column conflict
Peter Dunkley
peter.dunkley at crocodilertc.net
Thu Oct 17 17:36:36 CEST 2013
Hello,
Parameters to SIP headers are ';' separated. ',' is used to concatenate
multiple headers onto a single line. The {param...} transformation is
intended to process SIP header parameters.
However, there is a new feature in Kamailio 4.1 (currently in a
pre-release/testing phase) that allows you to specify the delimiter value.
That may do what you require.
Please see:
http://www.kamailio.org/wiki/cookbooks/devel/transformations#paramvalue_name_delimiter
Regards,
Peter
On 17 October 2013 16:04, Seudin Kasumovic <seudin.kasumovic at gmail.com>wrote:
> Hi,
>
> Transformation {param.value, param_name} returns incomplete or empty
> values when parameter value contains comma (,).
>
> See next example:
>
> *$avp*(my_var)="a=val_a1,val_a2,val_a3;b=val_b";
>
> in next transformations:
>
> $(*avp*(my_var){param.value, a}) returns 'val_a1'
> $(*avp*(my_var){param.value, b}) returns empty string
>
> Seams that comma in parameter value conflicts with semi column separator.
>
> Is this bug or wrong documented?
>
> Related link:
>
> http://www.kamailio.org/wiki/cookbooks/4.0.x/transformations#paramvalue_name
>
> --
> Seudin Kasumovic
> Tuzla, Bosnia
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
--
Peter Dunkley
Technical Director
Crocodile RCS Ltd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131017/5fdc13cd/attachment.html>
More information about the sr-users
mailing list