<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>you have to execute ds_load_update() when routing the BYE via
      your kamailio.cfg, i.e., inside route[WITHINDLG] if you have a
      config built on the default one.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 27.11.18 17:03, David Villasmil
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFGRPVr74_oUnKai+dAzSufLQwFuSZ3j3mM=hjTPcpV4fgbfYg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">Do i need to remove the load manually with
          `ds_load_update()` ??</div>
        <div dir="ltr"><br clear="all">
          <div>
            <div dir="ltr" class="gmail_signature">
              <div dir="ltr">
                <div>Regards,</div>
                <div><br>
                </div>
                David Villasmil
                <div>email: <a
                    href="mailto:david.villasmil.work@gmail.com"
                    target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
                <div>phone: +34669448337</div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <div hspace="streak-pt-mark" style="max-height:1px"><img alt=""
          style="width:0px;max-height:0px;overflow:hidden"
src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=b8e05d5e-64b1-4b4e-a327-31003b168ab8"
          moz-do-not-send="true"><font size="1" color="#ffffff">ᐧ</font></div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Tue, Nov 27, 2018 at 3:58 PM David Villasmil
          <<a href="mailto:david.villasmil.work@gmail.com"
            moz-do-not-send="true">david.villasmil.work@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">Hello guys,
                  <div><br>
                  </div>
                  <div>I'm testing the dispatcher with the dialog
                    module.</div>
                  <div>After making several test calls, which are
                    properly routed, the number of dialogs stay there
                    for a while, preventing new calls from going to
                    those destinations:</div>
                  <div><br>
                  </div>
                  <div>
                    <div><font face="monospace, monospace">       
                        "SET":  {</font></div>
                    <div><font face="monospace, monospace">         
                        "ID": 101,</font></div>
                    <div><font face="monospace, monospace">         
                        "TARGETS":  [{</font></div>
                    <div><font face="monospace, monospace">             
                        "DEST": {</font></div>
                    <div><font face="monospace, monospace">             
                          "URI":  "sip:<a href="http://1.2.3.4:5080"
                          target="_blank" moz-do-not-send="true">1.2.3.4:5080</a>",</font></div>
                    <div><font face="monospace, monospace">             
                          "FLAGS":  "AP",</font></div>
                    <div><font face="monospace, monospace">             
                          "PRIORITY": 0,</font></div>
                    <div><font face="monospace, monospace">             
                          "ATTRS":  {</font></div>
                    <div><font face="monospace, monospace">             
                            "BODY":
                        "weight=100;maxload=10;duid=bedd39c7-6c73-4477-ae7d-77f8cdc96797",</font></div>
                    <div><font face="monospace, monospace">             
                            "DUID":
                        "bedd39c7-6c73-4477-ae7d-77f8cdc96797",</font></div>
                    <div><font face="monospace, monospace">             
                            "MAXLOAD":  10,</font></div>
                    <div><font face="monospace, monospace">             
                            "WEIGHT": 100,</font></div>
                    <div><font face="monospace, monospace">             
                            "RWEIGHT":  0,</font></div>
                    <div><font face="monospace, monospace">             
                            "SOCKET": ""</font></div>
                    <div><font face="monospace, monospace">             
                          },</font></div>
                    <div><font face="monospace, monospace">             
                          "RUNTIME":  {</font></div>
                    <div><font face="monospace, monospace">             
                            "DLGLOAD":  10</font></div>
                    <div><font face="monospace, monospace">             
                          }</font></div>
                    <div><font face="monospace, monospace">             
                        }</font></div>
                    <div><font face="monospace, monospace">           
                        }]</font></div>
                    <div><br>
                    </div>
                    <div>The calls have been down for several seconds,
                      but the "DLGLOAD" parameter doesn't go down, even
                      though</div>
                    <div><br>
                    </div>
                    <div>/usr/local/kamailio5/sbin/kamctl', 'dialog',
                      'show<br>
                    </div>
                    <div><br>
                    </div>
                    <div>Output the correct amount of dialogs.</div>
                    <div><br>
                    </div>
                    <div>I set the dialog handler just before relaying
                      out:</div>
                    <div><br>
                    </div>
                    <div>
                      <div>    t_on_failure("RTF_DISPATCH");</div>
                      <div>    set_dlg_profile("gateways","$du");</div>
                      <div>    route(RELAY);</div>
                    </div>
                    <div><br>
                    </div>
                    <div>And the module is supposed to remove them
                      automatically.</div>
                    <div><br>
                    </div>
                    <div>Am i doing something wrong?</div>
                    <div><br>
                    </div>
                    <div>
                      <div dir="ltr"
                        class="m_6260969590990742883gmail_signature">
                        <div dir="ltr">
                          <div>Regards,</div>
                          <div><br>
                          </div>
                          David Villasmil
                          <div>email: <a
                              href="mailto:david.villasmil.work@gmail.com"
                              target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
                          <div>phone: +34669448337</div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div hspace="streak-pt-mark" style="max-height:1px"><img
              alt="" style="width:0px;max-height:0px;overflow:hidden"
src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=3c668f35-f3a3-492d-9477-ea0a32941579"
              moz-do-not-send="true"><font size="1" color="#ffffff">ᐧ</font></div>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">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">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>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
  </body>
</html>