<div dir="ltr">Indeed, it looks like the parser takes 'yellow="twelve"' as a quoted string, since, if you do yellow="twel ve" it would then output `twel ve` properly.<div>Which kind of makes sense, since quotes should be used if one wants a long string like "hello my name is david".</div><div>I'll defer to Daniel here.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 8, 2019 at 3:31 PM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>the values of parameters can be quoted or unquoted, depending on
      the format (e.g., URI parameters have to be unquoted). If they
      start with a quote, then it has to be terminated with the same
      quote and then the value is in between the quotes. The {param}
      transformation is using the same parser as for parameters in SIP
      message.</p>
    <p>Now, I am not sure if quote is allowed in an unquoted parameters
      like green, the grammar in SIP specs has to be checked...</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div>On 08.10.19 16:09, Duarte Rocha wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="auto">Hi David.
        <div dir="auto"><br>
        </div>
        <div dir="auto">I want to ble able to print : yellow = "twelve".</div>
        <div dir="auto">In the green example the "" are printed, but on
          the yellow example it is not.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Cheers</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">A terça, 8/10/2019, 12:36,
          Duarte Rocha <<a href="mailto:duarterocha91@gmail.com" target="_blank">duarterocha91@gmail.com</a>>
          escreveu:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="auto">
            <div class="gmail_quote" dir="auto">
              <div dir="ltr" class="gmail_attr">Greetings,<br>
              </div>
              <div lang="PT">
                <div>
                  <p class="MsoNormal"> </p>
                  <p class="MsoNormal">I'm testing some parameters
                    actions and i found a weird behaviour</p>
                  <p class="MsoNormal"> </p>
                  <p class="MsoNormal">This is my code for the test : </p>
                  <p class="MsoNormal"> </p>
                  <p class="MsoNormal">$var(Parameter_List) =
                    "blue=twelve;green=twe\"lve\";yellow=\"twelve\"";</p>
                  <p class="MsoNormal">xerr("Parameter List =
                    $var(Parameter_List)");</p>
                  <p class="MsoNormal">xerr("Value of Parameter blue =
                    $(var(Parameter_List){param.value,blue})");</p>
                  <p class="MsoNormal">xerr("Value of Parameter green =
                    $(var(Parameter_List){param.value,green})");</p>
                  <p class="MsoNormal">xerr("Value of Parameter yellow =
                    $(var(Parameter_List){param.value,yellow})");</p>
                  <p class="MsoNormal"> </p>
                  <p class="MsoNormal"> </p>
                  <p class="MsoNormal">The printed logs are the
                    following : </p>
                  <p class="MsoNormal">ERROR: <script>: Parameter
                    List = blue=twelve;green=twe"lve";yellow="twelve"</p>
                  <p class="MsoNormal">ERROR: <script>: Value of
                    Parameter blue = twelve</p>
                  <p class="MsoNormal">ERROR: <script>: Value of
                    Parameter green = twe"lve"</p>
                  <p class="MsoNormal">ERROR: <script>: Value of
                    Parameter yellow = twelve</p>
                  <p class="MsoNormal"> </p>
                  <p class="MsoNormal">I have also tried setting the
                    string as :</p>
                  <p class="MsoNormal">$var(Parameter_List) =
                    'blue=twelve;green=twe"lve";yellow="twelve"'; </p>
                  <p class="MsoNormal">But the results were similar<br>
                  </p>
                  <p class="MsoNormal">The "" are not recognized in some
                    scenarios. Is this intended behaviour or should i
                    submit it as a bug?</p>
                  <p class="MsoNormal"> </p>
                  <p class="MsoNormal"> <br>
                  </p>
                  <p class="MsoNormal">Best Regards,</p>
                  <p class="MsoNormal"> </p>
                  <p class="MsoNormal">Duarte Rocha</p>
                  <p class="MsoNormal"> </p>
                </div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- <a href="https://asipto.com/u/kat" target="_blank">https://asipto.com/u/kat</a></pre>
  </div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>