<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    thanks, it was fixed on master and backported to 4.1 branch.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 12/6/13 10:50 AM, Tuan Viet Nguyen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACkmdBMExYaq8YHi6_JhjPjENJu9_Ez457sVk8URD-feGn9gfw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hello,<br>
          <br>
        </div>
        It seems that when calling the function sdp_get_line_startswith,
        it removes the \r (0d in hexa) from the SIP message before
        forwarding it. In the code (sdpops_mod.c) from line 1402 to
        1406, we see that<br>
              <br>
        <div>// remove ending \r\n if exists<br>
                if (avp_val.s.s[line.len-2] == '\r' &&
          avp_val.s.s[line.len-1] == '\n')<br>
                {    <br>
                    avp_val.s.s[line.len-2] = '\0';<br>
                    avp_val.s.len -= 2;<br>
                }    <br>
          <br>
        </div>
        <div>As avp_val is the pointer pointing directly to the line in
          the message, all modification made to this variable will also
          be applied to the message. <br>
          <br>
          Am I wrong?<br>
          <br>
        </div>
        Regards,<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></pre>
  </body>
</html>