command-line-interfaceasteriskplaybackfreepbx

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.


Solution

  • 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.