Play a mesage during call

I would like to play a recorded message a certain time after the call has been started. That is, both parties are talking and suddenly a message is played and can be heard by the caller side. May I know if this Is technically possible?

Thank you for any insights.

I don’t know if this is possible, but I am very curious as to why you would like this feature, if you do not mind my asking.

use the ‘L’ flag on the dial command, which is designed to be used for call timers.

voip-info.org/wiki-Asterisk+cmd+Dial

let’s say you want to play a message 3 minutes into the call:

exten => _9NXXNXXXXXX,1,Set(LIMIT_WARNING_FILE=audio_file) exten => _9NXXNXXXXXX,n,Set(LIMIT_PLAYAUDIO_CALLER=yes) exten => _9NXXNXXXXXX,n,Dial(Zap/g1/${EXTEN:1},,L(10000000, 982000,))

audio_file = file you want played to caller
10000000 = call limit time in ms, which is about 2 and a half hours
9820000 = 10000000-(3 min * 60 seconds/min * 1000 ms/second)

it’s not the most elegant solution, but it works (we use it to play a beep every 30 seconds on our lines, to indicate we’re recording the call).

hope this helps.

That seems to be exactly what I am looking for. Thanks you much!