Posted: Sun Mar 30, 2003 6:59 pm Post subject: [Asterisk-Dev] "Make phone call on demand" using AGI?
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?
Posted: Sun Mar 30, 2003 8:41 pm Post subject: [Asterisk-Dev] "Make phone call on demand" using AGI?
On Sun, 2003-03-30 at 12:59, Brian Capouch wrote:
Quote:
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.
Posted: Sun Mar 30, 2003 9:36 pm Post subject: [Asterisk-Dev] "Make phone call on demand" using AGI?
Steven Critchfield wrote:>
Quote:
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.
Posted: Sun Mar 30, 2003 9:55 pm Post subject: [Asterisk-Dev] "Make phone call on demand" using AGI?
On Sun, 2003-03-30 at 15:36, Brian Capouch wrote:
Quote:
Steven Critchfield wrote:>
>
> 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
> ---------------
>
Hmm. I set something up just about like that, viz:
-- Attempting call on Zap/1/12125551212 for application
Playback(hibob) (Retry 1)
> Channel Zap/1-1 was answered.
> Lauching Playback(hibob) on Zap/1-1
-- Playing 'testMsg'
WARNING[278543]: File file.c, Line 649 (ast_waitstream): Unexpected
control subclass '5'
WARNING[278543]: File file.c, Line 649 (ast_waitstream): Unexpected
control subclass '5'
WARNING[278543]: File file.c, Line 649 (ast_waitstream): Unexpected
control subclass '5'
WARNING[278543]: File file.c, Line 649 (ast_waitstream): Unexpected
control subclass '5'
WARNING[278543]: File file.c, Line 649 (ast_waitstream): Unexpected
control subclass '5'
WARNING[278543]: File file.c, Line 649 (ast_waitstream): Unexpected
control subclass '5'
WARNING[278543]: File file.c, Line 649 (ast_waitstream): Unexpected
control subclass '5'
WARNING[278543]: File file.c, Line 649 (ast_waitstream): Unexpected
control subclass '5'
WARNING[278543]: File file.c, Line 649 (ast_waitstream): Unexpected
control subclass '5'
-- Hungup 'Zap/1-1'
It looks to me like asterisk is playing the message for the amusement of
the dial tone!!
I'm guessing, you are using a X100P since you specified a specific
channel. I doubt you get the ability to know when the otherside answers.
Maybe what you should do then is use the ability to drop a call to an
extension that will wait a few seconds after the dial before playing
audio, and maybe loop through the audio until hangup.
--
Steven Critchfield <critch@basesys.com>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum