I need to have my asterisk system act as a lunch / break buzzer. I currently have a paging system (IPbased) which is connected to my asterisk box. I want at a certain time of the day for the asterisk box to play a buzzing sound on my paging system. My paging system is on an extension e.g. 301. I think this is pretty simple.
I’ve been doing a little of my own research and found call files could be of some use, but I need this to be repeated every day.
here is the pseudo code:
if asterisktime == time(“8:00am”, “12:00pm”, “12:30pm”, “5:00pm”)
call extension 301
playback (“buzzing.wav”)
hangup
end if
But I want the buzzer to go off everyday at a certain time. Doesn’t a callfile get deleted once its executed? also can you help with the code a little?
=========================================
Just read on crontab, its seems that i can schedule a command - can you please hold my hand a little with this?
i think you need to create a copy and move it to the outgoing folder. if you try the cp command into the outgoing folder, chances are it starts getting executed before the file is completely copied so the call fails: