mirror of https://github.com/sipwise/rtpengine.git
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: I48ff3c17c9bed31f80c3106b275b703a9ccb4b26pull/1897/head
parent
ffa64f41ea
commit
67bfa5a5df
Loading…
Reference in new issue