Send to a Voicemailbox from a Queue

I have setup the ability to transfer a call straight into somebody’s voicemail and it works just fine. The problem I am having is when a call came in via a Queue. The Agent press # for transfer and then *1XXXX where X is the extension. The moment the Agent press the * key the call hangsup.

  1. If I dial the Agent’s direct number it works.
  2. If I dial into a queue and then the Agent want to transfer me into voicemail it does not work.

Any ideas?

This is what I have in the [incoming] context of my Extensions.conf file.

;Transfer into Voicemail
exten => _*136XX,1,Voicemail(u${EXTEN:2})
exten => _*136XX,2,Hangup