<!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">
    <tt>Hi Pieri,<br>
      <br>
      For controlling the number of ongoing call, use dialog profiles
      (from dialog module):<br>
      &nbsp;&nbsp;&nbsp;
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.8.x/dialog.html#id249148">http://www.opensips.org/html/docs/modules/1.8.x/dialog.html#id249148</a><br>
      &nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext" href="http://www.opensips.org/Resources/DocsTutConcurrentCalls">http://www.opensips.org/Resources/DocsTutConcurrentCalls</a><br>
      <br>
      For controlling the call rate (calls per second), see the
      ratelimit module:<br>
      &nbsp;&nbsp;&nbsp;
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.8.x/ratelimit.html#id250345">http://www.opensips.org/html/docs/modules/1.8.x/ratelimit.html#id250345</a><br>
      <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>
    <br>
    On 06/08/2012 03:29 PM, Pieri Mavarez wrote:
    <blockquote
cite="mid:CAGvWGkvt_u+1DWLztLaKN1NsyE3Hv4CEgmXusJL5wGTYqOZZDw@mail.gmail.com"
      type="cite">Hi, i would like to count and limitate the number of
      calls going to my asterisk server. I dont know how to make a
      variable that keeps the count and decreases when one call is
      finished. Could you give me a hint for doing it in a fast and easy
      way?
      <div>
        <br>
      </div>
      <div>Thanks in advanced!&nbsp;</div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>