I want to combine zabbix and freepbx. All warnings of zabbix become a call sent to the administrator via asterisk
I have done the file auto.call
‘’ Channel: SIP / Trunk / 0376464224
Extension: 10 ‘’
by cp auto.call / var / spool / asterisk / outgoing /
how to warn zabbix to run the file auto.call
In addition to the above, you can do more
The shell script on Zabbix could copy the call file on the remote PBX with e.g. sftp. Asterisk also has other APIs that can originate calls.
However, assuming that your 037 number is a (Viettel) mobile phone, I’d recommend sending an SMS instead, since it can easily convey information about the alert and provides a record. This is a simple API request to any SMS-capable trunking provider and doesn’t involve FreePBX at all. Some examples: https://www.zabbix.com/integrations/sms
You never copy into the outgoing spool. You move files to it. The outgoing spool will trigger the moment is sees a file, copying causes that file to be seen before it is completely written and can cause it to start a call prematurely. Always move the full file at once to the directory, never copy it.