AGG Software Forums

Online Help Center => Data loggers and plug-ins => Topic started by: JammerX19 on February 01, 2010, 09:18:19 PM



Title: Filters question
Post by: JammerX19 on February 01, 2010, 09:18:19 PM
I am evaluating the Advanced PBX Data Logger to see if it fits our needs.  I'm having a little trouble getting the filtering to work.  There are certain conditions where we want to discard the row of data instead of putting it into our logging database.  A row of our data looks like this:

012510 0000 00015  ##########  796                   11638        10877

The last number is the internal extension that placed the call.  We only care to store it in the database if that last number begins with 108, 109, 138 or 139.  I tried various regular expressions in the filtering but it doesn't seem to work.  Can someone talk me through what I need to make this happen?


Title: Re: Filters question
Post by: Arthur Grasin on February 01, 2010, 10:10:33 PM
Do you parse data with help of ASCII data parser plugin? If yes, then you may try the following expression:

(108|109|139|138)[\s\d\x0D\x0A]+$

Also you may extract last digits to a parser item and discard a data packet with the Script Execute plugin.