Commit 97693405aa89d19619f1b1c49184bf33ce4fe9bd

  • avatar
  • arvind
  • Sat Feb 15 12:40:46 IST 2014
Changing channel values. FIXME, these values should be read from a config file,
not hard coded in to the report script
report.py
(3 / 3)
  
2424callDetails = query.Query('cdr')
2525average_call_length = callDetails.average(startDate, endDate)
2626audio_minutes = callDetails.sum(startDate, endDate)
27channel1_minutes = callDetails.load('SIP/10.0.0.20', startDate, endDate)
28channel2_minutes = callDetails.load('SIP/10.0.0.21', startDate, endDate)
29channel3_minutes = callDetails.load('SIP/10.0.0.22', startDate, endDate)
27channel1_minutes = callDetails.load('SIP/10.0.0.30', startDate, endDate)
28channel2_minutes = callDetails.load('SIP/10.0.0.31', startDate, endDate)
29channel3_minutes = callDetails.load('SIP/10.0.0.33', startDate, endDate)
3030mobilink_load = callDetails.call_distribution(startDate, endDate, 'mobilink')
3131mobilink_tata_load = callDetails.call_distribution(startDate, endDate, 'mobilinktata')
3232