I want to create a simple bash script that performs the QUEUE_MEMBER_COUNT function and if $result = 0 then it sends an email.
I’m guessing AGI is the way to go but i looked through the list of agi commands (http://gundy.org/asterisk/agi.html) and couldn’t find anything relating to executing a function.
You probably want to use the AMI instead of AGI for this. AGI’s typically run on a live channel (But you can go around this using local channels) voip-info.org/wiki/view/Asterisk+manager+API
Thanks, this seems to be setting me down the right path.
But…!
Using the bash login example on the wiki I am unable to login. * CLI is reporting an authentication error but my manager.conf and script passwords match.