<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" 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 class="moz-cite-prefix">On 08.10.19 16:09, Duarte Rocha wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAJJHZg71VQ_84jykK5RSdycjwgPSfAwhP+H51RanuiXS1kE3g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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"
            moz-do-not-send="true">duarterocha91@gmail.com</a>>
          escreveu:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="auto">
            <div class="gmail_quote" dir="auto">
              <div dir="ltr" class="gmail_attr">Greetings,<br>
              </div>
              <div link="#0563C1" vlink="#954F72" 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 class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- <a class="moz-txt-link-freetext" href="https://asipto.com/u/kat">https://asipto.com/u/kat</a></pre>
  </body>
</html>