On 03/18/2011 05:43 PM, Gilles wrote:
> On Fri, 18 Mar 2011 10:08:52 -0700 (PDT), Steve Edwards
> <[email protected]> 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

Attachment: signature.asc
Description: OpenPGP digital signature

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to