<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Never ever send private emails - they will be discarded, keep the
    mailing list cc-ed.<br>
    <br>
    Iptel org is running SIP Express Router 3.1. Take a ngrep of the
    traffic and send it here, the hexa codes you send are not for humans
    to read, like we are here on mailing lists. Otherwise make a tar.gz
    of pcap file. SER changes content length only if it is an update to
    sdp (for nat traversal), otherwise is the one set by the other
    phone.<br>
    <br>
    Daniel<br>
    <br>
    On 10/27/10 12:21 PM, t wrote:
    <blockquote
      cite="mid:AANLkTim_Kf0_2sQivfn8eHaKkJ=yeVLWVpYutv5hC4oj@mail.gmail.com"
      type="cite">Thanks Daniel,<br>
      <br>
      fyi, the Content-Length doesn't match the actual length in the&nbsp;
      invite ok&nbsp; returned from <a moz-do-not-send="true"
        href="http://iptel.org">iptel.org</a> (213.192.59.75), and the
      same situation also occurs from <a moz-do-not-send="true"
        href="http://ekiga.net">ekiga.net</a>. <br>
      <br>
      libosip2 interprets the rfc as saying that this 'should' be
      correct. (and I buy this!).<br>
      <br>
      it looks like an openser (opensips?) quirk.<br>
      <br>
      anyway, I have put in code locally to fixup the Content-Length.<br>
      <br>
      Thanks,<br>
      Tony.<br>
      <br>
      &nbsp; 73 75 62 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e sub..Content-Len<br>
      &nbsp; 67 74 68 3a 20 20 20 32 30 31 0d 0a 0d 0a 76 3d gth:&nbsp;&nbsp; 201....v=<br>
      &nbsp; 30 0d 0a 6f 3d 74 77 69 6e 6b 6c 65 20 31 33 33 0..o=twinkle 133<br>
      &nbsp; 33 37 30 37 32 38 39 20 38 30 39 37 35 37 36 37 3707289 80975767<br>
      &nbsp; 33 20 49 4e 20 49 50 34 20 31 39 32 2e 31 36 38 3 IN IP4 192.168<br>
      &nbsp; 2e 32 35 34 2e 31 0d 0a 73 3d 2d 0d 0a 63 3d 49 .254.1..s=-..c=I<br>
      &nbsp; 4e 20 49 50 34 20 31 39 32 2e 31 36 38 2e 32 35 N IP4 192.168.25<br>
      &nbsp; 34 2e 31 0d 0a 74 3d 30 20 30 0d 0a 6d 3d 61 75 4.1..t=0 0..m=au<br>
      &nbsp; 64 69 6f 20 35 30 32 32 20 52 54 50 2f 41 56 50 dio 5022 RTP/AVP<br>
      &nbsp; 20 39 38 20 31 30 31 0d 0a 61 3d 72 74 70 6d 61&nbsp; 98 101..a=rtpma<br>
      &nbsp; 70 3a 39 38 20 73 70 65 65 78 2f 31 36 30 30 30 p:98 speex/16000<br>
      &nbsp; 0d 0a 61 3d 72 74 70 6d 61 70 3a 31 30 31 20 74 ..a=rtpmap:101 t<br>
      &nbsp; 65 6c 65 70 68 6f 6e 65 2d 65 76 65 6e 74 2f 38 elephone-event/8<br>
      &nbsp; 30 30 30 0d 0a 61 3d 66 6d 74 70 3a 31 30 31 20 000..a=fmtp:101
      <br>
      &nbsp; 30 2d 31 35 0d 0a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0-15..&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <br>
      <br>
      <div class="gmail_quote">On Wed, Oct 27, 2010 at 5:40 AM,
        Daniel-Constantin Mierla <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div text="#000000" bgcolor="#ffffff"> Hello,<br>
            <br>
            you claim that contact header is malformed or libosip2 has
            issues in parsing a good content header?<br>
            <br>
            In case of first option, can you tell what it believes is
            wrong. Your message is hard to follow since is not clear
            text, next time send only the text part.<br>
            <br>
            For the second option, you have to approach libosip2 support
            forums.<br>
            <br>
            Cheers,<br>
            Daniel
            <div>
              <div class="h5"><br>
                <br>
                On 10/25/10 10:44 PM, t wrote: </div>
            </div>
            <blockquote type="cite">
              <div>
                <div class="h5">Hi,<br>
                  <br>
                  Not sure how to provide this info (or even if anybody
                  cares), but libosip2 parser objects to incorrect
                  (short) Content-Length from <a moz-do-not-send="true"
                    href="http://iptel.org" target="_blank">iptel.org</a>.<br>
                  <br>
                  Regards,<br>
                  Tony.<br>
                </div>
              </div>
              <pre><fieldset></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<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>
</pre>
            </blockquote>
            <br>
            <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
          </div>
        </blockquote>
      </div>
      <br>
    </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></pre>
  </body>
</html>