-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[4.3] HELP-14697: correct erroneous data in CDR (#6534)
`duration`, `billsec`, `progresssec` and their ilk should always be non-negative. A scenario occurred where a call leg was queued to originate in FreeSWITCH while an immediate hangup API call was made over mod_kazoo. The channel was still in `CS_NEW` and went from `DOWN` -> `HANGUP` without ever being in `UP`. The result was `variable_duration` being a negative UNIX timestamp and throwing off all the other calculations (like Ringing-Seconds) in the CDR that rely on `duration`. This commit ensures that the variables with relative time are never negative.
- Loading branch information
1 parent
cb323e3
commit 934d973
Showing
1 changed file
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters