Another option is to track the last value of the failed calls, and then take the new number - old number of failed and you get "failed since last check", then if new is ever less than old, treat the new number as the failed since last check.

On Fri, Jan 29, 2016 at 2:15 PM, Oz Mortimer <omortimer@gmail.com> wrote:
Isn't processing cdrs the correct approach?

On 29 Jan 2016, at 19:35, Brian West <brian@freeswitch.org> wrote:

Restart the profile is the only thing you can do currently.

On Fri, Jan 29, 2016 at 1:08 PM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
Hello All,

I'd like to gather statistics about call failures. FS already does this for gateways:

freeswitch@internal> sofia status external
    Profile::Gateway-Name                               Data            State  Ping Time        IB Calls(F/T)   OB Calls(F/T)
=================================================================================================
             NAME::NAME          sip:FreeSWITCH@IP_ADDRESS        NOREG    0.00   0/0     290/453
=================================================================================================
1 gateway: Inbound(Failed/Total): 0/0,Outbound(Failed/Total):290/453

However, this statistic is already aggregated and I'd like it in time series. 

Is there a way to reset it to zero after a lookup in order to figure out how many calls have happened since the last query?

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--

Brian West
brian@freeswitch.org


Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

Got Bugs? Report them here! | Reddit: /r/freeswitch

T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org