- Joined
- Nov 28, 2020
- Messages
- 138
- Reaction score
- 30
Is there a way to see a report on the number of simultaneous call paths used within the past year? I want to see what the highest number simultaneous calls a customer has ever used.
This information would not be taken from the call log, but from the support information file of the PBX, directly in the logs folder provided in the ZIP.Hi
"Currently active calls"
This doesn't appear to be an option when I download the call log csv file.
Hi.. If it can help you with your figures, then pull a trial for JEDWare, here we report down to each 15 minutes, and this will give a pretty accurate view of your SIM Call usage.I am trying to get an idea of peak simultaneous calls over a 3 or 6 month period.
That seems to only work on self hosted 3cx?If it can help you with your figures, then pull a trial for JEDWare,
Yes, as you need SSH access. Self-hosted or on-premise is required.That seems to only work on self hosted 3cx?
history,idcallid,duration,time-start,time-answered,time-end,reason-terminated,from-no,to-no,from-dn,to-dn,-dial-no,reason-changed,final-number,final-dn,bill-rate,bill-cost,bill-name,chain,from-type,final-type,from-dispname,to-dispname,final-dispname,bill-code,missed-queue-calls
$csvData = Import-Csv -Path "cdr.log"
# Initialize an empty hash table to store call timestamps
$callTimestamps = @{}
$rowno = 0
# Process each row in the CSV
foreach ($row in $csvData) {
$rowno++
if ($rowno -eq 1) {
$startDate = $row."time-start"
}
#Write-Host $rowno " " $row."time-start" " -- " $row."time-end"
$startTime = [datetime]::ParseExact($row."time-start", "yyyy/MM/dd HH:mm:ss", $null)
$endTime = [datetime]::ParseExact($row."time-end", "yyyy/MM/dd HH:mm:ss", $null)
# Increment the start timestamp count
$callTimestamps[$startTime]++
# Decrement the end timestamp count
$callTimestamps[$endTime]--
}
$endDate = $row."time-start"
# Initialize variables for tracking maximum concurrent calls
$maxConcurrentCalls = 0
$currentConcurrentCalls = 0
# Process the timestamps and calculate concurrent calls
foreach ($timestamp in $callTimestamps.Keys | Sort-Object) {
$currentConcurrentCalls += $callTimestamps[$timestamp]
if ($currentConcurrentCalls -gt $maxConcurrentCalls) {
$maxConcurrentCalls = $currentConcurrentCalls
}
}
# Output
Write-Host "Max no of concurrent calls between $startDate and $endDate : $maxConcurrentCalls"
Thank you but I don't think you can run scripts if it is hosted with 3cx. Interesting how 3cx don't tell you that nothing works if you host it with them...if you have cdr enabled you can use this ps script copilot provided
Founded in 2005, when VoIP was an emerging technology, 3CX has gone on to establish itself as a global leader in business communications.