Hi all, Now I'm working with a E400P, and I don't now if it's possible to do the following. I want that and AGI script (Perl) recieve a call, and the user introduce the date, the time and the destination phone number (where the temporized AGI must call). Before an AGI script will call to that number in the date and time introduced by user. That's possible, and it's how can I do it???? Thanks a lot. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030618/aa11a47a/attachment.htm
Hey Xisco, Im not sure what you mean by "temporized AGI script" ;) but here's how i would do it (although there are probably a number of other ways). 1. make an agiscript that catches the date and time the user introduces via his keypad into an sqldatabase. 2. run some cronscript every 5 seconds that checks the database and checks the calls to be made. If a record is found that matches the time (give or take 5 seconds), make a file out.call in /var/spool/asterisk/outgoing and mark that record as processed. (check /usr/src/asterisk/sample.call for an example). 3. a call should be made, thats all there is to it ;). Regards, Tom On Wed, 18 Jun 2003, Xisco Mateu wrote:> Hi all, > > Now I'm working with a E400P, and I don't now if it's possible to do the following. I want that and AGI script (Perl) recieve a call, and the user introduce the date, the time and the destination phone number (where the temporized AGI must call). Before an AGI script will call to that number in the date and time introduced by user. That's possible, and it's how can I do it???? > > Thanks a lot.
Tom De Wispelaere wrote:> >2. run some cronscript every 5 seconds that checks the database and checks >the calls to be made. > > >cron only wakes up once a minute... Cheers, Holger von Ameln
You can use 'at' utility to copy a file that you prepare one you execute AGI script. Look at asterisk/sample.call. Martin On Wed, 18 Jun 2003, Xisco Mateu wrote:> Hi all, > > Now I'm working with a E400P, and I don't now if it's possible to do the following. I want that and AGI script (Perl) recieve a call, and the user introduce the date, the time and the destination phone number (where the temporized AGI must call). Before an AGI script will call to that number in the date and time introduced by user. That's possible, and it's how can I do it???? > > Thanks a lot.