Extension config [Redial if call not passed/Re-try] RESOLVED

Hi,
I would like to configure my asterisk extension to redial / retry to call user twice if asterisk for unable to reach user 1st time due to any reason Currently the following is my extensions.conf file

[general]

static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no

[globals]

[from-sip]
exten => _X.,1,NoOp(${SIPCHANINFO(peerip)})
exten => _X.,n,AGI(auth.php)
exten => _X.,n,Set(IAXVAR(route)=${ROUTE})
exten => _X.,n,NoOp(${IAXVAR(route)})
exten => _X.,n,GotoIf($["${DIALSTR}" = ""]?noroute:route)
exten => _X.,n(route),Dial(${DIALSTR},,M(answer^${CALLID}))
exten => _X.,n(noroute),NoOP("No Dial String")
exten => h,1,AGI(cdr.php,${CDR(uniqueid)})



[macro-answer]
exten => s,1,AGI(activecall.php,${ARG1})

Looking forward to your kind response.
Thank you.

Repeat the dial line, without the label.

NB you need to skip a priority before noroute, unless you also want it to be reached when the dial fails (for the second time).

[quote=“david55”]Repeat the dial line, without the label.

NB you need to skip a priority before noroute, unless you also want it to be reached when the dial fails (for the second time).[/quote]

Thank you David. The dial plan is working as per needed.