Dial Maxretries in the dialplan?

In my asterisk 14.0.2 dialplan I am using this proc to dial out to external numbers but it dials the number 4 times before giving up and going to voicemail. I can’t find a config file or an example of how to set maxretries to 0 in the dialplan. Is it possible?

[subVoicemail]
exten => start,1,Log(NOTICE, Dialing out from ${CALLERID(all)} to ${ARG1} through Twilio)
   same => n,Dial(PJSIP/${ARG2}@twilio0)
   same => n,VoiceMail(${ARG3}@default,${IF($[${DIALSTATUS} = BUSY]?b:u)})
   same => n,Hangup()

Based on your dialplan, I don’t think you’re really dialing 4 times, but rather just dialing for a really long time. The default Dial timeout is long - 136 years - and it doesn’t look like you’ve specified a dial timeout.

What happens if you change your Dial invocation to something like:

    same => n,Dial(PJSIP/${ARG2}@twilio0,30)
1 Like