Thanks for the code! I will see if I can make that work.
In regards to how and why, its actually a very simple procedure. Asterisk has a directory /var/spool/asterisk/outgoing/ , when you drop a properly formated .call file into the dir, it follows the specified .call file and makes an outbound call. Its how you initiate outbound calling in asterisk.
That being said, I am building an alert system for the public school district I administer, this system is managed via a web based 'wizard' that I have made. It also send sms txts, and emails to registered users. When the alert is configured, it drops all of the appropriate .call files into a temp directory, a coulple thousand. Then a cron job moves those files into the outgoing directory every 1 min. However, if there are more calls trying to get made than the amount of channels (phone lines) available, it will just skip the call. So, If i dropped in 2000 call files, with only 40 channels available, it would only make 40 calls. So, I need just need to drop in no more than 30-40 at a time. Hence the requested bash script.