<div dir="auto">Yes, i think both ways are correct <div dir="auto"><br></div><div dir="auto">The only problem is that i want to have the real value using {uri.param} which would be "<urn:uid:00000000000000>". </div><div dir="auto">However it only returns <urn:uid:00000000000000>, without the quotes.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A terça, 8/10/2019, 15:54, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@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 text="#000000" bgcolor="#FFFFFF">
    <p>The example you gave with the value of +sip.instance between
      double quotes is valid, I have seen it many times like this.</p>
    <p>On the other hand, other parameters of Contact header can usually
      be without quoted value, like:</p>
    <p>Contact:<a rel="noreferrer"><sip:user@domain></a>;reg-id=1</p>
    <p>Both types can be in the header at the same time.<br>
    </p>
    <p>Is the value with double quotes making troubles somewhere?</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div>On 08.10.19 16:38, Duarte Rocha wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="auto">Thank you for your answer.
        <div dir="auto">The green example was just for testing. My real
          example is similar to yellow on a header parameter since i
          have a client sending me the value of sip.instance between
          quotes and i can't identify the value when it is quoted. </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Example :
Contact:<a rel="noreferrer"><sip:user@domain></a>;+sip.instance="<urn:uid:00000000000000>"</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">It seems to me be a valid sip parameter, but if
          it's not i'll warn the client</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">A terça, 8/10/2019, 15:29,
          Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank" rel="noreferrer">miconda@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 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>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" rel="noreferrer noreferrer" target="_blank">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></fieldset>
              <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer noreferrer" target="_blank">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" 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" rel="noreferrer noreferrer" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" rel="noreferrer noreferrer" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer noreferrer" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- <a href="https://asipto.com/u/kat" rel="noreferrer noreferrer" target="_blank">https://asipto.com/u/kat</a></pre>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank" rel="noreferrer">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" rel="noreferrer">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" rel="noreferrer">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- <a href="https://asipto.com/u/kat" target="_blank" rel="noreferrer">https://asipto.com/u/kat</a></pre>
  </div>

</blockquote></div>