reason values (was: [Asterisk-Dev] Re: Originate Call and Unique ID)

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Sun Sep 4 16:04:12 MST 2005


On Thursday 01 September 2005 03:41, Joerg Lauer wrote:
> Stefan Reuter wrote:
> > The OriginateFailure event contains an attribute called "Reason"
> > for that purpose.
>
> Since I couldn't find a list of possible values for "Reason"
> online, I looked through the asterisk source code yesterday and
> found the following values as possible values of reason:
>
> - AST_CONTROL_HANGUP     1
> Other end has hung up
> - AST_CONTROL_RINGING    3
> Remote end is ringing
> - AST_CONTROL_ANSWER     4
> Remote end has answered
> - AST_CONTROL_BUSY       5
> Remote end is busy
> - AST_CONTROL_CONGESTION 8
> Congestion (circuits busy)
>
> Could someone here tell me wether this are all possible values and
> wether this are the only possible values, at the moment.

It can also return 0, which doesn't have a corresponding macro, and
which probably can be interpreted to mean that the remote end was not
able to be reached (i.e. major failure).

-- 
Tilghman



More information about the asterisk-dev mailing list