Commit 97693405aa89d19619f1b1c49184bf33ce4fe9bd
Changing channel values. FIXME, these values should be read from a config file,
not hard coded in to the report script
| | | | 24 | callDetails = query.Query('cdr') | 24 | callDetails = query.Query('cdr') |
---|
25 | average_call_length = callDetails.average(startDate, endDate) | 25 | average_call_length = callDetails.average(startDate, endDate) |
---|
26 | audio_minutes = callDetails.sum(startDate, endDate) | 26 | audio_minutes = callDetails.sum(startDate, endDate) |
---|
27 | channel1_minutes = callDetails.load('SIP/10.0.0.20', startDate, endDate) | | channel1_minutes = callDetails.load('SIP/10.0.0.20', startDate, endDate) |
---|
28 | channel2_minutes = callDetails.load('SIP/10.0.0.21', startDate, endDate) | | channel2_minutes = callDetails.load('SIP/10.0.0.21', startDate, endDate) |
---|
29 | channel3_minutes = callDetails.load('SIP/10.0.0.22', startDate, endDate) | | channel3_minutes = callDetails.load('SIP/10.0.0.22', startDate, endDate) |
---|
| | 27 | channel1_minutes = callDetails.load('SIP/10.0.0.30', startDate, endDate) | | | 28 | channel2_minutes = callDetails.load('SIP/10.0.0.31', startDate, endDate) |
---|
| | 29 | channel3_minutes = callDetails.load('SIP/10.0.0.33', startDate, endDate) |
---|
30 | mobilink_load = callDetails.call_distribution(startDate, endDate, 'mobilink') | 30 | mobilink_load = callDetails.call_distribution(startDate, endDate, 'mobilink') |
---|
31 | mobilink_tata_load = callDetails.call_distribution(startDate, endDate, 'mobilinktata') | 31 | mobilink_tata_load = callDetails.call_distribution(startDate, endDate, 'mobilinktata') |
---|
32 | | 32 | |
---|