-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MT#61630 Generalize
moh-max-duration
, add repeat-duration
Make `moh-max-duration` available for both music-on-hold functionality as well as for the media player. For that to work, do the following: - keep `moh-max-duration` config option only for MoH, if not set (so 0) by default is 1800000ms (half an hour) - for the play media functionality introduce flag option `repeat-duration`, by default is disabled Policy changes: - duration counter can be used in common with repeats counter, but then takes a precedence over it. Hence if first a duration is underflown, then EOF triggered. Otherwise if the duration counter is still positive, but repeats are negative, then do EOF based on repeats. - the repeats counter will always count down during each iteration, even when used together with the duration counter For MoH to survive, the repeats counter is simple set to 999 to let the duration counter always win over repeats one - MoH cannot take duration disabled, since otherwise would make no sense for it. Hence always takes internally defined value 1800000ms (half an hour) if not defined by the configuration option Backwards compatibility: - is kept in regards of repeats counter - is kept in regards of the play media functionality Change-Id: I48ff3c17c9bed31f80c3106b275b703a9ccb4b26
- Loading branch information
Showing
8 changed files
with
55 additions
and
20 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
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
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
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
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
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
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
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