简体   繁体   中英

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. So i want that zabbix use freepbx (asterisk) to call me if something is wrong. I have tried to make a call from asterisk CLI, and it works, but the Playback application start playing before i answer the call. 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. Thanks a lot.

That mean your dahdi channel setuped incorrect and asnwer call imidiatly, not when you answer your phone(ring detection not work).

You should consult your card manual and manuals in internet, how to setup dahdi card is not question for SO.

Sorry, no other way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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