Asterisk Queue : Play a message "continue to hold or press 2 to leave a voicemail"

Dear Experts:

Once a caller has been queued by Queue(qName), how do we get the on-hold music to say "continue to hold of press 2 to leave a voicemail" and leave these windows of opportunities for the caller to press that number ?


Who is Participating?
naulivConnect With a Mentor Commented:
Robert, this is actually quite easy. All you need to do is specify the following in your queues.conf for the queue(e) you want to provide the feature:

* context=context-name
* periodic-announce=file-name
* periodic-announce-frequency=seconds  this is how frequently the message "continue to hold of press 2 to leave a voicemail" will be played. you don't need to do this at the onhold music level

Then in your dialplan, create a context [xxxxxxx], with one or more extensions (one digit extensions only)  matching the option you want.

With the example you provided, the result will be:

In queues.conf


In extensions.conf

exten => 2,1,Voicemail(1234@vmcontext)

Let us know if you have any question.
robert90Author Commented:
wao nauliv, that was a quick answer, thanks so much. it seems to be exactly what i need. i will be testing this tomorrow and let you know.
robert90Author Commented:
it works flawlessly, thanks a **lot** for your help!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.