<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Daniel and Henning,</p>
    <p>Thanks a lot for your answers, this will save me from wasting
      time on a dead end. 31x31 is plenty, so this is a way forward to
      workaround the current limitation in tm.</p>
    <p>Just to see if I understand you correctly, Daniel, regarding the
      record-routing bit: At first record routing is applied as usual,
      but when a looped request is received and forked to targets no
      record routing shall be applied?<br>
    </p>
    <p>As a side note I tried setting max_branches=31, but that was not
      accepted, so I changed to max_branches=30. Perhaps this simply
      implies that the first branch is enumerated as branch #0 ?</p>
    <p>Cheers,<br>
      Lars<br>
    </p>
    <div class="moz-cite-prefix">Den 2022-12-12 kl. 09:04, skrev
      Daniel-Constantin Mierla:<br>
    </div>
    <blockquote type="cite"
      cite="mid:9336597c-25a1-8577-2395-164d5e2725d1@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Hello,</p>
      <p>the value 32 for<span style="mso-bookmark:Logo">
          MAX_BRANCHES_LIMIT</span> is a constraint of tm internals
        which uses a 32 bitmap for some operations, going higher will
        require coding in tm module.</p>
      <p>The variant now is to loop one more through kamailio and you
        can get to 32x32 branches. By doing record route only on one
        step of looping, then you have this looping only for initial
        INVITE transaction, the re-INVITE, BYE, etc. will go straight.</p>
      <p>One more note, I am not sure and no time to check the code, one
        bit might be reserved in the bitmap, so it can be 31x31 branches
        after one local loop.</p>
      <p>Cheers,<br>
        Daniel<br>
      </p>
      <div class="moz-cite-prefix">On 10.12.22 13:02, Lars Jansson
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:b5291ddf-640e-f0f9-c125-2f01641dee02@solstiernan.nu">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <p>Hi,</p>
        <p>I am building a configuration script where for some traffic
          flows parallel forking will be needed, and in this case I need
          to go beyond the default max limit of the max amount of
          branches.</p>
        <p>Apart from this specific case the traffic load that kamailio
          will need to handle is very low, let's say just one second
          here and there with up to 5 concurrent calls at most.<br>
        </p>
        <p>This limit is as far as I understand set here: <span
            style="mso-bookmark:Logo">usr/local/src/kamailio-5.6/kamailio/src/core/config.h</span></p>
        <p><span style="mso-bookmark:Logo">And the default limit is:<br>
          </span><span style="mso-bookmark:Logo">#define
            MAX_BRANCHES_LIMIT              32      /*!< limit of
            maximum number of branches per transaction */</span></p>
        <p><span style="mso-bookmark:Logo">Here are the questions I have
            related to this:</span></p>
        <p><span style="mso-bookmark:Logo">1) If I increase the value of
            this constant in config.h, how high is it reasonable to set
            this value and still have a stable system?</span></p>
        <p><span style="mso-bookmark:Logo">2) If I increase </span><span
            style="mso-bookmark:Logo">MAX_BRANCHES_LIMIT beyond 32, are
            there also other parameters that needs to be changed for the
            system to be able to cope, and if so which</span><span
            style="mso-bookmark:Logo"></span><span
            style="mso-bookmark:Logo"></span> parameters?</p>
        <p>Regards,<br>
          Lars<br>
        </p>
        <br>
        <fieldset class="moz-mime-attachment-header"></fieldset>
        <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">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" moz-do-not-send="true">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a></pre>
    </blockquote>
  </body>
</html>