I am searching a way to dial a SIP peer, and if it does not answer within 20 seconds, play an announcement to the caller. This means that the caller would hear a ring tone for 20 seconds, and only then hear the announcement if the callee did not answer.
I know it is possible to do this with ARI, but in this particular case I
do not want to use ARI. I would like to do this purely with dialplan and AGI scripts, but I cannot find a way. I have read about the “m” option of Dial application, but it starts the announcement immediately, whereas I would like to start it after 20 seconds of timeout.
Does anybody have an idea ?