[Asterisk-Users] Temporized AGI Scripts.

Tom De Wispelaere musashi at besite.be
Wed Jun 18 02:55:41 MST 2003


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.




More information about the asterisk-users mailing list