Hey all,

This should be an easy one. I have a few different queues and wanted to
set up a standard macro to handle them, so I can shrink the dial plan
down and stop having so much redundancy. But when I try to use it, i get
a "no answer".

Here's what does work (non macro):
exten => 5054,1,Answer()
exten => 5054,n,Ringing()
exten => 5054,n,Wait(2)
exten => 5054,n,Queue(itdept,t|||30)
exten => 5054,n,Voicemail(u5054)  ; If unavailable, send to voicemail
exten => 5054,n,Hangup


Here's the macro I tried to make and use:
[coqueuevm]
; Call One Queue - Goto to voicemail after 30 secs
; ${ARG1} - Queue Name
; ${ARG2} - Voicemail
exten => s,1,Answer()
exten => s,n,Ringing()
exten => s,n,Wait(2)
exten => s,n,Queue(${ARG1},t|||30)
exten => s,n,Voicemail(u${ARG2})
exten => s,n,Hangup()
------
exten => 5054,1,Macro(coqueuevm,itdept,5054)

any thoughts?
Rob


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to