-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscdr.patterns
21 lines (19 loc) · 875 Bytes
/
scdr.patterns
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#CDR Type define: SaCDR or SCDR
CdrType="SCDR"
DefaultFields=['sgsnAddr','ggsnAddr','chargingID','apn']
#CDR Info fields define
Patterns=dict(
msisdn = "servedMSISDN.*?value: 0x(\d+)f",
imsi = "servedIMSI.*?value: 0x(\d+)f",
imei = "servedIMEI.*?value: 0x(\d+)",
sgsnAddr = "sgsnAddress.*?iPTextV4Address.*?value: (\d+.\d+.\d+.\d+)",
rai = "routingArea.*?value: 0x(\d+)",
lai = "locationAreaCode.*?value: 0x([a-f0-9]+)",
cellID = "cellIdentifier.*?value: 0x([a-f0-9]+)",
chargingID = "chargingID.*?value: (\d+)",
chargingChar = "chargingCharacteristics.*?value: 0x(\d+)",
ggsnAddr = "ggsnAddressUsed.*?iPTextV4Address.*?value: (\d+.\d+.\d+.\d+)",
pdpAddr = "servedPDPAddress.*?iPTextV4Address.*?value: (\d+.\d+.\d+.\d+)",
apn = "accessPointNameNI.*?value: (\w+)",
)
#default fields for CDR export to csv