<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi,<br>
      <br>
      You can do get_profile_size via MI interface, see:<br>
         
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.2.x/dialog.html#id297085">http://www.opensips.org/html/docs/modules/2.2.x/dialog.html#id297085</a><br>
      <br>
      And you can use xmlrpc, jsonrpc, fifo and more for the MI backend.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 01/26/2017 04:06 PM, Khalil
      Khamlichi wrote:<br>
    </div>
    <blockquote
cite="mid:CAEK98WbYPrWjcCcNkw37MYTSvdmFTaR5KU-NN0HEfQiOncSz6A@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span style="font-size:12.8px">snmpstat data seems
          a little cryptic and difficult to parse, it might be just me,
          so please tell me about your experience using </span><span
          style="font-size:12.8px">snmpstat and how easy was it for you
          to make it useful for your business case ? </span><br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Jan 25, 2017 at 9:08 PM, Abdul
          Basit <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:basit.engg@gmail.com" target="_blank">basit.engg@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="auto">Khalil, 
              <div dir="auto"><br>
              </div>
              <div dir="auto">Why don't you consider snmpstat module for
                stats collection from opensips? </div>
              <div dir="auto"><br>
              </div>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">On 25 Jan 2017 17:12, "Khalil
                    Khamlichi" <<a moz-do-not-send="true"
                      href="mailto:khamlichi.khalil@gmail.com"
                      target="_blank">khamlichi.khalil@gmail.com</a>>
                    wrote:<br type="attribution">
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">Liviu, you just saved my day. my
                        plan is to push information to redis every 10s
                        maybe 5s if need there is, when dashboard is
                        complete I might consider saving the stream of
                        data for plotting and further analysis.
                        <div><br>
                        </div>
                      </div>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On Wed, Jan 25, 2017 at
                          11:45 AM, Liviu Chircu <span dir="ltr"><<a
                              moz-do-not-send="true"
                              href="mailto:liviu@opensips.org"
                              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:liviu@opensips.org">liviu@opensips.org</a></a>></span>
                          wrote:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div bgcolor="#FFFFFF" text="#000000">
                              <p><tt>I do not see any problems with
                                  calling "get_profile_size()" from
                                  timer routes, event routes, etc. As
                                  such, you can safely bypass the block
                                  restriction using the following
                                  example:</tt></p>
                              <p><tt>route [get_prof_sz_inboundCalls] {<br>
                                      get_profile_size("inboundCalls<wbr>",,"$var(size)");<br>
                                  }<br>
                                  <br>
                                  route [get_prof_sz_outboundCalls] {<br>
                                      get_profile_size("outboundCall<wbr>s",,"$</tt><tt><tt>var</tt>(size)");<br>
                                  }<br>
                                  <br>
                                  timer_route [mytimer, 1]<br>
                                  {<br>
                                      route(get_prof_sz_inboundCalls<wbr>);<br>
                                      xlog("inboundCalls: $</tt><tt><tt>var</tt>(size)\n");<br>
                                  <br>
                                      route(get_prof_sz_outboundCall<wbr>s);<br>
                                      xlog("outboundCalls: $</tt><tt><tt>var</tt>(size)\n");<br>
                                  }</tt></p>
                              <p><tt>Regards,<br>
                                </tt></p>
                              <pre class="m_-6337039920755189437m_3686570970957261458m_-5536816533211976440moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a moz-do-not-send="true" class="m_-6337039920755189437m_3686570970957261458m_-5536816533211976440moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a></pre><div><div class="m_-6337039920755189437m_3686570970957261458h5">
    <div class="m_-6337039920755189437m_3686570970957261458m_-5536816533211976440moz-cite-prefix">On 24.01.2017 01:05, Khalil Khamlichi
      wrote:

    </div>
    </div></div><blockquote type="cite"><div><div class="m_-6337039920755189437m_3686570970957261458h5">
      <div dir="ltr">the idea is that I don't need to get the number of
        calls 30 times per second which would happens if I save to redis
        on each invite. scheduling the saving to redis every 10 seconds
        serves  well my purpose but the timer_route doesn't seem to
        accept <span style="font-size:12.8px">get_profile_size()</span>
        <div><span style="font-size:12.8px">

          </span></div>
        <div><span style="font-size:12.8px">any hints would be
            appreciated.</span></div>
      </div>
      <div class="gmail_extra">

        <div class="gmail_quote">On Mon, Jan 23, 2017 at 10:39 PM,
          Khalil Khamlichi <span dir="ltr"><<a moz-do-not-send="true" class="m_-6337039920755189437m_3686570970957261458m_-5536816533211976440moz-txt-link-abbreviated" href="mailto:khamlichi.khalil@gmail.com" target="_blank">khamlichi.khalil@gmail.com</a>></span>
          wrote:

          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Hi,
              <div>

              </div>
              <div>I am trying to get call load information out of
                opensips at regular intervals to get some sort of
                realtime view of the load on the server.</div>
              <div>

              </div>
              <div>After applying profiles on the the INVITEs, I have
                tried to call get_profile_size from a timer_route.</div>
              <div>I am getting error : </div>
              <div>

              </div>
              <div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">CRITICAL:core:yyerror:
                    parse error in config file /usr/local//etc/opensips/opens<wbr>ips.cfg,
                    line 483, column 38-39: Command cannot be used in
                    the block</span>

                </span></div>
              <div>

              </div>
              <div>Any alternative solutions ?</div>
              <div>

              </div>
              <div>Thanks in advance.</div>
              <div>

              </div>
              <div>kkh</div>
            </div>
          </blockquote>
        </div>
        

      </div>
      

      <fieldset class="m_-6337039920755189437m_3686570970957261458m_-5536816533211976440mimeAttachmentHeader"></fieldset>
      

      </div></div><span><pre>______________________________<wbr>_________________
Users mailing list
<a moz-do-not-send="true" class="m_-6337039920755189437m_3686570970957261458m_-5536816533211976440moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="m_-6337039920755189437m_3686570970957261458m_-5536816533211976440moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
    </span></blockquote>
    

  </div>


______________________________<wbr>_________________

Users mailing list

<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>

<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>


</blockquote></div>
</div>

______________________________<wbr>_________________

Users mailing list

<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>

<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>


</blockquote></div></div>
</div></div>
______________________________<wbr>_________________

Users mailing list

<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>

<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>


</blockquote></div>
</div>


<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>

</blockquote>
</body></html>