[asterisk-users] how to get the status of failed call files

Rich Doughty rich at opusvl.com
Thu Feb 1 02:53:14 MST 2007


Richard Lyman wrote:
> Rich Doughty wrote:
>> i am creating call files, and catching successfully the ones that don't
>> connect in a 'failed' extension. can anyone tell me how to find out the
>> reason for the failure (ie busy, no answer).
>>
>> ${DIALSTATUS} doesn't appear to get set (presumably because Dial() isn't
>> used) and channel_status doesn't seem to be any good.
>>
>> thanks in advance.
>>
> the event you received for OriginateFailure has a 'Reason: ' code.
> 
> that code breaks down as
> 
> 0 = UNKNOWN FAILURE or DISCONNECT
> 3 = AST_CONTROL_RINGING (no answer)
> 5 = AST_CONTROL_BUSY
> 1 = AST_CONTROL_HANGUP
> 8 = AST_CONTROL_CONGESTION

i didn't originate the call with manager, but with a call file, so i can't
get manager events. i there any other way of finding this out?


-- 

   - Rich Doughty


More information about the asterisk-users mailing list