[SR-Users] Error parsing parameter value

Duarte Rocha duarterocha91 at gmail.com
Tue Oct 8 16:09:59 CEST 2019


Hi David.

I want to ble able to print : yellow = "twelve".
In the green example the "" are printed, but on the yellow example it is
not.

Cheers

A terça, 8/10/2019, 12:36, Duarte Rocha <duarterocha91 at gmail.com> escreveu:

> Greetings,
>
>
>
> I'm testing some parameters actions and i found a weird behaviour
>
>
>
> This is my code for the test :
>
>
>
> $var(Parameter_List) = "blue=twelve;green=twe\"lve\";yellow=\"twelve\"";
>
> xerr("Parameter List = $var(Parameter_List)");
>
> xerr("Value of Parameter blue = $(var(Parameter_List){param.value,blue})");
>
> xerr("Value of Parameter green =
> $(var(Parameter_List){param.value,green})");
>
> xerr("Value of Parameter yellow =
> $(var(Parameter_List){param.value,yellow})");
>
>
>
>
>
> The printed logs are the following :
>
> ERROR: <script>: Parameter List =
> blue=twelve;green=twe"lve";yellow="twelve"
>
> ERROR: <script>: Value of Parameter blue = twelve
>
> ERROR: <script>: Value of Parameter green = twe"lve"
>
> ERROR: <script>: Value of Parameter yellow = twelve
>
>
>
> I have also tried setting the string as :
>
> $var(Parameter_List) = 'blue=twelve;green=twe"lve";yellow="twelve"';
>
> But the results were similar
>
> The "" are not recognized in some scenarios. Is this intended behaviour or
> should i submit it as a bug?
>
>
>
>
>
> Best Regards,
>
>
>
> Duarte Rocha
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191008/828ae430/attachment.html>


More information about the sr-users mailing list