<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Rahul,<br>
      <br>
      That define is used to calculate the the max VIA len when OpenSIPS
      is generating its own VIA headers. That max len does not impact
      the VIA headers which were received.<br>
      <br>
      I do not understand exactly (in your example) what's the flow of
      that VIA header. If you want, send me off-list the pcap/ngrep
      showing the SIP package (before and after OpenSIPS) and how it is
      affected.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 05.07.2016 20:57, Gupta, Rahul
      wrote:<br>
    </div>
    <blockquote
cite="mid:CY1PR15MB0441DC93DDC7E35C2830CF69F4390@CY1PR15MB0441.namprd15.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Exchange Server">
      <!-- converted from rtf -->
      <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
      <font face="Calibri" size="2"><span style="font-size:11pt;">
          <div>We are using opensips 1.11.5 as a stateless proxy and
            seeing a truncated Branch in Via for my REGISTER message.
            After some code digging, the MAX length is calculated using
            the following formula and seems like its truncating the
            branch after 55 characters.
            This is causing the REGISTER to fail in our case. Is there a
            config level solution to this ?</div>
          <div> </div>
          <div><b>#define MAX_BRANCH_PARAM_LEN  (MCOOKIE_LEN+8
              /*!&lt;int2hex*/ + 1 /*sep*/ + \</b></div>
          <div><b>                                MD5_LEN + 1
              /*!&lt;sep*/ + 8 /*int2hex*/ + \</b></div>
          <div><b>                                1 /*extra space,
              needed by t_calc_branch*/)</b></div>
          <div> </div>
          <div> </div>
          <div><font color="#1F497D">truncated from opensips <font
                face="Wingdings">ą       </font>Via: SIP/2.0/UDP
XX.XX.XX.XX:5060;branch=z9hG4bK0fddbbc9-1487-4755-a0b3-0c319155b8c3_0efbfc5e_11160                                                                             </font></div>
          <div><font color="#1F497D">Via from EndPoint    <font
                face="Wingdings">ą</font>                   Via:
              SIP/2.0/UDP
XX.XX.XX.XX:5060;branch=z9hG4bK0fddbbc9-1487-4755-a0b3-0c319155b8c3_0efbfc5e_11160<span
                style="background-color:yellow;">78</span><span
                style="background-color:yellow;">308924346</span><span
                style="background-color:yellow;">_MTAuMTIuMy4xMQ</span>            </font></div>
          <div> </div>
          <div> </div>
          <div style="margin-bottom:3pt;"><font face="Calibri Light"
              color="#1F4E79"><b>Thanks</b></font></div>
          <div style="margin-bottom:3pt;"><font face="Calibri Light"
              color="#1F4E79"><b>Rahul Gupta</b></font></div>
          <div> </div>
          <div> </div>
          <div><font face="Times New Roman" size="3"><span
                style="font-size:12pt;">DISCLAIMER: This e-mail may
                contain information that is confidential, privileged or
                otherwise protected from disclosure. If you are not an
                intended recipient of this e-mail, do not duplicate
                or redistribute it by any means. Please delete it and
                any attachments and notify the sender that you have
                received it in error. Unintended recipients are
                prohibited from taking action on the basis of
                information in this e-mail. E-mail messages may contain
                computer
                viruses or other defects, may not be accurately
                replicated on other systems, or may be intercepted,
                deleted or interfered with without the knowledge of the
                sender or the intended recipient. If you are not
                comfortable with the risks associated with e-mail
                messages,
                you may decide not to use e-mail to communicate with
                IPC. IPC reserves the right, to the extent and under
                circumstances permitted by applicable law, to retain,
                monitor and intercept e-mail messages to and from its
                systems. </span></font></div>
        </span></font>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>