<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    On 3/14/11 9:42 AM, Stefan Tiedje wrote:
    <blockquote
cite="mid:78A68DD4B55ABD4CA9283A34B9AB60341048788E56@ESESSCMS0355.eemea.ericsson.se"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Exchange Server">
      <!-- converted from rtf -->
      <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
      <font size="2" face="Arial, sans-serif">
        <div>Hi,</div>
        <div>&nbsp;</div>
        <div>In the Kamailio OPENSER-MIB there is the counter
          "openserTotalNumFailedDialogSetups". This is a Counter32.</div>
        <div>The description is:</div>
        <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "The total number of calls that failed with an
          error. The following codes define a failed call:" </div>
        <div>&nbsp;</div>
        <div><b>Question:</b></div>
        <ul style="margin-top: 0pt; margin-bottom: 0pt; margin-left:
          19pt;">
          <li>I'm looking for the corresponding counter to
            "openserTotalNumFailedDialogSetups" who counts successful
            Dialog setups of Counter32 type. Does it exist?</li>
          <li>If not, does it exist a work around?</li>
          <li>Where in the code can the new suggested counter be added?</li>
          <li>Something else????</li>
        </ul>
      </font></blockquote>
    <br>
    the dialog module counts the number of processed dialogs, see:<br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules_k/dialog.html#id2966360">http://kamailio.org/docs/modules/stable/modules_k/dialog.html#id2966360</a><br>
    <br>
    There is no counter currently inside dialog module exporting exactly
    the number of successfully setup dialogs, it should not be hard to
    do it, though. Using the above and the number of failed and expired
    dialogs, you can actually get the number of successful dialogs.<br>
    <br>
    Dialog module being the one that tracks SIP dialogs, therefore being
    able to count them, now I don't know if snmpstats module exports all
    the counters from dialog module. I setup snmpstats just few weeks
    ago and works perfect on Ubuntu/Debian servers, but I had no need to
    check dialog module counters.<br>
    <br>
    Note that you can get the list of all internal statistics via
    kamctl:<br>
    - kamctl fifo get_statistics all<br>
    <br>
    Or via XMLRPC if you need them remotely in another application.<br>
    <br>
    Another option is to define your statistics with statistics module.
    Knowing that in SIP a successful call dialog means 200ok reply to an
    INVITE transaction, you can count it in the onreply_route[abc] that
    you arm for relayed transactions with t_on_reply("abc").<br>
    <br>
    Hope these help you,<br>
    Daniel<br>
    <br>
    <blockquote
cite="mid:78A68DD4B55ABD4CA9283A34B9AB60341048788E56@ESESSCMS0355.eemea.ericsson.se"
      type="cite"><font size="2" face="Arial, sans-serif">
        <div>&nbsp;</div>
        <div>Suggestion for the new counter is a name like:
          "openserTotalNumSucceededDialogSetups". It has a counter32.
          Description: "The total number of calls that succeeded" </div>
        <div>&nbsp;</div>
        <div>I know that there are the counters openserCurNumDialogs,
          openserCurNumDialogsInProgress and openserCurNumDialogsInSetup
          but these are of Gauge type who only reflects the current
          situation. These Gauge counters can't be used together with a
          Counter32 counter.
          That don't mix. The calculation done for the counter
          "openserCurNumDialogsInProgress" should be used where every
          new dialog setup is added to the new suggested counter. A
          counter of 32 should cover a great deal of connections. These
          counters are usually read,
          if used, every 15 minutes or 1 hour.</div>
        <div>&nbsp;</div>
        <div>&nbsp;</div>
        <div><b>Rationale:</b></div>
        <div>The reason for the new counter is that a calculation
          between succeeded and failed dialog setups can be done and be
          used for SLA agreements. Without this, its hard to make any
          customer versus provider agreements.</div>
        <div>&nbsp;</div>
        <div>&nbsp;</div>
        <div>/Stefan</div>
        <div>PS. Ask if anything is unclear and I need an answer
          rapidly.</div>
        <div>&nbsp;</div>
      </font>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>