[Asterisk-Users] outbound dialing / wait for keypress?
tad
tad at media.mit.edu
Sun Dec 14 13:17:14 MST 2003
hi there. i've got a question about outbound dialing.
here's my scenario:
1. i build a list of phone numbers from a database
2. when a call comes in, i begin dialing from the list
3. when an outbound call is answered, i connect the caller to that line.
so far, i'm able to do this with an agi script to dynamically build a
dialplan. i make repeated use of this perl call:
system("asterisk -r -x 'add extension 100,++$i,Dial(Zap/2/[number],15) into local;
to create a dialplan that looks like this:
s,1,Answer
s,2,agi,script.agi
s,3,Goto(local,100,1)
100,1,Dial(Zap/2/[number],15)
100,2,Dial(Zap/2/[another_number],15)
...
so far, so good - if the first number dialed is busy or times out,
it tries dialing the next number, and so on until one is answered at which
point the incoming and outgoing calls are connected.
my problem is how to handle the case where an outbound call is answered
by, say, an answering machine. ideally, i'd like Dial to work such that it
can be configured to play a recording and wait for a keypress before
considering the call answered. however, this doesn't seem to be the case.
i imagine that someone else has already encountered this problem - if so,
does anyone know what the solution is (i've already checked the various
resources, and haven't found anything). if not, does anyone have thoughts
on how best to approach this?
thanks,
tad
More information about the asterisk-users
mailing list