Question

alt text

I dont know where to save the script or how to link it in this field. I found this script on a different website, and I feel that it would work fine for what I need it to do, just alert me via email when the truck is down.

#!/bin/bash
echo "You're screwed, the trunk you bought is down"|mail -s "You have a problem" email@domain.com
Was it helpful?

Solution

You need to put the AGI script into the directory

/var/lib/asterisk/agi-bin

and make sure it's executable with $chmod +x

Then put the full name to the script into the box, and enable it with the checkbox.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top