This is that section for me, I commented out the ones that were there and modified per your instructions.
[queuedial]
; this piece of dialplan is just a calling hook into the [qm-queuedial] context that actually does the
; outbound dialing - replace as needed - just fill in the same variables.
exten => _XXX.,1,Set(QDIALER_QUEUE=q-${EXTEN:0:3})
exten => _XXX.,n,Set(QDIALER_NUMBER=${EXTEN:3})
;exten => _XXX.,n,Set(QDIALER_AGENT=Agent/${CALLERID(num)})
exten => _XXX.,n,Set(QDIALER_AGENT=Agent/${FROMEXTEN})
;exten => _XXX.,n,Set(QDIALER_CHANNEL=SIP/${QDIALER_NUMBER})
exten => _XXX.,n,Set(QDIALER_CHANNEL=SIP/MYOUTBOUNDTRUNKNAME/${QDIALER_NUMBER})
exten => _XXX.,n,Set(QueueName=${QDIALER_QUEUE})
exten => _XXX.,n,MixMonitor(Q-${QDIALER_QUEUE}-${UNIQUEID}.WAV,b,)
;exten => _XXX.,n,Set(CALLERID(all)="1234567890" <1234567890>) ; Uncomment and change this if you need to set your own caller ID
exten => _XXX.,n,Goto(qm-queuedial,s,1)
Do I need to modify this section or any of the others? I see QDIALER referenced a few different places.
; extension 28: agent custom dial
exten => 28,1,Answer
exten => 28,n,NoOp( "QM: Agent Custom Dial. Dialing ${EXTTODIAL} on queue ${OUTQUEUE} made by '${QM_LOGIN}'" )
exten => 28,n,Set(QDIALER_QUEUE=${OUTQUEUE})
exten => 28,n,Set(QDIALER_NUMBER=${EXTTODIAL})
exten => 28,n,Set(QDIALER_AGENT=Agent/${AGENTCODE})
exten => 28,n,Set(QDIALER_CHANNEL=SIP/${QDIALER_NUMBER})
exten => 28,n,Set(QueueName=${QDIALER_QUEUE})
exten => 28,n,MixMonitor(Q-${QDIALER_QUEUE}-${UNIQUEID}.WAV,b,)
;exten => 28,n,Set(CALLERID(all)="1234567890" <1234567890>) ; Uncomment and change this if you need to set your own caller ID
exten => 28,n,Goto(qm-queuedial,s,1)
exten => 28,n,Hangup
When I dial 8 123 18004563355 I get the following in the asterisk logs
-- Executing [812318004563355@from-internal:1] ResetCDR("SIP/9385-00008cd8", "") in new stack
-- Executing [812318004563355@from-internal:2] NoCDR("SIP/9385-00008cd8", "") in new stack
-- Executing [812318004563355@from-internal:3] Progress("SIP/9385-00008cd8", "") in new stack
-- Executing [812318004563355@from-internal:4] Wait("SIP/9385-00008cd8", "1") in new stack
-- Executing [812318004563355@from-internal:5] Progress("SIP/9385-00008cd8", "") in new stack
-- Executing [812318004563355@from-internal:6] Playback("SIP/9385-00008cd8", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
-- <SIP/9385-00008cd8> Playing 'silence/1.ulaw' (language 'en')
-- <SIP/9385-00008cd8> Playing 'cannot-complete-as-dialed.ulaw' (language 'en')