简体   繁体   English

接听电话后如何使星号开始播放声音?

[英]How to make asterisk to start playing sound when call is answered?

Hi and thanks for reading. 嗨,谢谢您的阅读。 I have a FreePBX box working here for the last years and now i have Zabbix monitoring some servers. 过去几年中,我在这里工作过一个FreePBX盒,现在我有Zabbix监视一些服务器。 So i want that zabbix use freepbx (asterisk) to call me if something is wrong. 因此,如果出现问题,我希望zabbix使用freepbx(星号)给我打电话。 I have tried to make a call from asterisk CLI, and it works, but the Playback application start playing before i answer the call. 我试图从星号CLI拨打电话,并且可以正常工作,但是在我接听电话之前,播放应用程序开始播放。 So when the sound finishes, the call finishes too. 因此,当声音结束时,通话也会结束。 I need that the sounds starts when i answer the call and (if it's possible) it make a loop, playing once and once again until i hangup. 我需要在我接听电话时开始声音,并且(如果可能的话)使其循环播放,一次又一次播放,直到挂断为止。 The command: 命令:

channel originate DAHDI/4/156XXXXXXX application Playback abandon-all-hope

I'm a newbie at Asterisk... And sorry about my poor english. 我是Asterisk的新手,很抱歉我的英语不好。 Thanks a lot. 非常感谢。

That mean your dahdi channel setuped incorrect and asnwer call imidiatly, not when you answer your phone(ring detection not work). 这意味着您的dahdi通道设置不正确,并且会立即接听电话,而不是在接听电话时(振铃检测不起作用)。

You should consult your card manual and manuals in internet, how to setup dahdi card is not question for SO. 您应该在互联网上查阅您的卡手册和手册,因此如何设置dahdi卡不是问题。

Sorry, no other way. 对不起,没有其他办法了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM