for outbound calls I used to use this code:
[salida]
exten => _8.,1,Dial(Zap/g2/${EXTEN:1})
exten => _8.,2,Hangup
and I changed for:
[queuedial]
exten => _8.,1,Set(MY_QUE=OUT)
exten => _8.,2,Set(MY_NUM=${EXTEN:1})
exten => _8.,3,Set(MY_AGENT=${CALLERIDNUM})
exten => _8.,4,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _8.,5,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten => _8.,6,AGI(queueDial.agi|${MY_NUM}|Zap/g2/${MY_NUM}|q-${MY_QUE}|Agent/${MY_AGENT})
exten => _8.,7,Hangup
but it doesn't work, there is anything else to change?