<!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 Brett,<br>
      <br>
      if you simply want to do counters, in 1.9 you can do dynamic
      statistics from script. Simply do :<br>
      &nbsp;&nbsp;&nbsp; update_stat("cnt_$(&lt;reply&gt;rs)</tt><tt>","+1");<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 12/03/2012 10:09 PM, Brett Nemeroff wrote:
    <blockquote
cite="mid:CAPwC5wz8q6yLKRiED6pw1zswWuxmtfF3FwJ9O4Fy-n+LsrnQbA@mail.gmail.com"
      type="cite">Hello All,
      <div><br>
      </div>
      <div>I was wondering if anyone had a clever way of doing a "hash"
        inside of the scripting. What I'd really like to be able to do
        is something like this:</div>
      <div><br>
      </div>
      <div>$(avp(code_counter)[$(&lt;reply&gt;rs)])++</div>
      <div><br>
      </div>
      <div>I think I could use the JSON module do to this, but I was
        hoping to find a more lightweight way to do it.&nbsp;</div>
      <div><br>
      </div>
      <div>Thanks,</div>
      <div>Brett</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </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>