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 |
12 months ago | |
|---|---|---|
| .. | ||
| images | MT#55897 Fix images for the RTD | 3 years ago |
| Makefile | MT#55897 Introduce Read the Docs | 3 years ago |
| architecture.md | MT#55897 RTD: Fix linking in `architecture.md` | 2 years ago |
| call_recording.md | MT#55897 Restructure general README.md | 3 years ago |
| compiling_and_installing.md | MT#55283 remove rtpengine-iptables package | 2 years ago |
| conf.py | MT#55897 RTD: fix sphinx based theme | 2 years ago |
| glossary.md | TT#71950 Unify rtpengine wording | 3 years ago |
| http_websocket_support.md | MT#59038 add support for "plain" NG protocols | 2 years ago |
| index.rst | MT#55897 use pandoc instead of ronn | 3 years ago |
| janus_interface_and_replacement.md | MT#55897 Restructure general README.md | 3 years ago |
| make.bat | MT#55897 Introduce Read the Docs | 3 years ago |
| ng_control_protocol.md | MT#61630 Generalize `moh-max-duration`, add `repeat-duration` | 11 months ago |
| overview.md | MT#55897 Introduce Read the Docs | 3 years ago |
| requirements.txt | MT#55897 RTD: start using the `.readthedocs.yaml` | 2 years ago |
| rtpengine-recording.md | MT#55283 Add `flush_packets` flag | 1 year ago |
| rtpengine.md | MT#55283 fix typoes | 1 year ago |
| tcpng_control_protocol.md | MT#55897 Restructure general README.md | 3 years ago |
| tests.md | Fix formatting on a single line to match rest of file | 1 year ago |
| transcoding.md | MT#55897 Restructure general README.md | 3 years ago |
| troubleshooting.md | TT#71950 Unify rtpengine wording | 3 years ago |
| usage.md | MT#57371 drop dependency on iptables | 2 years ago |