<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.10.1">
</HEAD>
<BODY>
Hi All,<BR>
<BR>
I have been struggling with the auto dial out in asterisk. I am trying to get a call to be auto dialed and play back a message once the line is answered. So far I have been unsuccessful. <BR>
Currently what happens is I have my .call file. I mv it into /var/spool/asterisk/outgoing. The call is initiated and that all works, my problem is that it does not wait for the line to be answered before playing the message back. It immediately after dialing the number begins playing the message and is done playing it before the person even answers the phone.<BR>
Does anyone know what I can do to get this working.<BR>
<BR>
I want to be able to launch a script from cron that will create the .call file and mv it into the outgoing directory. That is all working currently. Here is a sample of what my .call file looks like and what my extensions.conf looks like.<BR>
<BR>
.call<BR>
<BR>
Channel: Zap/3/1234567890<BR>
Callerid: 1234567890<BR>
MaxRetries: 200<BR>
RetryTime: 30<BR>
WaitTime: 45<BR>
Context: outboundmsg1<BR>
Extension: s<BR>
Priority: 1<BR>
<BR>
extensions.conf ----- snip ---------<BR>
[outboundmsg1]<BR>
exten => s,1,AbsoluteTimeout,40 <BR>
exten => s,2,DigitTimeout,5<BR>
exten => s,3,ResponseTimeout,10<BR>
exten => s,4,Answer<BR>
exten => s,5,Wait(1)<BR>
exten => s,6,Playback(outboundmsgs/msg1) ; "play outbound msg"<BR>
exten => s,7,Background(outboundmsgs/how_to_ack) ; "Press 1 to replay or 2 to acknowledge receiving this message"<BR>
exten => 1,1,Goto(s,5) ; replay message<BR>
exten => 2,1,Goto(msgack,s,1) ; acknowledge message<BR>
<BR>
exten => t,1,Playback(vm-goodbye)<BR>
exten => t,2,Hangup<BR>
<BR>
exten => T,1,Hangup<BR>
<BR>
Thanks in advance for any suggestions.<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<B><I><FONT SIZE="4"><FONT COLOR="#000080">Jon Scottorn</FONT></FONT></I></B><BR>
<I><FONT COLOR="#000080">Systems Administrator</FONT></I><BR>
<I><FONT COLOR="#000080">The Possibility Forge, Inc.</FONT></I><BR>
<I><FONT COLOR="#000080">http://www.possibilityforge.com</FONT></I><BR>
<I><FONT COLOR="#000080">435.635.0591 x.1004</FONT></I>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>