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

Joerg Lauer lauer at osiag.de
Thu Sep 1 01:41:47 MST 2005


Hello Stefan,

thanks for your answer.

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.

So far I've only been able to create 1 & 4, using a SIP softphone, since 
I haven't hooked up the rest of the hardware to the asterisk box so far.

Thanks again in advance
Joerg



More information about the asterisk-dev mailing list