<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>it was a reply to my email where I mentioned the route_locks_size
      parameter. As he said he looked at that parameter, I assumed it
      was about the route_locks_size, because there was not other
      parameter listed in the emails. So using the route_locks_size
      parameter doesn't require to use dialog module.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 09.04.20 10:29, Henning Westerholt
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:VI1PR05MB4590F826072AFC7CF96EE0DBC5C10@VI1PR05MB4590.eurprd05.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI Emoji";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New",serif;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;}
span.E-MailFormatvorlage22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hello,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">I mentioned in some of earlier e-mails as one
            possible option to track the state of a dialog and to act
            depending on it.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">Cheers,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">Henning<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <div>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB">-- <o:p>
              </o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB">Henning Westerholt –
            </span><span style="mso-fareast-language:EN-US"><a
                href="https://skalatan.de/blog/" moz-do-not-send="true"><span
                  style="color:#0563C1" lang="EN-GB">https://skalatan.de/blog/</span></a></span><span
              style="mso-fareast-language:EN-US" lang="EN-GB"><o:p></o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB">Kamailio services –
            </span><span style="mso-fareast-language:EN-US"><a
                href="https://gilawa.com/" moz-do-not-send="true"><span
                  style="color:#0563C1" lang="EN-GB">https://gilawa.com</span></a></span><span
              style="mso-fareast-language:EN-US">
              <span lang="EN-GB"><o:p></o:p></span></span></p>
        </div>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b>
              Daniel-Constantin Mierla <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a>
              <br>
              <b>Sent:</b> Thursday, April 9, 2020 9:48 AM<br>
              <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:luis.rojas@sixbell.com">luis.rojas@sixbell.com</a>; Kamailio (SER) - Users
              Mailing List <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org"><sr-users@lists.kamailio.org></a>; Henning
              Westerholt <a class="moz-txt-link-rfc2396E" href="mailto:hw@skalatan.de"><hw@skalatan.de></a><br>
              <b>Subject:</b> Re: [SR-Users] Kamailio propagates 180 and
              200 OK OUT OF ORDER<o:p></o:p></p>
          </div>
        </div>
        <p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
        <p style="margin-left:35.4pt">Hello,<o:p></o:p></p>
        <div>
          <p class="MsoNormal" style="margin-left:35.4pt">On 08.04.20
            23:03, Luis Rojas G. wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <div>
            <p class="MsoNormal" style="margin-left:35.4pt">Hello,
              Daniel,<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:35.4pt">I looked
              into that parameter, but  I need to use with the dialog
              module, and I'm pretty afraid to use that.<o:p></o:p></p>
          </div>
        </blockquote>
        <p style="margin-left:35.4pt">who said or where is written than
          you need to load the dialog module? You definitely don't.<o:p></o:p></p>
        <p style="margin-left:35.4pt">Cheers,<br>
          Daniel<o:p></o:p></p>
        <p style="margin-left:35.4pt"><o:p> </o:p></p>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <div>
            <p class="MsoNormal" style="margin-left:35.4pt">I was
              looking more into the stateless proxy, because I need to
              process a lot of traffic.<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:35.4pt">My target is
              4200CAPS. with duration between 90s and 210. Let's say,
              150 seconds. That would mean 630.000 simultaneous dialogs.
              I don't think the solution can go that way.<br>
              <br>
              it would really help me to be able to use completely
              stateless proxy plus Async in reply_route(), to introduce
              an artificial delay before forwarding 200 OK to Invite..
              As someone mentioned, it would help me on request_route(),
              for race conditions between ACK and Re-Invite.<br>
              <br>
              Any idea why Async is not allowed in reply_route()?<br>
              <br>
              Best regards,<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal"
style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:35.4pt">Luis<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:35.4pt">On 4/8/20
              1:07 PM, Daniel-Constantin Mierla wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <p style="margin-left:35.4pt">Hello,<o:p></o:p></p>
            <p style="margin-left:35.4pt">you have to keep in mind that
              Kamailio is a SIP packet router, not a telephony engine.
              If 180 and 200 replies are part of a call is not something
              that Kamailio recognize at its core. Its main goal is to
              route out as fast as possible what is received, by
              executing the configuration file script. Now, a matter of
              your configuration file, processing of some SIP messages
              can take longer than processing other. And the processing
              is done in parallel, a matter of children parameter (and
              tcp_children, sctp_children).<o:p></o:p></p>
            <p style="margin-left:35.4pt">With that in mind, a way to
              try to cope better with the issue you face is to set
              route_locks_size parameter, see:<o:p></o:p></p>
            <p style="margin-left:35.4pt">  * <a
href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kamailio.org%2Fwiki%2Fcookbooks%2Fdevel%2Fcore%23route_locks_size&data=02%7C01%7C%7C1bde0e5c47434fa230df08d7dbdf4eb4%7Cab4a33c2b5614f798601bc921698ad08%7C0%7C0%7C637219624481963069&sdata=CWh4qvJwYloHLPCOFUdVXRuge3l2rvuAUDM6FBNjFMA%3D&reserved=0"
                moz-do-not-send="true">
https://www.kamailio.org/wiki/cookbooks/devel/core#route_locks_size</a><o:p></o:p></p>
            <p style="margin-left:35.4pt">Probably is what you look for.<o:p></o:p></p>
            <p style="margin-left:35.4pt">But if you want more tight
              constraints, like when receiving a 180 after a 200ok and
              not route it out, you have to make the logic in
              configuration file by combining modules such as dialog or
              htable (as already suggested).<o:p></o:p></p>
            <p style="margin-left:35.4pt">Cheers,<br>
              Daniel</p>
          </blockquote>
        </blockquote>
      </div>
    </blockquote>
    <o:p></o:p>
    <blockquote type="cite"
cite="mid:VI1PR05MB4590F826072AFC7CF96EE0DBC5C10@VI1PR05MB4590.eurprd05.prod.outlook.com">
      <div class="WordSection1">
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
  </body>
</html>