<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Here is a simple Perl implementation to generate call files . .&nbsp;<div><br></div><div>You'll still need something for it to execute after the call files are generated; either a simple AGI app that streams a file, a Macro, or a nice dialplan layout.</div><div><br></div><div>In any case, you could call something like this very rapidly with whatever parameters to create as many call files as you felt like, and Asterisk would start acting on them immediately (if the call files were generated without wait time).</div><div><br></div><div>- Darren</div><div><br></div><div><br></div><div><div>_____________________________</div><div><br></div><div><a href="mailto:dmsessions@gmail.com">dmsessions@gmail.com</a></div><div><a href="http://www.darrensessions.com">http://www.darrensessions.com</a></div><div><span class="Apple-style-span" style="font-family: Arial; line-height: 14px; white-space: pre-wrap; "><a href="http://www.linkedin.com/in/dsessions">http://www.linkedin.com/in/dsessions</a></span></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="line-height: 14px; white-space: pre-wrap; ">_____________________________</span></font></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="line-height: 14px; white-space: pre-wrap;"><br></span></font></div></div><div><br><div><br></div><div><div>use strict;</div><div>use warnings;</div><div><br></div><div>sub call_file_name_generator {</div><div>&nbsp;&nbsp;my ($len, $str, @chars);</div><div>&nbsp;&nbsp;$len = shift;</div><div>&nbsp;&nbsp;@chars &nbsp;= ('a'..'z','A'..'Z','0'..'9','_');</div><div>&nbsp;&nbsp;foreach (1..$len) &nbsp;{</div><div>&nbsp;&nbsp; &nbsp;$str.= $chars[rand @chars];</div><div>&nbsp;&nbsp;}</div><div>&nbsp;&nbsp;return($str);</div><div>}</div><div><br></div><div>sub call_file_generator {</div><div><br></div><div>&nbsp;&nbsp;use Asterisk::AGI;</div><div><br></div><div>&nbsp;&nbsp;my ($channel, $retries, $retry_interval, $wait_time, $application, $data, $ob_clid) = @_;</div><div><br></div><div>&nbsp;&nbsp;if (!$channel || !$retries || !$retry_interval || !$wait_time || !$application || !$data || !$ob_clid)</div><div>&nbsp;&nbsp; &nbsp;$AGI->verbose("Missing data to create call file!!", 1);</div><div>&nbsp;&nbsp; &nbsp;return(1);</div><div>&nbsp;&nbsp;}</div><div><br></div><div>&nbsp;&nbsp;my $ob_file = "/var/spool/asterisk/".call_file_name_generator().".call";</div><div><br></div><div>&nbsp;&nbsp;unless(open(CFILE, ">" . $ob_file)) {</div><div>&nbsp;&nbsp; &nbsp;$AGI->verbose("Can't open call file for writing!!", 1);</div><div>&nbsp;&nbsp; &nbsp;return(1);</div><div>&nbsp;&nbsp;}</div><div><br></div><div>&nbsp;&nbsp;$file = "\#\nChannel: ".$channel."\n\nMaxRetries: ".$retries."\n";</div><div>&nbsp;&nbsp;$file.= "RetryTime: ".$retry_interval."\nWaitTime: ".$wait_time."\n\n";</div><div>&nbsp;&nbsp;$file.= "Application: ".$application."\nData: ".$data."\nCallerid: ".$ob_clid."\n";</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;printf CFILE $file;</div><div><br></div><div>&nbsp;&nbsp;close(CFILE);</div><div>&nbsp;&nbsp;system("mv $file /var/spool/asterisk/outgoing");</div><div>&nbsp;&nbsp;return(0);</div><div>}</div><div><br></div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><br class="Apple-interchange-newline"></div><br><div><br></div></span></div></span></div></span></div></span></div></span><br class="Apple-interchange-newline"> </div><br><div><div>On Aug 8, 2008, at 1:48 PM, Bradley Sumrall wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I am a returning Asterisk user.<br><br>It has been a few years since I played with it and trying to get a server up for proof of concept<br><br>What is the easiest method of having asterisk dial 5 numbers simultainiously and deliver a pre recorded message?<br><br><br><br><br>_______________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br><br>AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>Register Now: <a href="http://www.astricon.net">http://www.astricon.net</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div></blockquote></div><br></div></div></body></html>