<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Unfortunately the design of the dialog statistics, which are
      basically just counters, do not allow dealing easy with
      retransmissions or duplicate operations that can happen with dmq.
      That was the reason to add the rpc command to scan what the dialog
      module has internally. Probably the dialog statistics should be
      diabled when dmq is enabled or switched to use function callbacks
      behind and to the scanning mechanism as well, but some of them
      won't be possible with callbacks without refactoring.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 20.10.20 02:28, Sergiu Pojoga wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJZsGCk1yU38T2tgpxfGSLsmi-q5+rxm6zzedoW45uspyyDzOA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Sorry to insist but... looks like it's not just the
        active_dialogs stats that's messed up. Early_dialogs are also
        often erroneous and the dialog counters don't match
        against different RPCs.<br>
        <div><br>
        </div>
        <div>What would the devs like me to do with this: drop it, open
          another GitHub issue? </div>
        <div> <br>
        </div>
        <div># kamcmd dlg.stats_active && kamcmd
          stats.get_statistics all | grep dialog<br>
          {<br>
           starting: 0<br>
           connecting: 0<br>
           answering: 0<br>
           ongoing: 2<br>
           all: 2<br>
          }<br>
          dialog:active_dialogs = 20<br>
          dialog:early_dialogs = 18446744073709551614<br>
          dialog:expired_dialogs = 0<br>
          dialog:failed_dialogs = 6978<br>
          dialog:processed_dialogs = 11248<br>
        </div>
        <div><br>
        </div>
        <div># kamcmd dmq.list_nodes<br>
        </div>
        <div>{<br>
           host: 65.xx.xx.11<br>
           port: 5062<br>
           resolved_ip: 65.xx.xx.11<br>
           status: active<br>
           last_notification: 0<br>
           local: 0<br>
          }<br>
          {<br>
           host: 65.xx.xx.22<br>
           port: 5062<br>
           resolved_ip: 65.xx.xx.22<br>
           status: active<br>
           last_notification: 0<br>
           local: 1<br>
          }<br>
        </div>
        <div><br>
        </div>
        <div># kamailio -v<br>
          version: kamailio 5.3.4 (x86_64/linux) fc28a1<br>
        </div>
        <div><br>
        </div>
        <div>Thanks.</div>
        <div>--Sergiu</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, Oct 16, 2020 at 5:10
          PM Sergiu Pojoga <<a href="mailto:pojogas@gmail.com"
            moz-do-not-send="true">pojogas@gmail.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">Hi Joel,<br>
            <div><br>
            </div>
            <div>Thanks, that's precisely it! </div>
            <div><br>
            </div>
            <div>Indeed, `dlg.stats_active` works correctly and what's
              nice about it is that it shows stats summary from all DMQ
              nodes combined. However, I use xHTTP_PROM module to export
              my stats, which seems to rely on the 'problematic'
              counters. Sad... Let's hope this gets resolved one day.</div>
            <div><br>
            </div>
            <div>Regards,</div>
            <div>--Sergiu </div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Fri, Oct 16, 2020 at
              4:17 PM Joel Serrano <<a
                href="mailto:joel@textplus.com" target="_blank"
                moz-do-not-send="true">joel@textplus.com</a>> wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">Hey Sergiu, 
                <div><br>
                </div>
                <div>I think I've been through a similar case... have a
                  look at: <a
                    href="https://github.com/kamailio/kamailio/issues/1591"
                    target="_blank" moz-do-not-send="true">https://github.com/kamailio/kamailio/issues/1591</a>
                  in case you find it helpful.</div>
                <div><br>
                </div>
                <div>You might have to rely on the different metric that
                  Daniel added.</div>
                <div><br>
                </div>
                <div>Joel.</div>
                <div><br>
                </div>
                <div><br>
                </div>
              </div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">On Fri, Oct 16, 2020
                  at 3:35 AM Sergiu Pojoga <<a
                    href="mailto:pojogas@gmail.com" target="_blank"
                    moz-do-not-send="true">pojogas@gmail.com</a>>
                  wrote:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0px 0px
                  0px 0.8ex;border-left:1px solid
                  rgb(204,204,204);padding-left:1ex">
                  <div dir="auto">
                    <div>Hi Daniel,
                      <div dir="auto"><br>
                      </div>
                      <div dir="auto">You guessed right, two dmq nodes
                        with dialog replication. </div>
                      <div dir="auto"><br>
                      </div>
                      <div dir="auto">Thanks,</div>
                      <br>
                      <br>
                      <div class="gmail_quote">
                        <div dir="ltr" class="gmail_attr">On Fri., Oct.
                          16, 2020, 2:15 a.m. Daniel-Constantin Mierla,
                          <<a href="mailto:miconda@gmail.com"
                            target="_blank" moz-do-not-send="true">miconda@gmail.com</a>>
                          wrote:<br>
                        </div>
                        <blockquote class="gmail_quote"
                          style="margin:0px 0px 0px
                          0.8ex;border-left:1px solid
                          rgb(204,204,204);padding-left:1ex">
                          <div>
                            <p>Hello,</p>
                            <p>is this happening when using dmq for
                              dialog with multiple sip servers? Or is a
                              single instance sip server?<br>
                            </p>
                            <p>Cheers,<br>
                              Daniel<br>
                            </p>
                            <div>On 16.10.20 04:12, Sergiu Pojoga wrote:<br>
                            </div>
                            <blockquote type="cite">
                              <div dir="ltr">Hi there,<br>
                                <div><br>
                                </div>
                                <div>Every now and then, the value of
                                  active dialogs metric spikes to an
                                  erroneous huge number, messing up my
                                  otherwise beautiful grafana gauges :(</div>
                                <div><br>
                                </div>
                                <div>Example:</div>
                                <div>kamailio_dialog_active_dialogs
                                  18446744073709551614 1602812239115<br>
                                  kamailio_dialog_early_dialogs 0
                                  1602812239115<br>
                                  kamailio_dialog_expired_dialogs 2
                                  1602812239115<br>
                                  kamailio_dialog_failed_dialogs 7361
                                  1602812239115<br>
                                </div>
                                <div><br>
                                </div>
                                <div>Anybody faced the same symptoms,
                                  any clues what might be causing this?</div>
                                <div><br>
                                </div>
                                <div>Thanks,</div>
                                <div>--Sergiu</div>
                              </div>
                              <br>
                              <fieldset></fieldset>
                              <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                            </blockquote>
                            <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" rel="noreferrer" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.paypal.me/dcmierla</a></pre>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                  _______________________________________________<br>
                  Kamailio (SER) - Users Mailing List<br>
                  <a href="mailto:sr-users@lists.kamailio.org"
                    target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                  <a
                    href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                </blockquote>
              </div>
              _______________________________________________<br>
              Kamailio (SER) - Users Mailing List<br>
              <a href="mailto:sr-users@lists.kamailio.org"
                target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
              <a
                href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            </blockquote>
          </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>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>