<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi, Tali!<br>
      <br>
      Memory is the only limitation, but I doubt you will hit it using
      variables. But if you are using too many (thousands of AVPs), you
      might affect the performace of your script, so I wouldn't suggest
      that.<br>
      But I don't really understand why you want to use these variables;
      why don't you do: update_stat("ERR_503__Service_Unavailable_0",
      "+1");?<br>
      What do you mean - delete variables from statistics? The
      statistics are simply counters with names, they don't store
      variables.<br>
      Not sure I answered your question, but I don't think I fully
      understand your issue. Can you offer more information?<br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 11/28/2017 11:43 AM, Gillon, Tali
      via Users wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAN7N6-GY_Jq1pjWW-9NkPNC-8E1YwS=WMXbS=1gKukBi5fo-2A@mail.gmail.com">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>Is there a limitation for saving dynamic variables?</div>
        <div>I'm asking this since I would like to collect data about
          the errors we send.</div>
        <div><br>
        </div>
        <div>below is an example:</div>
        <div>
          <p class="gmail-p1"><font color="#0000ff"><span
                class="gmail-s1">send_reply("</span><span
                class="gmail-s2">503</span><span class="gmail-s1">",
                "Service Unavailable 0")</span><span class="gmail-s3">;</span></font></p>
          <p class="gmail-p1"><font color="#0000ff"><span
                class="gmail-s4"><span
                  class="gmail-Apple-converted-space"> </span>$avp(errorvar)
                =</span><span class="gmail-s1"> "ERR_</span><span
                class="gmail-s5">503</span><span class="gmail-s1">__Service_Unavailable_0"</span><span
                class="gmail-s3">;</span></font></p>
          <p class="gmail-p1"><font color="#0000ff"><span
                class="gmail-s1"><span
                  class="gmail-Apple-converted-space"> </span>update_stat("$avp(errorvar)",
                "+1")</span><span class="gmail-s3">;</span></font></p>
          <p class="gmail-p1"><span class="gmail-s3"><br>
            </span></p>
          <p class="gmail-p1"><span class="gmail-s3">I'm afraid that we
              are going to have performance issues  if we have too many
              dynamic variables.</span></p>
          <p class="gmail-p1"><span class="gmail-s3">Is there a way to
              delete variables from statistics and not just reset them?</span></p>
          <p class="gmail-p1"><span class="gmail-s3"><br>
            </span></p>
          <p class="gmail-p1"><span class="gmail-s3"><br>
            </span></p>
          <p class="gmail-p1"><span class="gmail-s3">Thanks,</span></p>
          <p class="gmail-p1"><span class="gmail-s3">Tali</span></p>
          <p class="gmail-p1"><span class="gmail-s3"><br>
            </span></p>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>
    <br>
  </body>
</html>