1 Feb 2007 01:11
Re: how to get the status of failed call files
Richard Lyman <pchammer <at> dynx.net>
2007-02-01 00:11:16 GMT
2007-02-01 00:11:16 GMT
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
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
RSS Feed