<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>the Contact header body looks ok, using comma to separate many
      contact values is ok.</p>
    <p>My guess is that {to.body} transformation is used in this case,
      it is not coming from core or a module. The To header cannot
      appear many times, thus the transformation is throwing error in
      this case. If I am right with my guess, a solution is to plug
      {s.select,0,,} transformation before use of {to.body}. The index
      of s.select can be a variable, in case one needs to get all
      contact values, a while loop can be used.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 13.10.20 22:07, Sergiu Pojoga wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJZsGC=1gO6BNpwr=HyTiygdDKy6YBfMDJERW9AuMEn_iQQTrQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hmm, it's a tricky one, not sure actually.
        <div><br>
        </div>
        <div><a href="https://tools.ietf.org/html/rfc3261#page-167"
            moz-do-not-send="true">https://tools.ietf.org/html/rfc3261#page-167</a><br>
        </div>
        <div><br>
        </div>
        <div>The answer might be in:<br>
          <pre class="gmail-newpage" style="font-size:13.3333px;margin-top:0px;margin-bottom:0px;break-before:page;color:rgb(0,0,0)">Even if the "display-name" is empty, the "name-addr" form MUST be used if the "addr-spec" contains a comma, semicolon, or question mark.</pre>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Oct 13, 2020 at 3:39
          PM Sergiu Pojoga <<a href="mailto:pojogas@gmail.com"
            moz-do-not-send="true">pojogas@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 dir="ltr">Aren't the Contact params supposed to be
            delimited by semicolon?<br>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Tue, Oct 13, 2020 at
              1:06 PM David VILLAUME <<a
                href="mailto:david.villaume@sewan.fr" target="_blank"
                moz-do-not-send="true">david.villaume@sewan.fr</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 lang="FR">
                <div>
                  <p class="MsoNormal">Hello,</p>
                  <p class="MsoNormal"> </p>
                  <p class="MsoNormal"><span lang="EN-US">I see parsing
                      errors on 302 contact header that seems compliant
                      to RFC :
                    </span></p>
                  <p class="MsoNormal"><span lang="EN-US"> </span></p>
                  <p class="MsoNormal"><span lang="EN-US">Contact:<<a
                        moz-do-not-send="true">sip:172.16.0.21:5060</a>>;q=0.5,<<a
                        moz-do-not-send="true">sip:172.16.0.22:5060</a>>;q=0.25</span></p>
                  <p class="MsoNormal"><span lang="EN-US"> </span></p>
                  <p class="MsoNormal"><span lang="EN-US"><core>
                      [core/parser/parse_addr_spec.c:479]:
                      parse_to_param(): invalid character ',' in status
                      27: [;q=0.5]</span></p>
                  <p class="MsoNormal"><span lang="EN-US"> </span></p>
                  <p class="MsoNormal"><span lang="EN-US">Is there an
                      error in my contact or is it truly a parsing error
                      ?</span></p>
                  <p class="MsoNormal"><span lang="EN-US">               
                    </span></p>
                  <p class="MsoNormal"><span lang="EN-US">Regards,</span></p>
                  <p class="MsoNormal"><span lang="EN-US">David</span></p>
                  <p class="MsoNormal"><span lang="EN-US"> </span></p>
                </div>
              </div>
              _______________________________________________<br>
              Kamailio (SER) - Users Mailing List<br>
              <a href="mailto:sr-users@lists.kamailio.org"
                target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
              <a
                href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            </blockquote>
          </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>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>