<div dir="ltr">Daniel,<div>understood,</div><div>I checked by state and it is OK:</div><div><br></div><div><div># kamctl fifo dlg_list |grep 'state:: 4' |wc -l</div><div>121</div><div><br></div><div># kamctl fifo get_statistics dialog:</div><div>dialog:active_dialogs = 122</div><div>dialog:early_dialogs = 0</div><div>dialog:expired_dialogs = 280</div><div>dialog:failed_dialogs = 33181</div><div>dialog:processed_dialogs = 378572</div></div><div><br></div><div>Thanks and regards,</div><div>Takeshi.</div><div><br></div><div><br></div><div>Obs: for reference for other that might need to check this:</div><div><br></div><div><div>/* states of a dialog */</div><div>#define DLG_STATE_UNCONFIRMED  1 /*!< unconfirmed dialog */</div><div>#define DLG_STATE_EARLY        2 /*!< early dialog */</div><div>#define DLG_STATE_CONFIRMED_NA 3 /*!< confirmed dialog without a ACK yet */</div><div>#define DLG_STATE_CONFIRMED    4 /*!< confirmed dialog */</div><div>#define DLG_STATE_DELETED      5 /*!< deleted dialog */</div><div><br></div><div>From: kamailio-4.1/modules/dialog/dlg_hash.h</div><div><br></div></div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 6, 2015 at 7:04 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    look at the details of the dialogs, some of them might be in
    terminated state and therefore no longer in actitive_dialog counter.<br>
    <br>
    The ones in terminated state should be removed from dlg_list with
    the next cleanup timer.<br>
    <br>
    Cheers,<br>
    Daniel<div><div class="h5"><br>
    <br>
    <div>On 06/02/15 08:59, mayamatakeshi wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>Hello,</div>
        <div><br>
        </div>
        <div>I am counting the number o dialogs using this:</div>
        <div><br>
        </div>
        <div># kamctl fifo dlg_list |grep dialog:: |wc -l</div>
        <div>126</div>
        <div><br>
        </div>
        <div>However when I use 'get_statistics dialog:' I get this:</div>
        <div><br>
        </div>
        <div># kamctl fifo get_statistics dialog:</div>
        <div>dialog:active_dialogs = 67</div>
        <div>dialog:early_dialogs = 3</div>
        <div>dialog:expired_dialogs = 253</div>
        <div>dialog:failed_dialogs = 29529</div>
        <div>dialog:processed_dialogs = 338783</div>
        <div><br>
        </div>
        <div>The number of dialogs don't match (i tested this several
          times).</div>
        <div>What could be causing this? (I am using kamailio 4.1).</div>
        <div>Regards,</div>
        <div>Takeshi</div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class=""><font color="#888888">
</font></span></pre><span class=""><font color="#888888">
    </font></span></blockquote><span class=""><font color="#888888">
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a></pre>
  </font></span></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div></div>