Skip to content

Example: SER CDRS to HEP

Lorenzo Mangani edited this page May 14, 2018 · 1 revision

The following snippets will allow paStash to parse and convert CDR rows to full blown HEP Inserts for HOMER 7+

OpenSIPS CDRs

input {
  file {
    path => "/usr/local/cdr/opensips"
#    start_index => 0
  }
}

filter {
  app_cdr_opensips{}
}

output {
  stdout {}
   hep {
     host => localhost
     port => 9066
     hep_id => 2022
     hep_type => 81
   }
}

Kamailio CDRs

input {
  file {
    path => "/usr/local/cdr/kamailio"
#    start_index => 0
  }
}

filter {
  app_cdr_kamailio{}
}

output {
  stdout {}
   hep {
     host => localhost
     port => 9066
     hep_id => 2022
     hep_type => 81
   }
}
Clone this wiki locally