设置星号agi功能处理的等待音 [英] Set waiting tone for asterisk agi function processing

查看:128
本文介绍了设置星号agi功能处理的等待音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在链接后使用带有常规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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆