change the required dependency for codec_dahdi to only be satisfied by DAHDI and...
[asterisk-bristuff.git] / include / asterisk / causes.h
blobd76277d546465570324146616098a7d9b8fe2b89
1 /*
2 * Asterisk -- An open source telephony toolkit.
4 * Copyright (C) 1999 - 2005, Digium, Inc.
6 * Martin Pycko <martinp@digium.com>
8 * See http://www.asterisk.org for more information about
9 * the Asterisk project. Please do not directly contact
10 * any of the maintainers of this project for assistance;
11 * the project provides a web site, mailing lists and IRC
12 * channels for your use.
14 * This program is free software, distributed under the terms of
15 * the GNU General Public License Version 2. See the LICENSE file
16 * at the top of the source tree.
19 /*! \file
20 * \brief Internal Asterisk hangup causes
23 #ifndef _ASTERISK_CAUSES_H
24 #define _ASTERISK_CAUSES_H
26 /* Causes for disconnection (from Q.931) */
27 #define AST_CAUSE_UNALLOCATED 1
28 #define AST_CAUSE_NO_ROUTE_TRANSIT_NET 2
29 #define AST_CAUSE_NO_ROUTE_DESTINATION 3
30 #define AST_CAUSE_CHANNEL_UNACCEPTABLE 6
31 #define AST_CAUSE_CALL_AWARDED_DELIVERED 7
32 #define AST_CAUSE_NORMAL_CLEARING 16
33 #define AST_CAUSE_USER_BUSY 17
34 #define AST_CAUSE_NO_USER_RESPONSE 18
35 #define AST_CAUSE_NO_ANSWER 19
36 #define AST_CAUSE_SUBSCRIBER_ABSENT 20
37 #define AST_CAUSE_CALL_REJECTED 21
38 #define AST_CAUSE_NUMBER_CHANGED 22
39 #define AST_CAUSE_DESTINATION_OUT_OF_ORDER 27
40 #define AST_CAUSE_INVALID_NUMBER_FORMAT 28
41 #define AST_CAUSE_FACILITY_REJECTED 29
42 #define AST_CAUSE_RESPONSE_TO_STATUS_ENQUIRY 30
43 #define AST_CAUSE_NORMAL_UNSPECIFIED 31
44 #define AST_CAUSE_NORMAL_CIRCUIT_CONGESTION 34
45 #define AST_CAUSE_NETWORK_OUT_OF_ORDER 38
46 #define AST_CAUSE_NORMAL_TEMPORARY_FAILURE 41
47 #define AST_CAUSE_SWITCH_CONGESTION 42
48 #define AST_CAUSE_ACCESS_INFO_DISCARDED 43
49 #define AST_CAUSE_REQUESTED_CHAN_UNAVAIL 44
50 #define AST_CAUSE_PRE_EMPTED 45
51 #define AST_CAUSE_FACILITY_NOT_SUBSCRIBED 50
52 #define AST_CAUSE_OUTGOING_CALL_BARRED 52
53 #define AST_CAUSE_INCOMING_CALL_BARRED 54
54 #define AST_CAUSE_BEARERCAPABILITY_NOTAUTH 57
55 #define AST_CAUSE_BEARERCAPABILITY_NOTAVAIL 58
56 #define AST_CAUSE_BEARERCAPABILITY_NOTIMPL 65
57 #define AST_CAUSE_CHAN_NOT_IMPLEMENTED 66
58 #define AST_CAUSE_FACILITY_NOT_IMPLEMENTED 69
59 #define AST_CAUSE_INVALID_CALL_REFERENCE 81
60 #define AST_CAUSE_INCOMPATIBLE_DESTINATION 88
61 #define AST_CAUSE_INVALID_MSG_UNSPECIFIED 95
62 #define AST_CAUSE_MANDATORY_IE_MISSING 96
63 #define AST_CAUSE_MESSAGE_TYPE_NONEXIST 97
64 #define AST_CAUSE_WRONG_MESSAGE 98
65 #define AST_CAUSE_IE_NONEXIST 99
66 #define AST_CAUSE_INVALID_IE_CONTENTS 100
67 #define AST_CAUSE_WRONG_CALL_STATE 101
68 #define AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE 102
69 #define AST_CAUSE_MANDATORY_IE_LENGTH_ERROR 103
70 #define AST_CAUSE_PROTOCOL_ERROR 111
71 #define AST_CAUSE_INTERWORKING 127
73 /* Special Asterisk aliases */
74 #define AST_CAUSE_BUSY AST_CAUSE_USER_BUSY
75 #define AST_CAUSE_FAILURE AST_CAUSE_NETWORK_OUT_OF_ORDER
76 #define AST_CAUSE_NORMAL AST_CAUSE_NORMAL_CLEARING
77 #define AST_CAUSE_NOANSWER AST_CAUSE_NO_ANSWER
78 #define AST_CAUSE_CONGESTION AST_CAUSE_NORMAL_CIRCUIT_CONGESTION
79 #define AST_CAUSE_UNREGISTERED AST_CAUSE_SUBSCRIBER_ABSENT
80 #define AST_CAUSE_NOTDEFINED 0
81 #define AST_CAUSE_NOSUCHDRIVER AST_CAUSE_CHAN_NOT_IMPLEMENTED
83 #endif /* _ASTERISK_CAUSES_H */