Play MOH and call initiation


I have got following request:
i have 60 seconds moh file.

Customer is asking to play the moh for 27 seconds - and only after 27 to initiate the call (with DIAL)
While doing the DIAL i need to keep playing the file (from seconds 28 29 etc…).

I am using asterisk 13.

Is there a way to implement such a request?

exten => s,1,MusicOnHold(announcement)
same => n,Wait(27)
same => n,Dial(PJSIP/XXX)

also please upgrade to asterisk 20 or atlest 18

Thank you for the reply will check it up!

if that is not working then this hack

exten => s,1,Dial(Local/s@DelayDial,,m(announcement))
exten => s,1,Wait(27)
same => n,Dial(PJSIP/XXX)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.