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

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

问题描述

我在 this 链接后​​使用星号和普通的 PHP AGI问题是我的 PHP AGI 执行需要 5 秒.我只是想为用户设置一些等待音,直到 AGI 被处理.在同一个链接上,我发现了一些东西:

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 ON default"

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.

我已经尝试添加

same => n,Set(CHANNEL(musicclass)=default)

但是没有用.

推荐答案

如果你使用 phpagi,你已经做了这样的事情

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

当然你需要先在/etc/asterisk/musiconhold.conf中描述myholdclass

Sure you need first describe myholdclass in /etc/asterisk/musiconhold.conf

这篇关于设置星号 agi 函数处理的等待音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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