[asterisk-users] [1.4] Failed callfile doesn't jumpto"failed"extension

Steve Edwards asterisk.org at sedwards.com
Fri Mar 18 12:08:52 CDT 2011


On Behalf Of Gilles

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

On Fri, 18 Mar 2011, Danny Nicholas wrote:

> I believe you will achieve the desired result by replacing ${REASON} 
> with ${HANGUP_CAUSE}.

REASON is documented as being valid in the 'failed' extension. If it is 
not working as you expect it to, maybe you could read through the source 
(/usr/src/asterisk-x.x.x.x/main/pbx.c) to understand why.

You could always submit a patch...

HANGUP_CAUSE should be HANGUPCAUSE.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list