[OpenSIPS-Users] looking for PCAP to CDR utility

Karsten Wemheuer kwe at temp.temp
Fri Mar 31 09:32:54 UTC 2023


Hi Frederico,

I unfortunately do not know about the output format of tshark. With
ngrep you can use "-W byline" to make sure that the SIP messages are
displayed line by line.

Have a nice weekend,

Karsten

Am Donnerstag, dem 30.03.2023 um 06:21 -0400 schrieb Saint Michael:
> I am alradybusing tshark and awk, but I thought that there was some
> tools written to do this
> 
> Federico
> 
> On Thu, Mar 30, 2023, 1:55 AM Karsten Wemheuer <kwem at gmx.de> wrote:
> > Hi,
> > 
> > maybe You can use ngrep (converting pcap to text) and than a lot of
> > scripting in the language of Your choice.
> > 
> > Have a nice day
> > 
> > Karsten
> > 
> > Am Donnerstag, dem 30.03.2023 um 01:40 -0400 schrieb Saint Michael:
> > > Is there any command line tool for Linux (ubuntu 20.04 or better)
> > > that can generate opensips SIP CDR from a group of large *.pcap
> > files
> > > that only contain SIP information?
> > > I have not found it. I tried with tshark and it would take a lot
> > of
> > > coding to get this done. I am looking for these fields
> > >
> > > 
> > fields="method,from_tag,to_tag,callid,sip_code,sip_reason,time,orig
> > _
> > >
> > fu,orig_ru,out_fu,out_ru,source_ip,dst_ip,lrn,rate,provrate,jurisd,
> > ro
> > >
> > unding,minsec,singlecharge,setuptime,closetime,duration,ms_duration
> > "
> > >  one record per call of course
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Users mailing list
> > > Users at lists.opensips.org
> > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > 
> > 
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list