How to play announcement to callers every X minutes

How would you implement a timer which will keep the user talking but would announce 5 minutes have passed 10 min have passed etc…

also how will you go about running processes in the background of a call for example play music on hold and wait for some query to return then according to the return carry on with the call.


See L parameter of Dial command: … k+cmd+Dial


Thanks but it is not exactly enough,
I would like to play a different anouncement every 10 min, just to the caller. the dial app only lets you play an announcement and repeat it every x ms and I need a different announcement every x ms and not nesseseraly during a dial app (but its a start)
something like 10 min have passed, 20 min have passed etc…

any help is appreciated