通过DTMF请求将文件回放到呼叫的两个站点 [英] Playback a file to both sites of a call by DTMF request

查看:77
本文介绍了通过DTMF请求将文件回放到呼叫的两个站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当呼叫者单击DTMF时,我都想向两个呼叫分支播放声音文件, 我使用了星号功能,因此如果呼叫者单击dtmf 6,则会在两个呼叫分支上播放一个声音文件.问题是星号功能仅允许该功能在呼叫的一侧运行:self或peer, 我尝试使用相同的DTMF配置2个功能,如下所示: features.conf:

I want to play a sound file to both call legs whenever the caller clicks a DTMF, I used asterisk features so if the caller clicks the dtmf 6 a sound file will be played to both call legs, The problem is asterisk features only allow the feature to run on one side of the call: self OR peer, I tried configuring 2 features with the same DTMF like that: features.conf:

[applicationmap] PlaySound6p => 6,peer/peer,Playback,tt-monkeys PlaySound6s => 6,self/peer,Playback,tt-monkeys

[applicationmap] PlaySound6p => 6,peer/peer,Playback,tt-monkeys PlaySound6s => 6,self/peer,Playback,tt-monkeys

但是tt-monkeys只能播放1次,这是日志:

but the playback of tt-monkeys works only 1 time, here is the log:

-- Feature Found: PlaySound6p exten: PlaySound6p -- Playing 'tt-monkeys.slin' (language 'en') 编写星号功能show命令返回:

-- Feature Found: PlaySound6p exten: PlaySound6p -- Playing 'tt-monkeys.slin' (language 'en') writting asterisk features show command returns:

Dynamic Feature Default Current --------------- ------- ------- PlaySound6s no def 6 PlaySound6p no def 6

Dynamic Feature Default Current --------------- ------- ------- PlaySound6s no def 6 PlaySound6p no def 6

当在同一DTMF上配置星号时,似乎不会激活2个功能, 有人知道可以做到这一点的方法吗? 谢谢, 拉米.

It appears asterisk doesn't fire 2 features when they are configured on the same DTMF, Anyone knows a way this can be done? Thanks, Rami.

推荐答案

数字只能触发一项功能.

Only one feature can be fired by digit.

数字将被消耗掉",然后不再消耗.

Digits will be "consumed" and not go after that.

不过,您可以从该数字开始一个或多个其他呼叫,每个呼叫都可以通过ChanSpy或audiohooks以及您想要的任何方式连接到此频道.

However you can start on that digit one or more OTHER call, each one you can connect to this channel by ChanSpy or audiohooks and whatever you want.

这篇关于通过DTMF请求将文件回放到呼叫的两个站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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