Asterisk 星号在调用curl时播放文件
在拨号计划中,我需要调用一个phpAsterisk 星号在调用curl时播放文件,asterisk,Asterisk,在拨号计划中,我需要调用一个php extn=>6666,n,Set(foo=${CURL(http://reports.cr.mrgroup.in/IVR/sp.php?tid=${tid}}) 它会在1分钟或2分钟后给出响应,我想在这些时间播放一个音乐文件 请告诉我如何实现这一点 您要做的是使用StartMusicOnHold()——当我需要执行其他处理时,我会使用它(在一种情况下,我在进行长时间的TTS转换时使用) 通过运行asterisk*CLI>core show applicatio
extn=>6666,n,Set(foo=${CURL(http://reports.cr.mrgroup.in/IVR/sp.php?tid=${tid}}) 它会在1分钟或2分钟后给出响应,我想在这些时间播放一个音乐文件
请告诉我如何实现这一点
您要做的是使用
StartMusicOnHold()
——当我需要执行其他处理时,我会使用它(在一种情况下,我在进行长时间的TTS转换时使用)
通过运行asterisk*CLI>core show application StartMusicOnHold
一个例子如下所示:
exten => test,1,Answer()
same => n,StartMusicOnHold()
same => n,Wait(20) ; Do processing here.
same => n,StopMusicOnHold()
same => n,Hangup()
另外,您的音乐保留配置也将处于活动状态@
/etc/asterisk/musiconhold.conf
——如果您安装了示例配置,它将与文档内联在一起。您要做的是使用StartMusicOnHold()
——当我需要进行其他处理时,我会使用它(在一种情况下,我在进行长TTS转换时执行此操作)
通过运行asterisk*CLI>core show application StartMusicOnHold
一个例子如下所示:
exten => test,1,Answer()
same => n,StartMusicOnHold()
same => n,Wait(20) ; Do processing here.
same => n,StopMusicOnHold()
same => n,Hangup()
另外,您的音乐保留配置将在@/etc/asterisk/musiconhold.conf
——如果您安装了示例配置,它将与文档内联在一起