<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks, patch was pushed to master branch.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 1/21/13 9:13 PM, Richard Brady
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAN5esQK6Lh_heZZAUp2ugTmfscN5jZSvOtkFu2VPuvYT5v2ixQ@mail.gmail.com"
      type="cite">Patch attached.
      <div><br>
      </div>
      <div>Should this be cross posted to [sr-dev] if it contains a
        patch?</div>
      <div><br>
      </div>
      <div>Richard<br>
        <br>
        <div class="gmail_quote">On 7 January 2013 01:10, Richard Brady
          <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:rnbrady@gmail.com" target="_blank">rnbrady@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Agreed,
            doesn't make sense to me either.
            <div><br>
            </div>
            <div>The code is in the decode2format function in
              siputils/contact_ops.c:</div>
            <div><br>
            </div>
            <div>
              <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (((*pos) == '&gt;')||(*pos
                == ';'))</div>
              <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div>
              <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* invalid chars
                inside username part */</div>
              <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return -5;</div>
              <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
              <div><br>
              </div>
              <div>The ABNF in RFC3261 makes it clear that a semicolon
                is ok in the user-info field:</div>
              <div><br>
              </div>
              <div>
                <div>userinfo &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp;( user / telephone-subscriber )
                  [ ":" password ] "@"</div>
                <div>user &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp;1*( unreserved / escaped /
                  user-unreserved )</div>
                <div>user-unreserved &nbsp;= &nbsp;"&amp;" / "=" / "+" / "$" / ","
                  / ";" / "?" / "/"</div>
              </div>
              <div><br>
              </div>
              <div>The code might be to check for the end of a URI (both
                those characters terminate a URI under certain
                circumstances), perhaps for fault tolerance and/or
                security but I don't think it's been done in a way that
                makes sense, for the following reasons:</div>
              <div><br>
              </div>
              <div>1. An angle bracket is not legal in or surrounding a
                request URI, so it should be picked up by the parser
                and/or sanity check.&nbsp;</div>
              <div>2. A semicolon is totally legal in the userinfo part,
                as per ABNF and also as explained in RFC3261:</div>
              <div><br>
              </div>
              <div>&nbsp; &nbsp;...</div>
              <div>&nbsp; &nbsp;<a class="moz-txt-link-freetext" href="sip:alice;day=">sip:alice;day=</a><a moz-do-not-send="true"
                  href="mailto:tuesday@atlanta.com" target="_blank">tuesday@atlanta.com</a></div>
              <div><br>
              </div>
              <div>&nbsp; &nbsp;The last sample URI above has a user field value
                of</div>
              <div>
                &nbsp; &nbsp;"alice;day=tuesday". &nbsp;The escaping rules defined
                above allow a</div>
              <div>&nbsp; &nbsp;semicolon to appear unescaped in this field. &nbsp;For
                the purposes of</div>
              <div>&nbsp; &nbsp;this protocol, the field is opaque. &nbsp;The structure
                of that value is</div>
              <div>&nbsp; &nbsp;only useful to the SIP element responsible for the
                resource.</div>
              <div><br>
              </div>
              <div>So I have raised bug FS#263:&nbsp;<a
                  moz-do-not-send="true"
href="http://sip-router.org/tracker/index.php?do=details&amp;task_id=263"
                  target="_blank">http://sip-router.org/tracker/index.php?do=details&amp;task_id=263</a></div>
              <div>
                <br>
              </div>
              <div>
                Richard</div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div class="gmail_quote">
                <div>
                  <div class="h5">On 3 January 2013 13:28, Gareth
                    Rylance <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:gareth@rylance.me.uk"
                        target="_blank">gareth@rylance.me.uk</a>&gt;</span>
                    wrote:<br>
                  </div>
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div>
                    <div class="h5">
                      <div dir="ltr">Anyone?
                        <div><br>
                        </div>
                        <div>If no one objects I will submit a patch
                          with it removed.</div>
                      </div>
                      <div>
                        <div>
                          <div class="gmail_extra"><br>
                            <br>
                            <div class="gmail_quote">On 18 December 2012
                              09:11, Gareth Rylance <span dir="ltr">&lt;<a
                                  moz-do-not-send="true"
                                  href="mailto:gareth@rylance.me.uk"
                                  target="_blank">gareth@rylance.me.uk</a>&gt;</span>
                              wrote:<br>
                              <blockquote class="gmail_quote"
                                style="margin:0 0 0 .8ex;border-left:1px
                                #ccc solid;padding-left:1ex">
                                <div dir="ltr">
                                  <div>
                                    <div>When using the siputils
                                      function &nbsp;encode_contact() on a
                                      message that contains a user
                                      parameter e.g.</div>
                                    <div><br>
                                    </div>
                                    <div><a class="moz-txt-link-rfc2396E" href="sip:XXXXX00015;phone-context=national@10.YYY.1.92;user=phone">&lt;sip:XXXXX00015;phone-context=national@10.YYY.1.92;user=phone&gt;</a>;tag=88930</div>
                                  </div>
                                  <div><br>
                                  </div>
                                  <div>it encodes fine e.g.</div>
                                  <div><br>
                                  </div>
                                  <div><a class="moz-txt-link-rfc2396E" href="sip:natted_ua*sip:XXXXX00015;phone-context=national**192.168.242.102*5080*udp@10.YYY.70.100">&lt;sip:natted_ua*sip:XXXXX00015;phone-context=national**192.168.242.102*5080*udp@10.YYY.70.100&gt;</a><br>
                                  </div>
                                  <div><br>
                                  </div>
                                  <div>but decode_contact() errors due
                                    to the ";" (there is an explicit
                                    check for it in the code)</div>
                                  <div><br>
                                  </div>
                                  <div>I am currently working round this
                                    using</div>
                                  <div><br>
                                  </div>
                                  <div>$rU = $(rU{s.replace,;,:});</div>
                                  <div><br>
                                  </div>
                                  <div>to remove the ; as the user part
                                    is not needed for my&nbsp;application.</div>
                                  <div><br>
                                  </div>
                                  <div>Would it be safe to remove the
                                    check for ";" ?</div>
                                  <span><font color="#888888">
                                      <div><br>
                                      </div>
                                      <div>Gareth</div>
                                      <div><br>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div>&nbsp;</div>
                                      <div><span
                                          style="white-space:pre-wrap">
                                        </span></div>
                                      <div><br>
                                      </div>
                                    </font></span></div>
                              </blockquote>
                            </div>
                            <br>
                          </div>
                        </div>
                      </div>
                      <br>
                    </div>
                  </div>
                  _______________________________________________<br>
                  SIP Express Router (SER) and Kamailio (OpenSER) -
                  sr-users mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:sr-users@lists.sip-router.org"
                    target="_blank">sr-users@lists.sip-router.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                    target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                  <br>
                </blockquote>
              </div>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, April 16-17, 2013, Berlin
 - <a class="moz-txt-link-freetext" href="http://conference.kamailio.com">http://conference.kamailio.com</a> -</pre>
  </body>
</html>