Hi, I have a website where customers enter their phone numbers to be called. I'd like them to have to put in information and 'schedule' a call. 1) Call Immediately 2) Call in the next _ minutes 3) Call me tomorrow, same time. So, Asterisk will pull two variables from this php websites, $phonenumber and $timetocall. $timetocall will need to be calculated as to exactly what time Asterisk will need to call. Then, Asterisk calls it (by way of call files? Either putting the call file in at the time it needs to be called, or I don't know what else) and then if the call is has a human on it, plays a message saying "We're now transferring you to an agent. Please wait." And transfer that call to a queue. How can I do this? Is there something prebuilt like this? Thanks, Mark. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080618/7af5f5f6/attachment.htm
I don't know if there is something like that prebuilt. But is seems to be quite easy. Push the call events in the database, let a cron run ever minute and create a .call file for evry call thet is due. The alternative is to not use a database and create a .call file with a future date/time. Afaik asterisk processes only callfiles with a past date/time. In the call context ask the callee to press a digit to be sure he is human (press one to be connected to one of our agents) and then - as you said - drop him in a cue. Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080618/3c89484f/attachment.htm
On 15:45, Wed 18 Jun 08, Mark Hamilton wrote:> Hi, > > > > I have a website where customers enter their phone numbers to be called. I'd > like them to have to put in information and 'schedule' a call. > > > > 1) Call Immediately > > 2) Call in the next _ minutes > > 3) Call me tomorrow, same time. > > > > So, Asterisk will pull two variables from this php websites, $phonenumber > and $timetocall. $timetocall will need to be calculated as to exactly what > time Asterisk will need to call. > > > > Then, Asterisk calls it (by way of call files? Either putting the call file > in at the time it needs to be called, or I don't know what else) and then if > the call is has a human on it, plays a message saying "We're now > transferring you to an agent. Please wait." And transfer that call to a > queue. > > > > How can I do this? Is there something prebuilt like this?I would store the info in a database (RDBMS, flat file, whatever) and have a cronjob running every minute that processes this info, creating call files when needed. -- Michiel van Baak michiel at vanbaak.eu http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD "Why is it drug addicts and computer aficionados are both called users?"
On Wed, 18 Jun 2008, Mark Hamilton wrote:> Hi, > > I have a website where customers enter their phone numbers to be called. I'd > like them to have to put in information and 'schedule' a call. > > > 1) Call Immediately > > 2) Call in the next _ minutes > > 3) Call me tomorrow, same time. > > So, Asterisk will pull two variables from this php websites, $phonenumber > and $timetocall. $timetocall will need to be calculated as to exactly what > time Asterisk will need to call. > > > > Then, Asterisk calls it (by way of call files? Either putting the call file > in at the time it needs to be called, or I don't know what else) and then if > the call is has a human on it, plays a message saying "We're now > transferring you to an agent. Please wait." And transfer that call to a > queue. > > > How can I do this? Is there something prebuilt like this?Reading the replies so-far... Cron jobs, databases, shell scripts... Ye Gods... Try reading the manual (or at least the wiki) http://www.voip-info.org/tiki-index.php?page=Asterisk+auto-dial+out Scroll down to the bit headed: How to schedule a Call in the Future Assuming you already have some PHP to write the call-file and move it into place, inserting a "touch" call after writing the file and moving it into place ought to be trivial... http://uk.php.net/manual/en/function.touch.php Gordon