Asterisk Dialplan (extensions.conf) 应用程序 [英] Asterisk Dialplan (extensions.conf) Applications

查看:21
本文介绍了Asterisk Dialplan (extensions.conf) 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,允许用户使用他们的手机访问他们的邮箱.我开发了一个 IVR 菜单,用户可以使用它来检索他们的邮件.更具体地说,我用 perl 编写了一个 AGI 来检索邮件.问题是 AGI 执行需要相当长的时间.为此,我需要让我的用户在执行 agi 时听到后台播放的一些音乐.也就是说,我需要让我的拨号计划中的AGI"和MusicOnHold"应用程序同时执行.任何线索我怎么能做到这一点?

解决方案

你可以从你的 AGI 应用程序发出 SET MUSIC ON,处理你的计算,然后发出 关闭音乐.

如果您希望音乐可被中断,请发出以下命令:

控制流文件<文件名>"0123456789*#" "0" "" "" ""

第二个参数是能够打断音乐的数字列表.

最好不要混合使用 AGI 和拨号计划命令.

AGI 能够完成拨号方案的所有功能,但是 AGI 是用成熟的编程语言实现的,因此可以让您更好地控制执行逻辑.>

i am developing an application that shall allow users to access their mail boxes using their phones. I developped an IVR menu of which users will make use to retrieve their mails. More specifically I write an AGI in perl to retrieve the mails. The issue is that the AGI execution takes quite a long time.To this end, I need to make my users hear some music played back in the background while the agi being executed. That is, i need to make the "AGI" and "MusicOnHold" applications in my dialplan execute simultaneously. Any clue how I can achieve this?

解决方案

You can issue SET MUSIC ON from you AGI applications, process your calculations, then issue SET MUSIC OFF.

If you want the music to be interruptable, issue this:

CONTROL STREAM FILE <filename> "0123456789*#" "0" "" "" ""

The second parameter is the list of digits able to interrupt the music.

It's better not to mix AGI and dialplan commands.

AGI is capable of everything dialplan is capable of, but AGI is implemented in a full fledged programming language and therefore gives you more control over the execution logic.

这篇关于Asterisk Dialplan (extensions.conf) 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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