<font face="trebuchet ms,sans-serif">Thank you Eric for helping me out. I am using asterisk 1.6.x, 1.8.x<br><br></font><br><div class="gmail_quote">On Thu, Mar 8, 2012 at 9:48 PM, Eric Wieling <span dir="ltr">&lt;<a href="mailto:EWieling@nyigc.com">EWieling@nyigc.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">1.4:<br>
pbx&gt; core show channels<br>
[snip]<br>
167 active channels<br>
84 active calls<br>
<br>
1.8:<br>
pbx&gt; core show channels<br>
[snip]<br>
23 active channels<br>
12 active calls<br>
9567 calls processed<br>
<div class="im"><br>
-----Original Message-----<br>
From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Steve Edwards<br>


Sent: Thursday, March 08, 2012 11:40 AM<br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
</div>Subject: Re: [asterisk-users] Processed Call Counter<br>
<div><div></div><div class="h5"><br>
On Thu, 8 Mar 2012, [Digital^Dude] (r) wrote:<br>
<br>
&gt; How can I reset the value of asterisk&#39; &quot;calls processed&quot; without<br>
&gt; restarting asterisk? Where does it save/access the value of all<br>
&gt; processed calls since last restart from?<br>
<br>
(I&#39;m just a 1.2 Luddite, so my input may be a bit dated.)<br>
<br>
Where are you seeing &#39;calls processed?&#39;<br>
<br>
There is a &#39;channels created&#39; counter. That&#39;s the bit after the &#39;.&#39; in ${UNIQUEID}.<br>
<br>
Resetting this is probably a bad idea, but if you&#39;re really determined you could write a small Asterisk application (app_reset_call_counter()?) that would lock the appropriate data structure, reset it, and unlock the data structure.<br>


<br>
Probably a better idea would be for you to maintain a counter in a global variable. Then you are free to do with it as you please without having to consider the implications of changing something internal to Asterisk.<br>


<br>
If you stored your counter in a database, it could persist beyond that instance of Asterisk in case of an unlikely crash. If you go this route, 2 AGIs (increment-call-counter and reset-call-counter) would help keep your dialplan &#39;clean.&#39;<br>


<br>
--<br>
Thanks in advance,<br>
-------------------------------------------------------------------------<br>
Steve Edwards       <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a>      Voice: <a href="tel:%2B1-760-468-3867" value="+17604683867">+1-760-468-3867</a> PST<br>
Newline                                              Fax: <a href="tel:%2B1-760-731-3000" value="+17607313000">+1-760-731-3000</a><br>
<br>
</div></div><font color="#888888">--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</font></blockquote></div><br>