设置星号agi功能处理的等待音 [英] Set waiting tone for asterisk agi function processing
问题描述
我在此链接后使用带有常规PHP AGI的星号问题是我的PHP AGI执行需要5秒钟。我只想设置一些等待音,以便用户等待AGI正在处理。在同一链接上,我发现了一些东西:
设置音乐:启用/禁用保留音乐发生器,例如默认情况下设置音乐
但我不知道确切的用法,我的意思是确切的语法以及将其放在哪里。
我尝试添加
same => n,Set(CHANNEL(musicclass) = default)
但它不起作用。
如果您使用phpagi,则必须执行以下操作
$ agi-> set_music(true, myholdclass)
...
$ agi-> set_music(false)
http:// phpagi。 sourceforge.net/phpagi2/docs/phpAGI/AGI.html#methodset_music
确保首先需要在/etc/asterisk/musiconhold.conf中描述myholdclass。 / p>
I am using asterisk with normal PHP AGI following this link the problem is that my PHP AGI takes 5 seconds to execute .I just want to set some waiting tone for the user to wait until the AGI is been processing. On the same link I found something:
set music: Enable/Disable Music on hold generator, example "SET MUSIC ON default
but I don't know exactly how to use I mean what would be the exact syntax and where do I put it.
I have tried adding
same => n,Set(CHANNEL(musicclass)=default)
but it didn't work.
If you use phpagi, you have do something like this
$agi->set_music(true,"myholdclass")
...
$agi->set_music(false)
http://phpagi.sourceforge.net/phpagi2/docs/phpAGI/AGI.html#methodset_music
Sure you need first describe myholdclass in /etc/asterisk/musiconhold.conf
这篇关于设置星号agi功能处理的等待音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!