[Asterisk-Dev] "Make phone call on demand" using AGI?
Brian Capouch
brianc at palaver.net
Sun Mar 30 14:36:05 MST 2003
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:
**************
Channel: Zap/1/12125551212
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Application: Playback
Data: testMsg
*****************
And here is what asterisk does with it:
-- 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!!
Thanks in advance if anyone can set me straight here. . .
B.
More information about the asterisk-dev
mailing list