mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
res_musiconhold: Add option to loop last file.
Adds the loop_last option to res_musiconhold, which allows the last audio file in the directory to be looped perpetually once reached, rather than circling back to the beginning again. Resolves: #122 ASTERISK-30462 UserNote: The loop_last option in musiconhold.conf now allows the last file in the directory to be looped once reached.
This commit is contained in:
committed by
George Joseph
parent
4176f57938
commit
ce7a72d7e2
@@ -82,6 +82,14 @@ directory=moh
|
||||
; ; in alphabetical order. If 'randstart', the files are sorted
|
||||
; ; in alphabetical order as well, but the first file is chosen
|
||||
; ; at random. If unspecified, the sort order is undefined.
|
||||
;loop_last=no ; If enabled, once the end of the directory is reached,
|
||||
; the last file played will be looped perpetually, rather than
|
||||
; starting over at the beginning again.
|
||||
; Can be used with sort=alpha or randstart so you can control
|
||||
; which file gets looped (the last one sorted alphabetically).
|
||||
; (If sort=alpha, all files will be played at least once, but
|
||||
; this may not be true with sort=randstart.)
|
||||
; Default is no.
|
||||
;answeredonly=yes ; Only allow answered channels to have music on hold.
|
||||
; Enabling this will prevent MOH on unanswered channels.
|
||||
; (default: "no")
|
||||
|
Reference in New Issue
Block a user