Documentation
¶
Index ¶
Constants ¶
View Source
const (
DateFormat = "2006-01-02 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
func Pseudonymify ¶
func Pseudonymify(cdrs *[]File, pseudo PseudoData, settings Settings) error
Types ¶
type File ¶
type File struct {
Records []*Record
}
func ReadWithoutHeader ¶
ReadWithoutHeader reads a CDR csv-file from the specified reader and returns the record file.
func (*File) CloneWithParallelCallsRemoved ¶
RemoveParallelCalls removes all parallel calls from the cdr file. Parallel calls are created in an CDR if the Dial-App contains an '&'-sign. Example DIAL(SIP/phone1&SIP/phone2) will create two CDR lines with nearly identical content, even the unique id is identical. Be careful to distinguish parallel calls from transferred calls, which also are nearly identical but their Start time differs. See also: https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+CDR+Specification#Asterisk12CDRSpecification
type NaturalTimeShifter ¶
type Participant ¶
func ParsePseudoContacts ¶
func ParsePseudoContacts(reader io.Reader) ([]Participant, error)
type PseudoData ¶
type PseudoData struct { Participants []Participant Contexts []string }
type Record ¶
type Record struct { Accountcode string Src string Dst string Dcontext string CallerId string Channel string DstChannel string LastApp string LastData string Start string Answer string End string Duration string Billsec string Disposition CallState AmaFlag AmaFlag Userfield string UniqueId string }
func (*Record) ToCsvString ¶
type Settings ¶
type Settings struct { TimeShifter TimeShifter HideAppData bool HideChannels bool }
type TimeShifter ¶
type TimeShifter interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.