Hi guys
My goal is to setup a system where the administrators can call a extension, record a message and the PBX will call a list of staff members cellphones, staff members can callback and listen to emergency update, then the system will play a beep and play the next message.
So I am thinking of something like the below
exten => s,n,Record(custom-updates/update%d:ulaw)
exten => s,n,Wait(2)
exten => s,n,Playback(please-wait)
exten => s,n,System(cp /etc/asterisk/custom-updates/new.call /tmp/)
exten => s,n,System(mv /tmp/new.call /var/spool/asterisk/outgoing/)
exten => s,n,Playback(thank-you)
Assuming this part should be working fine, I did not test it yet.
The callfile will call a couple of cellphones and ring for 5 seconds. I don’t want to give them an option to play the message, because of the outbound minute usage, they should rather call back and listen to the updates.
Now, this is the challenging part.
I want that once they callback:
- It should start playing the newest file in /custom-updates/ (being that each recording/file gets a new/higher number) once done, play a beep, and then the next, beep, next etc.
- When a caller presses a specific number it should go to the next file.
Thanks for any tips