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
  • Diff rendering mode:
  • inline
  • side by side

report.py

24callDetails = query.Query('cdr')24callDetails = query.Query('cdr')
25average_call_length = callDetails.average(startDate, endDate)25average_call_length = callDetails.average(startDate, endDate)
26audio_minutes = callDetails.sum(startDate, endDate)26audio_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)
30mobilink_load = callDetails.call_distribution(startDate, endDate, 'mobilink')30mobilink_load = callDetails.call_distribution(startDate, endDate, 'mobilink')
31mobilink_tata_load = callDetails.call_distribution(startDate, endDate, 'mobilinktata')31mobilink_tata_load = callDetails.call_distribution(startDate, endDate, 'mobilinktata')
3232