AGG Software Forums
September 20, 2024, 01:34:45 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: Filters question  (Read 9955 times)
JammerX19
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« 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?
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 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.

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines