Failed callfile doesn’t jump to”failed”extension

Home » Asterisk Users » Failed callfile doesn’t jump to”failed”extension

On Fri, 18 Mar 2011 10:14:37 -0500, “Danny Nicholas”
wrote:
>exten => start,n,Playback(manolo_camp-morning_coffee)
>;exten => start,n,Hangup()
>exten => start,n,Goto(${EXTEN}-${REASON})
>
>;not run
>;exten => failed,1,NoOp(Call ended with ${REASON})
>
>;not run
>;exten => s,1,NoOp(Call ended with ${REASON})
>
>;empty
>;exten => h,1,NoOp(Call ended with ${REASON})
>
>;not run
>exten => start-NOANSWER,1,NoOp(Call ended with ${REASON})
>===============
>
>Is this what you had in mind?
>
>Thank you.
>
>That’s the ticket.

Unfortunately, it can only jump to “h”, and ${REASON} is empty.

Based on…

www.voip-info.org/wiki/view/Asterisk+dial+plan+-+working+example

… I also tried this, but Asterisk doesn’t jump to any of those
extensions:
========= extensions.conf

exten => start,n,Playback(manolo_camp-morning_coffee)
;exten => start,n,Hangup()
;exten => start,n,Goto(${EXTEN}-${REASON})
exten => start,n,Goto(s-${DIALSTATUS},1)

exten => s-ANSWER,1,Hangup
exten => s-CANCEL,1,Hangup
exten => s-NOANSWER,1,Hangup
exten => s-BUSY,1,Busy ;Only works with SIP calls
exten => s-CHANUNAVAIL,1,Verbose(Not available)
exten => s-CONGESTION,1,Congestion
exten => _s-.,1,Congestion
exten => s-,1,Congestion
========= CLI