[A*UG] AGI Resources?

Gil Kloepfer aaug at kloepfer.org
Mon Mar 6 22:07:07 CST 2006


On Mon, Mar 06, 2006 at 08:55:58PM -0600, David Bluestein II wrote:
> 2) I want my system to call me when it receives a warning notification. 
> Basically, if a condition occurs (e.g. drive is filling up), I want a 
> cron job that will activate a call to my number and tell me so. Is this 
> an AGI type application, or something else?

This is probably most easily done using the /var/spool/asterisk/outgoing
directory.  A cron job that ran periodically on your system that checked
disk space could drop a file in that directory that would call you and
send you to a special "extension" that told you that your disk was low.

The file can be any name, and looks something like:

     Channel: SIP/5551212 at outgoingline
     Callerid: Disk Space Monitor <1234>
     Context: default
     Extension: 1234
     Priority: 1

This would place a call to 5551212 on SIP device called "outgoingline"
and when the call is answered it would place a call to extension 1234 in
context [default] at priority 1 (step 1).  The Callerid tag is there
in case you were calling an extension within your own PBX, for example,
so you'd see on the CallerID of the disk monitor when your phone rang.

Hope that helps.  There's probably other ways to do this as well,
but this is one of the easiest ways.

Gil.


More information about the Austin-Asterisk-Users-Group mailing list