Tracking the number of calls hitting my Asterisk box

Hi,

I have a DS-3 of 800 PRI traffic coming from an AS5400 into an Asterisk box via SIP.

I am trying to figure out how to log into the Asterisk box and figure out how many calls have it the box.

Any idea of a command line to figure this out? This is using UBuntu.

Thanks,
Brian

This is a simple way

asterisk -rx “show channels” |grep “active call”

Ian

you would actually want to count the number of records in your CDR. In my shop this is /var/log/asterisk/cdr-csv/Master.csv.