<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body 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 class="moz-txt-link-rfc2396E" href="sip:user@domain"><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 class="moz-cite-prefix">On 08.10.19 16:38, Duarte Rocha wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAJJHZiE0MsMa+1x3d2wMnepVTO6bibKQ2=DU2bDf=NVpzt8aA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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 class="moz-txt-link-rfc2396E" href="sip:user@domain"><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" moz-do-not-send="true">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"
                    target="_blank" rel="noreferrer"
                    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></fieldset>
              <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" rel="noreferrer" moz-do-not-send="true">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" rel="noreferrer" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" rel="noreferrer" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" rel="noreferrer" moz-do-not-send="true">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" moz-do-not-send="true">https://asipto.com/u/kat</a></pre>
          </div>
        </blockquote>
      </div>
    </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>