• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 792
  • Last Modified:

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 ?

Thanks

Robert.
0
robert90
Asked:
robert90
  • 2
1 Solution
 
naulivCommented:
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

[qName]
periodic-announce=continue-hold-or-two
periodic-announce-frequency=60
context=exitqueue

In extensions.conf

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


Let us know if you have any question.
0
 
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.
0
 
robert90Author Commented:
it works flawlessly, thanks a **lot** for your help!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now