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

Anthony Messina amessina at messinet.com
Fri Mar 18 17:56:12 CDT 2011


On 03/18/2011 05:43 PM, Gilles wrote:
> On Fri, 18 Mar 2011 10:08:52 -0700 (PDT), Steve Edwards
> <asterisk.org at sedwards.com> wrote:
>> 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 guys. In which case does Asterisk jump to the "failed"
> extension?

You need to define the 'failed' extension in your context to have the
${REASON} variable set (I've found).

exten => failed,1,NoOp(Failure reason is: ${REASON})

-- 
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110318/e4626d87/attachment.pgp>


More information about the asterisk-users mailing list