문제

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
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top