Twilio, is it possible to have 5 minute delays between a call with Rest api?
I have a sequential dialling app but I want to add 5 minute de开发者_Python百科lays between each call.. I am thinking cron job. is this possible? If so what do I need to do to make this happen? I have no experience with cron..
I would just set up some sort of queue in a database, then every 5 minutes execute a script that reads the next phone number to call from the queue. Running a script every 5 minutes with a cron will look like this:
*/5 * * * * php /path/to/call/script.php
I just found sleep function in PHP manual which did just what I needed. Plus its really simple, can't believe not many knew of this.
http://php.net/manual/en/function.sleep.php
精彩评论