[asterisk-users] Dial and start music on hold after timeout

Jean Aunis jean.aunis at prescom.fr
Mon Aug 22 10:36:02 CDT 2016


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 ?

Best regards,

Jean Aunis

More information about the asterisk-users mailing list