[Asterisk-Dev] "Make phone call on demand" using AGI?

Steven Critchfield critch at basesys.com
Sun Mar 30 13:41:38 MST 2003


On Sun, 2003-03-30 at 12:59, Brian Capouch wrote:
> I hope this doesn't sound dumb. . . I would like to try to send a 
> command to asterisk (or otherwise invoke an instance of asterisk) to 
> make a phone call to a given number, and then play a voice file.
> 
> What I'm after is the ability to have my "systems up" monitoring 
> apparatus make some calls in case there are problems.  Ideally, I could 
> choose the message based on input from the monitoring program.
> 
> Is this going to be heavy-duty programming, or might there be an example 
> of such out there somewhere?

AGI is for dealing with inprogress calls. Construct a sample.call file
to call out and play the message you need. sample.call is in the
asterisk cvs checkout. You would want something that looks like below.

--Sample.call--
Channel: Zap/g1/9XXXXXX 
MaxRetries: 5
RetryTime: 60
WaitTime: 30

Application: Play
Data: DNS-down
---------------

-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-dev mailing list