ODT Export
 

No code yet, just ideas.

Communicating the Call from Zabbix to Asterisk

A Zabbix remote action calls a script that generats an asterisk call file that will initiate the call. This can be done by dropping call files into /var/spool/asterisk/outgoing

Needed information to create a call:

  • Who we're calling
  • Working Trunk

Scripting the Call

Next, the call starts and it needs to be scripted. This can be done with AGI, AEL, or good 'ol extensions. During the call script, it is necessary to be able to act in based on the discussed anticipated outcomes from the call.

A few things to anticipate.

  • The person called doesn't answer
  • The person called hangs up
  • The person accepts the alert
  • The person denies the alert

Based on the above:

  • No more calls (stop calling)
  • Call someone else

No Answer

Use asterisk 1.4 and the archive=yes option so that we have a file created after the call completes and we can read the results of the phone call. Another option would be to use asterisk manager.

Hangs Up

Alert Accepted

Alert Rejected

Limitations

  • Once the calling is triggered from a Zabbix action, there is no more communication with Zabbix
  • The alert is generic, it does not state the problem except maybe to check your email or read your text messages

Suggestions welcome.

Links to get started

 
howto/config/alerts/notificationsusingasterisk.txt · Last modified: 2009/08/24 16:46 by richlv
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki