JR Richardson
2008-Apr-08 02:01 UTC
[asterisk-users] Anyone have a method of keeping an incremental tally of calls?
Hi All, I thought I read a post a while back of a system call or something in the dialplan whereby a call count can be incremented and spit out to a text file. Not like a group count of active channels. What I would like to accomplish is have an incremental count of a specific dialplan routine that gets called, so after a week or month, I can see how many times a specific dilaplan action has been used. Thanks for any advice. JR -- JR Richardson Engineering for the Masses
Stelios Koroneos
2008-Apr-08 06:56 UTC
[asterisk-users] Anyone have a method of keeping an incrementaltally of calls?
Hi JR ! You could use dbget/dbput to have something like that i.e Set(foo=${DB(counter/counter_val)}) Set(foo=${MATH(${foo}+1)}) ; Set(DB(counter/counter_val)=${foo}) Stelios S. Koroneos Digital OPSiS - Embedded Intelligence http://www.digital-opsis.com> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > JR Richardson > Sent: Tuesday, April 08, 2008 5:02 AM > To: asterisk-users at lists.digium.com > Subject: [asterisk-users] Anyone have a method of keeping an > incrementaltally of calls? > > Hi All, > > I thought I read a post a while back of a system call or > something in the dialplan whereby a call count can be > incremented and spit out to a text file. > > Not like a group count of active channels. > > What I would like to accomplish is have an incremental count > of a specific dialplan routine that gets called, so after a > week or month, I can see how many times a specific dilaplan > action has been used. > > Thanks for any advice. > > JR > -- > JR Richardson > Engineering for the Masses > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >