<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6002.18494" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=012163607-17102011><FONT face=Arial
color=#0000ff size=2>Great!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=012163607-17102011><FONT face=Arial
color=#0000ff size=2>/Stefan</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Daniel-Constantin Mierla
[mailto:miconda@gmail.com] <BR><B>Sent:</B> den 17 oktober 2011
09:36<BR><B>To:</B> SIP Router - Kamailio (OpenSER) and SIP Express Router (SER)
- Users Mailing List<BR><B>Cc:</B> Stefan Tiedje<BR><B>Subject:</B> Re:
[SR-Users] OPENSER MIB<BR></FONT><BR></DIV>
<DIV></DIV>Hello,<BR><BR>just to conclude this thread, for archiving and future
searches, the upcoming 3.2.0 (planned for tomorrow), exports via snmpstats the
counter with all processed dialogs. Therefore, making the difference against
failed dialogs counter will result in the total number of answered
calls.<BR><BR>Cheers,<BR>Daniel<BR><BR>On 3/22/11 5:54 PM, Daniel-Constantin
Mierla wrote:
<BLOCKQUOTE cite=mid:4D88D435.5030104@gmail.com type="cite">Hello,<BR><BR>On
3/15/11 1:22 PM, Stefan Tiedje wrote:
<BLOCKQUOTE
cite=mid:78A68DD4B55ABD4CA9283A34B9AB6034104883D2E4@ESESSCMS0355.eemea.ericsson.se
type="cite">
<META content="MSHTML 6.00.6001.18565" name=GENERATOR>
<DIV dir=ltr align=left><SPAN class=431511812-15032011><FONT face=Arial
color=#0000ff size=2>Have no chance at all to help with the
patch.</FONT></SPAN></DIV></BLOCKQUOTE>ok :-) . late reply -- I was several
days off.
<BLOCKQUOTE
cite=mid:78A68DD4B55ABD4CA9283A34B9AB6034104883D2E4@ESESSCMS0355.eemea.ericsson.se
type="cite">
<DIV dir=ltr align=left><SPAN class=431511812-15032011></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=431511812-15032011><FONT face=Arial
color=#0000ff size=2>Will the patch be added to release 3.1.1
release?</FONT></SPAN></DIV></BLOCKQUOTE><BR>. It is very unlikely to backport
new features in stable branches, however, when the patch will be done for
devel branch should work also on 3.1.x since there were no other changes in
devel vs 3.1.<BR><BR>Cheers,<BR>Daniel<BR><BR>
<BLOCKQUOTE
cite=mid:78A68DD4B55ABD4CA9283A34B9AB6034104883D2E4@ESESSCMS0355.eemea.ericsson.se
type="cite">
<DIV dir=ltr align=left><SPAN class=431511812-15032011><FONT face=Arial
color=#0000ff size=2>/Stefan</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Daniel-Constantin Mierla [<A
class=moz-txt-link-freetext href="mailto:miconda@gmail.com"
moz-do-not-send="true">mailto:miconda@gmail.com</A>] <BR><B>Sent:</B> den 14
mars 2011 15:39<BR><B>To:</B> SIP Router - Kamailio (OpenSER) and SIP
Express Router (SER) - Users Mailing List<BR><B>Cc:</B> Stefan
Tiedje<BR><B>Subject:</B> Re: [SR-Users] OPENSER
MIB<BR></FONT><BR></DIV><BR><BR>On 3/14/11 12:33 PM, Daniel-Constantin
Mierla wrote:
<BLOCKQUOTE cite=mid:4D7DFCF5.7060407@gmail.com type="cite">Hello
Stefan,<BR><BR><BR>On 3/14/11 11:03 AM, Stefan Tiedje wrote:
<BLOCKQUOTE
cite=mid:78A68DD4B55ABD4CA9283A34B9AB60341048788F88@ESESSCMS0355.eemea.ericsson.se
type="cite">
<META content="MSHTML 6.00.6001.18565" name=GENERATOR>
<DIV dir=ltr align=left><SPAN class=131233009-14032011><FONT face=Arial
color=#0000ff size=2>Thanks for the answer.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class=131233009-14032011></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=131233009-14032011><FONT face=Arial
color=#0000ff size=2>Maybe I have some older versions of the OPENSER-MIB
and the other related MIB's since I could not find the counter you
pointed at. I'm using a MIB browser for reading the
MIB's.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=131233009-14032011><FONT face=Arial
color=#0000ff size=2>Is the suggested counter "expired dialogs" added in
a specific release of Kamailio? Which? We use Kamailio
3.0.2.</FONT></SPAN></DIV></BLOCKQUOTE>I used Kamailio and recommend using
it sine it has the latest commits for stability.<BR></BLOCKQUOTE> ...
^^^ ... obviously this was incomplete phrase, it meant to be: "I used
Kamailio 3.1.2 and recommend using it since it has the latest commits for
stability".<BR><BR>I can add also that I got more familiar in configuring it
with snmpstats on debian/ubuntu, so it would be easier for me to give hints
as well as add new features since it is the same as devel
version.<BR><BR>Cheers,<BR>Daniel<BR><BR>
<BLOCKQUOTE cite=mid:4D7DFCF5.7060407@gmail.com type="cite"><BR>However,
what I wrote before is pretty much not related to the version. There is a
counter that tracks the processed dialogs, but seems it is not exported by
default through snmpstats module. The statistics counter is named
"processed_dialogs", implemented by dialog module.<BR><BR>You can dump all
internal statistics through kamctl or via xmlrpc command, but probably to
export it through snmpstats you may need to extend the mibs and the code
of the module.<BR><BR>I just grepped the sources of snmpstats module to
see what dialog statistics it is exporting:<BR><BR>$ grep -n _dialogs
modules_k/snmpstats/* | grep
get_statistic<BR>modules_k/snmpstats/alarm_checks.c:83:
num_dialogs =
get_statistic("active_dialogs");<BR>modules_k/snmpstats/snmpObjects.c:404:
int result =
get_statistic("active_dialogs");<BR>modules_k/snmpstats/snmpObjects.c:424:
get_statistic("active_dialogs")
-<BR>modules_k/snmpstats/snmpObjects.c:425:
get_statistic("early_dialogs");<BR>modules_k/snmpstats/snmpObjects.c:443:
int result =
get_statistic("early_dialogs");<BR>modules_k/snmpstats/snmpObjects.c:459:
int result =
get_statistic("failed_dialogs");<BR>modules_k/snmpstats/snmpObjects.c:508:
int num_dialogs = get_statistic("active_dialogs");<BR><BR>Perhaps when the
snmpstats was developed the dialog module didn't export the statistics
counter of "processed_dialogs" and then it was not updated.<BR><BR>Now,
what I tried to say is that if the "processed_dialogs" counter is not
available through snmpstats (and it is not now after grepping the sources)
you can get its value from another application through "kamctl
get_statistics all" or XMLRPC command for all of the existing kamailio
releases. Upcoming one we will look to implement the export through
snmpstats as well. If you have time to do it and send us a patch, we will
gladly commit it to source tree in our GIT
repository.<BR><BR>Cheers,<BR>Daniel<BR>
<BLOCKQUOTE
cite=mid:78A68DD4B55ABD4CA9283A34B9AB60341048788F88@ESESSCMS0355.eemea.ericsson.se
type="cite">
<DIV dir=ltr align=left><SPAN
class=131233009-14032011></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=131233009-14032011><FONT face=Arial
color=#0000ff size=2>Do you have the MIB name for the "expired dialogs"
counter. I will look for that in my version of OPENSER
MIBS.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=131233009-14032011><FONT face=Arial
color=#0000ff size=2>Important, do you have a link to where MIB files
can be downloaded for Kamailio 3.0.2?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class=131233009-14032011></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=131233009-14032011><FONT face=Arial
color=#0000ff size=2>Below follows an excerp from one of the MIB's. Is
it old, I don't know?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class=131233009-14032011></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=131233009-14032011><SPAN lang=SV>
<P>--
***********************************************************************</P>
<P>-- OPENSER-MIB: OPENSER MIB</P>
<P>--</P>
<P>-- Date of Creation: Januay 2006</P>
<P>--</P>
<P>-- This MIB provides information related to the OpenSER SIP
Router.</P>
<P>-- </P>
<P>-- Copyright (c) The Internet Society (2006)</P>
<P>-- Ammendments (c) Soma Networks, Inc. (2006)</P>
<P>--</P>
<P>-- All rights reserved.</P>
<P>--
*****************************************************************</P></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class=131233009-14032011></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=131233009-14032011><FONT face=Arial
color=#0000ff size=2>/Stefan</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class=131233009-14032011></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Daniel-Constantin Mierla [<A
class=moz-txt-link-freetext href="mailto:miconda@gmail.com"
moz-do-not-send="true">mailto:miconda@gmail.com</A>] <BR><B>Sent:</B>
den 14 mars 2011 10:16<BR><B>To:</B> Stefan Tiedje<BR><B>Cc:</B> <A
class=moz-txt-link-abbreviated
href="mailto:sr-users@lists.sip-router.org"
moz-do-not-send="true">sr-users@lists.sip-router.org</A><BR><B>Subject:</B>
Re: [SR-Users] OPENSER MIB<BR></FONT><BR></DIV>Hello,<BR><BR>On 3/14/11
9:42 AM, Stefan Tiedje wrote:
<BLOCKQUOTE
cite=mid:78A68DD4B55ABD4CA9283A34B9AB60341048788E56@ESESSCMS0355.eemea.ericsson.se
type="cite">
<META content="Microsoft Exchange Server" name=Generator><!-- converted from rtf -->
<STYLE>.EmailQuote {
        PADDING-LEFT: 4pt; MARGIN-LEFT: 1pt; BORDER-LEFT: #800000 2px solid
}
</STYLE>
<DIV><FONT face="Arial, sans-serif" size=2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial, sans-serif" size=2>In the Kamailio OPENSER-MIB
there is the counter "openserTotalNumFailedDialogSetups". This is a
Counter32.</FONT></DIV>
<DIV><FONT face="Arial, sans-serif" size=2>The description
is:</FONT></DIV>
<DIV><FONT face="Arial, sans-serif"
size=2> "The total number of
calls that failed with an error. The following codes define a failed
call:" </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial, sans-serif"
size=2><B>Question:</B></FONT></DIV>
<UL
style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 19pt"><FONT
face="Arial, sans-serif" size=2>
<LI>I'm looking for the corresponding counter to
"openserTotalNumFailedDialogSetups" who counts successful Dialog
setups of Counter32 type. Does it exist?
<LI>If not, does it exist a work around?
<LI>Where in the code can the new suggested counter be added?
<LI>Something else???? </FONT></LI></UL></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"
moz-do-not-send="true">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 face="Arial, sans-serif" size=2>
<DIV> </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> </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> </DIV>
<DIV> </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> </DIV>
<DIV> </DIV>
<DIV>/Stefan</DIV>
<DIV>PS. Ask if anything is unclear and I need an answer
rapidly.</DIV>
<DIV> </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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">http://www.asipto.com</A></PRE></BLOCKQUOTE><BR><PRE class=moz-signature cols="72">--
Daniel-Constantin Mierla
<A class=moz-txt-link-freetext href="http://www.asipto.com" moz-do-not-send="true">http://www.asipto.com</A></PRE><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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">http://www.asipto.com</A></PRE><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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">http://www.asipto.com</A></PRE><BR>
<FIELDSET class=mimeAttachmentHeader></FIELDSET> <BR><PRE wrap="">_______________________________________________
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>
Kamailio Advanced Training, Dec 5-8, Berlin: <A class=moz-txt-link-freetext href="http://asipto.com/u/kat">http://asipto.com/u/kat</A>
<A class=moz-txt-link-freetext href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</A> -- <A class=moz-txt-link-freetext href="http://twitter.com/miconda">http://twitter.com/miconda</A></PRE></BODY></HTML>