我有这个队列config
[1XXX]
musiconhold = default
strategy = ringall
timeout = 30
retry = 1
weight = 0
wrapuptime = 5
maxlen = 0
periodic-announce = /var/lib/asterisk/agi-bin/xxxx/resources/audio/gsm/waiting_1
periodic-announce-frequency = 15
relative-periodic-announce = yes
announce-holdtime = no
joinempty = yes
ringinuse = false
member => SIP/1001
member => SIP/1002
member => SIP/1003
我不能做的是让weated_1公告开始时,第一次不等待15秒钟。这是我尤其是Asterisknow或Asterisk的拳头,所以请直接。:)
您有2个选择
1)创建按照您的宣布(混合声音文件)的宣布,将该类带到队列
2)在队列前播放。不幸的是,这会导致处理延迟。
sorrry,没有其他方法。
您也可以在MOH类中使用排序选项。并将名称诸如1.Wav 2. Wav等姓名等上放在目录中这是配置文件文档
Musiconhold.Conf的示例:
[announceclass]
mode=files
directory=announce
sort=alpha ; Sort the files in alphabetical order.
之后,只需创建目录宣布,在此处复制音乐文件,然后将其命名为:
1.announce.wav
2.wav
3.wav
...
10.wav
...
所以,将首先播放
。并在queues.conf
中选择MOH类[q1]
musicclass = announceclass
,但是如果您不想让呼叫者聆听两次,则应该放很多文件。